
/* ======================================================
  FULL-WIDTH WRAPPER
====================================================== */
.wisetail-cta-fullwidth {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 60px 0;
  margin: 0 !important;
  position: relative;
  z-index: 2;
}

/* ======================================================
   INNER CONTAINER (BASE)
====================================================== */
.wisetail-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ======================================================
  DESKTOP LAYOUT 
====================================================== */
@media (min-width: 1024px) {

  .wisetail-cta-inner {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    column-gap: 48px;
  }

  /* Logo */
  .wisetail-cta-logo {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .wisetail-cta-logo img {
    max-width: 175px;
    max-height: 100px;
    width: auto;
    height: auto;
    display: block;
  }

  /* Text block */
  .wisetail-cta-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top:30px;
  }

  .wisetail-cta-content h2 {
    font-size: 33px;
    line-height: 1.15;
    margin: 0 0 8px;
  }

  .wisetail-cta-content p {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
  }

  /* Button */
  .wisetail-cta-btn {
    align-self: center;
    white-space: nowrap;
  }
}

/* ======================================================
  TABLET LAYOUT (LOGO LEFT, TEXT + BUTTON RIGHT)
====================================================== */
@media (max-width: 1023px) and (min-width: 768px) {

   .wisetail-cta-inner {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-areas:
      "logo content"
      "logo button";
    column-gap: 32px;
    row-gap: 8px; 
    align-items: center;
  }

  .wisetail-cta-logo {
    grid-area: logo;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .wisetail-cta-logo img {
    max-width: 150px;
    height: auto;
  }

  .wisetail-cta-btn {
    grid-area: button;
    justify-self: start;
    width: auto; 
     margin-top: -4px; 
  }
   /* Text block */
 .wisetail-cta-content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5px;
    margin-bottom: 0;
  }

  .wisetail-cta-content h2 {
    font-size: 32px;
    line-height: 1.15;
    margin: 0 0 8px;
  }

  .wisetail-cta-content p {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
  }
}

/* ======================================================
 MOBILE LAYOUT (STACKED, LOGO LAST)
====================================================== */
@media (max-width: 767px) {

  .wisetail-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    row-gap: 8px; 
  }

  .wisetail-cta-content {
    order: 1;
  }

  .wisetail-cta-btn {
    order: 2;
    width: auto;
  }

  .wisetail-cta-logo {
    order: 3;
    display: block;
  }

  .wisetail-cta-logo img {
    max-width: 140px;
    margin: 0 auto;
    display: block;
  }
   .wisetail-cta-content h2 {
    font-size: 24px;
    line-height: 1.25;
    margin: 0 0 8px;
  }

}

/* ======================================================
   MOBILE LOGO VISIBILITY FIX 
====================================================== */
@media (max-width: 767px) {

 
  .wisetail-cta-fullwidth,
  .wisetail-cta-inner {
    overflow: visible !important;
    min-height: unset !important;
  }

  /* Force logo block to display */
  .wisetail-cta-logo {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 16px;
  }

  /* Ensure image has height */
  .wisetail-cta-logo img {
    display: block !important;
    max-width: 140px;
    width: auto;
    height: auto;
    min-height: 1px; 
  }
}


/* ======================================================
 BUTTON STYLES 
====================================================== */
.wisetail-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Equal padding left & right so text is centered */
  padding: 1em calc(2.25em + 8px);

  border-radius: 999px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.wisetail-cta-btn .cta-text {
  transition: transform 0.25s ease;
}

.wisetail-cta-btn .cta-icon {
  position: absolute;
  right: 2.25em;
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.wisetail-cta-btn:hover .cta-text {
  transform: translateX(-8px);
}

.wisetail-cta-btn:hover .cta-icon {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ======================================================
FOOTER GAP 
====================================================== */
.wisetail-cta-fullwidth + #footer-outer,
.wisetail-cta-fullwidth + footer,
#footer-outer {
  margin-top: 0 !important;
}
