/* CTA Section */
.cta-section {
  background: #f5f0e8;
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  position: relative;
  min-height: 350px; /* Reduced height for a more professional look */
}

/* Custom Outer golden border, open/cut at top-right as per the image */
.cta-section::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 55px;
  right: 60px;
  bottom: 20px;
  z-index: 1;
  pointer-events: none;
  /* We'll use only border-left and border-top, and partial border-right/bottom for the cut effect */
  border-left: 3px solid #d4a017;
  border-top: 3px solid #d4a017;
  border-bottom: 3px solid #d4a017;
  border-right: 3px solid #d4a017;
  border-radius: 15px;
  /* Hide top-right corner using a clip-path to create the 'cut' */
  clip-path: polygon(0 0,
      calc(100% - 65px) 0,
      100px 70px,
      100% 70px,
      100% 100%,
      0 100%);
  /* The polygon creates the effect of a 'notch' in top-right similar to image */
}

/* Decorative SVG leaf icon in top-right corner, overhanging the border cut */
.cta-section::after {
  content: '';
  position: absolute;
  top: -24px;
  right: 25px;
  width: 125px;
  height: 125px;
  z-index: 2;
  background: url('../../assets/Leaf.svg') no-repeat center center / contain;
  pointer-events: none;
}

/* ---- Box and Overlay styles (unchanged) ---- */

.cta-box {
  position: relative;
  max-width: 1600px; /* Increased for a more expansive, modern look */
  width: 95%; /* Ensures responsiveness while staying wide */
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  z-index: 0;
}

.cta-box img {
  width: 100%;
  height: 480px; /* Reduced from auto to maintain a consistent banner height */
  object-fit: cover; /* Preserves aspect ratio while filling the height */
  display: block;
  border-radius: 10px;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically centered content for a cleaner look */
  align-items: center;
  text-align: center;
  padding: 20px 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
  color: #fff;
}

.cta-overlay h2 {
  font-size: 28px;
  font-weight: 500;
  color: #E8A700;
  margin-bottom: 12px;
  letter-spacing: 1px;
  font-family: 'Grotesque Demo', sans-serif !important;
}

.cta-overlay p {
  font-size: 15px;
  max-width: 700px;
  line-height: 1.6;
  color: #eee;
}

/* ======================= */
/* Responsive (max-width: 1024px) */
/* ======================= */
@media (max-width: 1024px) {
  .cta-section {
    padding: 22px 5px;
    min-width: 0;
  }

  .cta-section::before {
    left: 8px;
    right: 8px;
    top: 8px;
    bottom: 8px;
    border-radius: 8px;
    border-width: 2px;
  }

  .cta-section::after {
    right: 15px;
    top: 15px;
    width: 60px;
    height: 60px;
  }

  .cta-box {
    max-width: 97vw;
    border-radius: 8px;
  }

  .cta-box img {
    border-radius: 8px;
  }

  .cta-overlay {
    padding: 14px;
  }

  .cta-overlay h2 {
    font-size: 1.25rem;
    font-family: 'Grotesque Demo', Arial, Helvetica, sans-serif !important;
  }

  .cta-overlay p {
    font-size: 13.5px;
    max-width: 98vw;
  }
}

/* ===================== */
/* Responsive Fixes */
/* ===================== */

/* Tablet */
@media (max-width: 992px) {
  .cta-section {
    padding: 10px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
  }

  .cta-section::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    border-radius: 0;
  }

  .cta-section::after {
    right: 10px;
    top: 10px;
    width: 60px;
    height: 60px;
  }

  .cta-box {
    max-width: 95%;
    border-radius: 0;
  }

  .cta-overlay {
    padding: 18px;
  }

  .cta-overlay h2 {
    font-size: 22px;
    font-family: 'Grotesque Demo', Arial, Helvetica, sans-serif !important;
  }

  .cta-overlay p {
    font-size: 13.5px;
    max-width: 95vw;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .cta-section {
    padding: 10px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
  }

  .cta-section::before {
    left: 10px;
    right: 10px;
    top: 0;
    bottom: 0;
    border-radius: 5px;
  }

  .cta-section::after {
    right: 6px;
    top: 6px;
    width: 34px;
    height: 34px;
  }

  .cta-box {
    max-width: 95%;
    border-radius: 8px;
    /* Reduced border radius for the cta image section */
    overflow: hidden;
  }

  .cta-overlay {
    padding: 18px;
  }

  .cta-overlay h2 {
    font-size: 17px;
    font-family: 'Grotesque Demo', Arial, Helvetica, sans-serif !important;
  }

  .cta-overlay p {
    font-size: 12px;
    max-width: 95vw;
  }

  .cta-box img {
    border-radius: 8px;
    /* Makes the image itself have a reduced border radius */
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .cta-section {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .cta-section::before {
    left: 10px;
    right: 10px;
    top: -10px;
    bottom: -10px;
    border-radius: 10px;
    /* Reduced border radius for the border */
  }

  .cta-section::after {
    right: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
  }

  .cta-box {
    max-width: 92vw;
    /* Reduced max-width for the section */
    border-radius: 10px;
    /* Reduced border radius */
  }

  .cta-box img {
    border-radius: 2px;
    /* Reduced border radius for the image itself */
  }

  .cta-overlay {
    padding: 6px;
  }

  .cta-overlay h2 {
    font-size: 13px;
    line-height: 1.2;
    font-family: 'Grotesque Demo', Arial, Helvetica, sans-serif !important;
  }

  .cta-overlay p {
    font-size: 9px;
    line-height: 1.4;
    max-width: 94vw;
    /* Reduced max-width */
  }
}