/* ==========================================================================
   CTA Banner Block
   ========================================================================== */

/* --- Section --- */
.ctab-section {
  padding: 2.5rem 0;
}

/* --- Inner Container --- */
.ctab-inner {
  border-radius: 45px;
  border: 1px solid #191a23;
  box-shadow: 0px 5px 0px 0px rgba(25, 26, 35, 1);
  padding: 60px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 347px;
}

/* --- Left Content --- */
.ctab-content {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 500px;
  flex-shrink: 0;
}

/* --- Title --- */
.ctab-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000000;
  margin: 0;
}

/* --- Description --- */
.ctab-desc {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: #000000;
  margin: 0;
}

/* --- Button --- */
.ctab-btn {
  display: inline-block;
  border-radius: 14px;
  padding: 20px 35px;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 400;
  font-family: "SpaceGrotesk-Regular", sans-serif;
  text-decoration: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.ctab-btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

/* --- Mobile Modifier (server-rendered via is_mobile_device()) --- */
.ctab-inner--mobile {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 50px;
  min-height: auto;
  overflow: hidden;
}

.ctab-btn--full {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
}

/* --- Right Image --- */
.ctab-image {
  flex-shrink: 0;
}

.ctab-image img {
  max-width: 380px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1279px) {
  .ctab-title {
    font-size: 1.875rem;
  }

  .ctab-image img {
    max-width: 300px;
  }
}

@media (max-width: 1023px) {
  .ctab-inner {
    padding: 50px;
    gap: 30px;
  }

  .ctab-title {
    font-size: 1.75rem;
  }

  .ctab-image img {
    max-width: 240px;
  }
}

@media (max-width: 767px) {
  .ctab-inner {
    flex-direction: column;
    padding: 40px;
    border-radius: 35px;
    min-height: auto;
    gap: 30px;
  }

  .ctab-content {
    max-width: 100%;
  }

  .ctab-image img {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .ctab-inner {
    padding: 28px;
    border-radius: 30px;
  }

  .ctab-title {
    font-size: 1.5rem;
  }

  .ctab-btn {
    padding: 16px 28px;
    font-size: 1.125rem;
  }
}
