/* General Styles */
.erp-main {
  padding: 40px 20px; /* Reduced side padding from 30px to 20px */
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Reduced content wrapper padding */
.content-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px; /* Reduced from 20px to 15px */
  box-sizing: border-box;
}

.erp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: visible;
}

/* Reduce left text column width by 20px */
.erp-text-col {
  margin-right: 60px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  flex: 0 0 calc(45% - 60px); /* Reduced from 50% to 45% */
  width: calc(45% - 60px); /* Reduced from 50% to 45% */
}

/* Increase right media column width */
.erp-media-col {
  margin-left: 60px;
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc(55% - 60px); /* Increased from 50% to 55% */
  width: calc(55% - 60px); /* Increased from 50% to 55% */
  overflow: visible;
}

.erp-tagline h3 {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 18px !important;
  color: #BF8C00 !important;
  text-transform: capitalize !important;
  font-weight: 600 !important;
  margin: 0;
  line-height: 24px !important;
}

.erp-heading h1 {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 41px !important;
  font-weight: 300 !important;
  margin: 0 0 20px !important;
  color: rgb(75, 76, 78) !important;
  line-height: 47px !important;
  text-transform: none !important;
}

.erp-body {
  flex-grow: 1;
}

.erp-body p,
p.erp-paragraph-text,
[data-paragraph-text="true"] {
  font-family: 'Open Sans', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 28px !important;
  color: #333 !important;
  margin: 0 0 30px !important;
  max-width: 100% !important;
  letter-spacing: normal !important;
}

/* CTA Buttons */
.erp-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: auto;
}

.erp-primary-cta a {
  background-color: #BF8C00;
  color: white;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 15px 25px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.erp-primary-cta a:hover {
  background-color: #A67800;
}

.erp-secondary-cta a.button-with-icon {
  background-color: transparent;
  color: #666;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  padding: 13px 28px;
  border: 2px solid #DDD;
  border-radius: 6px;
  font-size: 16px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  gap: 8px;
  letter-spacing: 0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.erp-secondary-cta a.button-with-icon:hover {
  border-color: #BF8C00;
  color: #BF8C00;
}

.arrow-icon {
  margin-left: 5px;
  font-size: 18px;
}

/* Image styling */
.erp-visual {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background-color: transparent;
}

.feature-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-width: 650px; /* Set minimum width to 650px */
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.feature-image:hover {
  transform: scale(1.02);
}

.erp-video-container,
.video-placeholder,
.erp-video-container iframe,
.erp-video-container video,
.erp-video-container [id^="hsVidPlayer"],
.erp-video-container .hs-video-player,
.erp-video-container .hs-video-player-wrapper {
  width: 100%;
  min-width: 650px; /* Set minimum width to 650px */
  min-height: 350px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
}

.erp-video-container img.video-thumbnail {
  transition: transform 0.5s ease;
  width: 100%;
  height: auto;
}

.erp-video-container:hover img.video-thumbnail {
  transform: scale(1.02);
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(191,140,0,0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.play-button-overlay:hover {
  background-color: rgba(191,140,0,1);
}

.play-button-overlay:before {
  content: "";
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}

/* Responsive Styles */
@media (min-width: 1400px) {
  .content-wrapper { 
    max-width: 1600px; 
    padding: 0 100px; /* Reduced from 120px to 100px */
  }
  .erp-text-col { 
    flex: 0 0 calc(45% - 75px); 
    width: calc(45% - 75px); 
    margin-right: 75px; 
  }
  .erp-media-col { 
    flex: 0 0 calc(55% - 75px); 
    width: calc(55% - 75px); 
    margin-left: 75px; 
  }
}

@media (max-width: 1100px) and (min-width: 768px) {
  .content-wrapper { 
    max-width: 1000px; 
    padding: 0 30px; /* Reduced from 40px to 30px */
  }
  .erp-text-col { 
    flex: 0 0 calc(45% - 30px); 
    width: calc(45% - 30px); 
    margin-right: 30px; 
  }
  .erp-media-col { 
    flex: 0 0 calc(55% - 30px);
    width: calc(55% - 30px);
    margin-left: 30px; 
  }
  .feature-image, .erp-video-container {
    min-width: auto; /* Let it be responsive on tablets */
  }
}

@media (max-width: 767px) {
  .erp-main {
    padding: 30px 10px; /* Reduced from 15px to 10px */
  }
  .content-wrapper { 
    padding: 0 10px; /* Reduced from 20px to 10px */
  }
  .erp-container { 
    flex-direction: column-reverse; 
    gap: 30px; 
  }
  .erp-text-col, .erp-media-col { 
    flex: 0 0 100%; 
    width: 100%; 
    margin: 0; 
    min-height: auto; 
  }
  .erp-visual, .feature-image, .erp-video-container, .video-placeholder {
    min-height: auto !important;
    min-width: auto !important; /* Reset min-width for mobile */
    max-width: 100%;
    height: auto;
  }
  .erp-video-container iframe,
  .erp-video-container video,
  .erp-video-container [id^="hsVidPlayer"],
  .erp-video-container .hs-video-player,
  .erp-video-container .hs-video-player-wrapper {
    min-height: 250px !important;
    min-width: auto !important; /* Reset min-width for mobile */
  }
  .play-button-overlay { width: 60px; height: 60px; }
  .play-button-overlay:before { border-width: 10px 0 10px 18px; }
  .erp-heading h1 { font-size: 28px !important; line-height: 32px !important; }
  .erp-cta-group { flex-direction: column; align-items: flex-start; margin-top: 20px; }
  .erp-primary-cta a, .erp-secondary-cta a.button-with-icon { width: 100%; justify-content: center; }
  {% if module.hide_image_on_mobile %}
  .erp-media-col { display: none; }
  {% endif %}
}