/*
 * Text + Image + PDF block
 * Visual cousin of .text-two-columns: same heading/body typography,
 * 2-column layout (image + text) at >=992px, stacks on mobile.
 */
.text-image-pdf { padding: 2.5rem 0; }

@media (max-width: 991px) {
  .text-image-pdf {
    padding: 3rem 0 2rem;
    background: url("/wp-content/themes/islamichelp/assets/images/policies-pattern.webp") no-repeat top center;
  }
}

.text-image-pdf__body {
  display: flex;
  gap: 4rem;
  align-items: center;
  flex-wrap: wrap;
}

.text-image-pdf__media {
  width: calc(40% - 2rem);
  min-width: 280px;
}

.text-image-pdf__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.text-image-pdf__content {
  flex: 1 1 0;
  min-width: 280px;
}

@media (max-width: 991px) {
  .text-image-pdf__body { gap: 2rem; }
  .text-image-pdf__media,
  .text-image-pdf__content { width: 100%; flex: 1 1 100%; }
}

.text-image-pdf__title {
  font-family: "Antonio", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 125%;
  color: #012527;
  margin: 0 0 1.5rem;
}
@media (max-width: 767px) {
  .text-image-pdf__title { font-size: 24px; line-height: 1.33333; }
}

.text-image-pdf__description,
.text-image-pdf__description * {
  font-family: "Karla", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 178%;
  color: #012527;
}
.text-image-pdf__description { margin: 0 0 1.75rem; }
.text-image-pdf__description > *:last-child { margin-bottom: 0; }

@media (max-width: 991px) {
  .text-image-pdf__description,
  .text-image-pdf__description * { font-size: 16px; line-height: 200%; }
}

.text-image-pdf__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: #004c51;
  color: #fff;
  border-radius: 1000px;
  text-decoration: none;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: background-color .2s ease;
}
.text-image-pdf__btn:hover,
.text-image-pdf__btn:focus { background: #00343a; color: #fff; }
.text-image-pdf__btn-icon { flex: 0 0 auto; }
