/* ==========================================================================
   rebusmetod-seo plugin styles
   ========================================================================== */

/* --- Author Box --- */

.rebusmetod-author-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid #aaa;
  font-family: inherit;
}

/* Reset global .gtnbrg .entry-content p/a styles within the author box */
.gtnbrg .entry-content .rebusmetod-author-box p {
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0.25rem 0 0;
}

.rebusmetod-author-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 44rem;
}

.rebusmetod-author-card + .rebusmetod-author-card {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
}

.rebusmetod-author-photo {
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  flex-shrink: 0;
}

.rebusmetod-author-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.rebusmetod-author-name {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.4;
}

/* Override .gtnbrg .entry-content a */
.gtnbrg .entry-content .rebusmetod-author-name-link {
  color: #1a1a1a;
  text-decoration: none;
}

.gtnbrg .entry-content .rebusmetod-author-name-link:hover {
  text-decoration: underline;
}

.rebusmetod-author-role {
  display: inline-block;
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.gtnbrg .entry-content .rebusmetod-author-bio {
  color: #555;
}

.gtnbrg .entry-content .rebusmetod-about-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: #888;
  text-decoration: none;
}

.gtnbrg .entry-content .rebusmetod-about-link:hover {
  color: #1a1a1a;
}

/* --- Date Modified --- */

.gtnbrg .entry-content .rebusmetod-date-modified {
  font-size: 0.8125rem;
  color: #888;
  margin-bottom: 1.5rem;
}

/* --- Rebus Method Banner --- */

.rebusmetod-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem auto;
  padding: 1.5rem 1.25rem;
  max-width: 44rem;
  border-radius: 1rem;
  background: white;
  border: 1px solid #f3e8d0;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .rebusmetod-banner {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    text-align: left;
  }
}

/* Reset global .gtnbrg styles inside banner */
.gtnbrg .entry-content .rebusmetod-banner p {
  padding: 0;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

.gtnbrg .entry-content .rebusmetod-banner a {
  color: inherit;
}

.rebusmetod-banner__video {
  flex-shrink: 0;
  width: 100%;
  max-width: 324px;
  min-height: 740px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .rebusmetod-banner__video {
    width: 324px;
    max-width: 324px;
    overflow: hidden;
    border-radius: 0.5rem;
    margin: 0;
  }
}

.rebusmetod-banner__video .tiktok-embed {
  margin: 0 auto !important;
}

.rebusmetod-banner__video iframe {
  max-width: 100% !important;
}

.rebusmetod-banner__body {
  flex: 1;
  min-width: 0;
}

/* Reset gtnbrg h3 overrides inside banner */
.gtnbrg .entry-content .rebusmetod-banner__heading {
  font-family: "DRAguScript6Med", cursive;
  font-size: 1.3rem;
  line-height: 1.5rem;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
  padding: 0;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .gtnbrg .entry-content .rebusmetod-banner__heading {
    font-size: 1.5rem;
    text-align: left;
  }
}

.rebusmetod-banner__text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 1rem;
}

.gtnbrg .entry-content .rebusmetod-banner .rebusmetod-banner__text {
  margin: 0 0 1rem;
}

.gtnbrg .entry-content .rebusmetod-banner__cta,
.rebusmetod-banner__cta {
  display: inline-block;
  padding: 0.5rem 1.75rem;
  border-radius: 9999px;
  border: 0.1875rem solid #ffb32d;
  background: linear-gradient(to right, #e7f6f2, #fae9f9);
  color: #1a1a1a;
  font-family: "DRAguScript3XLight", cursive;
  font-size: 1.15rem;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}

.gtnbrg .entry-content .rebusmetod-banner__cta:hover,
.rebusmetod-banner__cta:hover {
  background: #ffb42d;
  border-color: #ffd5a4;
  text-decoration: none;
  box-shadow: 0 0 0 0.25rem #ffeac7;
}

/* --- Infographic --- */

.rebusmetod-infographic {
  margin: 2rem auto;
}

.rebusmetod-infographic img {
  max-width: 600px;
  margin: 0 auto 2rem;
  display: block;
  height: auto;
  border-radius: 0.5rem;
}

/* Mobile: stack vertically */
@media (max-width: 39.9375rem) {
  .rebusmetod-banner__text {
    font-size: 0.875rem;
  }

  .rebusmetod-infographic img {
    max-width: 100%;
  }
}
