/* The Main Wrapper */
.od-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 120px auto;
  display: flex;
  align-items: flex-end;
  padding-bottom: 50px;
  font-family: inherit;
}

/* The Bottom-Left Offset Square */
.od-wrapper .od-shape {
  position: absolute;
  left: -25px;
  bottom: 5px;
  width: 131px;
  height: 136px;
  background-color: var(--od-shape);
  border-radius: 12px;
  z-index: 1;
}

/* The Main Image Container */
.od-wrapper .od-image-wrap {
  position: relative;
  width: 100%;
  max-width: 724px;
  margin-left: 20px;
  border-radius: 12px;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* State 1: Placeholder */
.od-wrapper .od-image-wrap.od-no-image {
  min-height: 464px;
  background-color: #dfdfdf;
}

/* State 2: Image Uploaded */
.od-wrapper .od-image-wrap.od-has-image {
  min-height: 0 !important;
  background-color: transparent;
}

/* Force the image to fit naturally */
.od-wrapper .od-image-wrap img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
}

/* The Overlapping Content Card */
.od-wrapper .od-content-card {
  position: absolute !important;
  right: -50px !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: 725px !important;
  background: #ffffff;
  padding: 40px !important;
  border-radius: 12px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  z-index: 3;
}

/* Typography & Button */
.od-wrapper .od-content-card h6 {
  color: var(--od-eye-color);
  font-size: var(--od-eye-size);
  font-weight: var(--od-eye-weight);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  margin-top: 0;
}

.od-wrapper .od-content-card h3 {
  color: var(--od-head-color);
  font-size: var(--od-head-size);
  font-weight: var(--od-head-weight);
  line-height: 1.3;
  margin-bottom: 20px;
  margin-top: 0;
}

.od-wrapper .od-body-wrap,
.od-wrapper .od-content-card p {
  color: var(--od-body-color);
  font-size: var(--od-body-size);
  line-height: 1.7;
}

/* --- THE FIX: Button Sizing --- */
.od-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--od-btn-bg) !important;
  color: var(--od-btn-color) !important;
  padding: 15px 25px !important;
  border-radius: 14px;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  margin-top: 20px;
  transition: all 0.3s ease;
  /* Forces padding to stay INSIDE the width limit */
  box-sizing: border-box !important;
  max-width: 100%; /* Prevents breaking out of the container */
}

.od-btn span {
  /* Allows long text to wrap on small screens instead of overflowing */
  white-space: normal;
  text-align: left;
}

.od-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.od-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0; /* Stops the icon from squishing if the text wraps */
}

/* --- RESPONSIVE BREAKPOINTS --- */

@media (max-width: 1250px) {
  .od-wrapper {
    margin: 80px auto;
    padding-right: 20px;
  }
  .od-wrapper .od-image-wrap {
    max-width: 60%;
  }
  .od-wrapper .od-content-card {
    max-width: 60% !important;
    padding: 30px !important;
    right: 0px !important;
  }
}

@media (max-width: 900px) {
  .od-wrapper {
    flex-direction: column !important;
    padding: 0 0px !important; /* Let the parent container handle the edge padding */
    margin: 40px auto !important; /* Match other elements */
    align-items: center !important;
  }

  .od-wrapper .od-image-wrap {
    width: 100% !important; /* Expand to full width */
    max-width: 100% !important;
    height: auto !important;
    margin-left: 0 !important;
  }

  .od-wrapper .od-shape {
    left: -15px !important; /* Tucked to match other elements */
    top: -15px !important; /* Tucked to match other elements */
    bottom: auto !important;
    width: 90px !important;
    height: 90px !important;
  }

  .od-wrapper .od-content-card {
    position: relative !important;
    width: 92% !important; /* Keeping it slightly inset so it still looks like an overlapping card */
    max-width: 92% !important;
    margin: -80px auto 0 auto !important;
    padding: 40px 25px !important; /* Standardized mobile padding */
    display: block !important;
  }
}

@media (max-width: 600px) {
  .od-wrapper .od-image-wrap {
    height: auto !important;
  }

  .od-wrapper .od-content-card h3 {
    font-size: calc(var(--od-head-size) * 0.85) !important;
  }

  .od-wrapper .od-content-card {
    padding: 30px 20px !important; /* Tighter for phones */
    margin-top: -60px !important;
  }

  /* --- MOBILE BUTTON SPECIFICS --- */
  .od-btn {
    width: 100%;
    justify-content: center;
    padding: 15px !important; 
    font-size: 13px; 
  }
  .od-btn span {
    text-align: center; 
  }
}
