/* Base typography - modern font stack */
html {
  font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

/* Question & Answer page backgrounds - span full viewport width */
body.page-with-bg {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 100%;
}

.page-with-bg {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .page-with-bg {
    background-image: url('/images/b-h.png');
    background-size: 100% auto;
    background-position: top left;
    background-repeat: no-repeat;
  }
}

@media (max-width: 767px) {
  .page-with-bg {
    background-image: url('/images/b-v.png');
    background-size: 100% auto;
    background-position: top left;
    background-repeat: no-repeat;
  }
}

/* Main content wrapper - spans full width, grows to fill space */
.site-main {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Topic / Question page - outer spans full width, inner centered vertically & horizontally */
.topic-main {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0; /* allows flex child to shrink when content overflows */
}

.topic-container {
  max-width: 840px;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.topic-question {
  text-align: center;
  margin-bottom: 2rem;
}

.topic-title {
  margin: 0;
}

.topic-prompt {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
}

.topic-choices {
  position: relative;
  z-index: 1;
}

.topic-spacer {
  height: 1.5rem;
}

.topic-spacer--lg {
  height: 2rem;
}

.topic-spacer--xxl {
  height: 2rem;
}

.topic-image {
  display: block;
  width: 85%;
  max-width: 425px;
  margin-left: auto;
  margin-right: auto;
  height: auto;
}

/* Answer page - outer spans full width, inner centered */
.answer-page {
  width: 100%;
  display: flex;
  justify-content: center;
}

.answer-page__inner {
  max-width: 425px;
  width: 100%;
  padding: 2rem 1rem 0;
  box-sizing: border-box;
}

.answer-page__header {
  margin-bottom: 1rem;
  text-align: center;
}

.answer-page__title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
}

.answer-page__title-image {
  display: block;
  width: 85%;
  margin: 0 auto;
  height: auto;
}

.answer-page__images {
  margin-bottom: 1.5rem;
}

.answer-page__image {
  display: block;
  width: 85%;
  margin-left: auto;
  margin-right: auto;
  height: auto;
}

/* Answer content spacers */
.answer-page__content .spacer { display: block; }
.answer-page__content .spacer.l { height: 1rem; }
.answer-page__content .spacer.xl { height: 1.5rem; }
.answer-page__content .spacer.xxl { height: 2rem; }
.answer-page__content .spacer.xxxl { height: 3rem; }

/* Answer content - body text left aligned, headers bold with color highlight */
.answer-page__content .paragraph {
  text-align: left;
}

.answer-page__content .paragraph:has(.verse) {
  text-align: center;
}

.answer-page__content .paragraph .verse {
  display: inline;
  font-weight: 700;
}

.answer-page__content--turquoise .paragraph .emphasis.verse {
  background-color: #ECFDFD;
  padding: 0.15em 0.25em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.answer-page__content--blue .paragraph .emphasis.verse {
  background-color: #E1F5FD;
  padding: 0.15em 0.25em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.answer-page__content--purple .paragraph .emphasis.verse {
  background-color: #E5E8F8;
  padding: 0.15em 0.25em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.answer-page__content--pink .paragraph .emphasis.verse {
  background-color: #F5E5F3;
  padding: 0.15em 0.25em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.answer-page__content .paragraph--header {
  text-align: center;
  font-weight: 700;
}

.answer-page__content--turquoise .paragraph--header .emphasis {
  background-color: #ECFDFD;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  box-decoration-break: clone;
}

.answer-page__content--blue .paragraph--header .emphasis {
  background-color: #E1F5FD;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  box-decoration-break: clone;
}

.answer-page__content--purple .paragraph--header .emphasis {
  background-color: #E5E8F8;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  box-decoration-break: clone;
}

.answer-page__content--pink .paragraph--header .emphasis {
  background-color: #F5E5F3;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  box-decoration-break: clone;
}

/* Answer content images - 85% of container, centered */
.answer-page__content img {
  display: block;
  width: 85%;
  margin-left: auto;
  margin-right: auto;
  height: auto;
}

/* Scripture images - larger size, extra spacing top and bottom */
.answer-page__content img[src*="scripture"] {
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Paw print dividers - smaller, centered (override 85% rule) */
.answer-page__content img[src*="paw-"] {
  width: 18%;
}

/* Button Styles */
.button {
  display: block;
  padding: 10px 18px;
  color: #121212;
  border-radius: 50px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  box-sizing: border-box;
}

.button:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button:active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.turquoise { background-color: #ECFDFD; }
.blue { background-color: #E1F5FD; }
.purple { background-color: #E5E8F8; }
.pink { background-color: #F5E5F3; }

/* Kongju-specific: keep original flat button style (scope to kongju only) */
.kongju-page .button {
  display: block;
  padding: 10px 18px;
  color: #121212;
  border-radius: 50px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  box-sizing: border-box;
}

.kongju-page .button:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.kongju-page .button:active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Default topic button style (.button-2) - used by Yali and all non-Kongju topics */
.button-2 {
  display: flex;
  justify-content: center;
  width: fit-content;
  align-items: center;
  margin: 0 auto;
  padding: 12px 20px;
  color: #121212;
  border-radius: 50px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 5px solid #121212;
  box-shadow: inset 4px 5px 0px rgb(255, 255, 255),
              inset -4px -5px 0px rgba(0, 0, 0, 0.133),
              0 10px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  box-sizing: border-box;
}

.button-2.turquoise { background-color: #ECFDFD; }
.button-2.blue { background-color: #E1F5FD; }
.button-2.purple { background-color: #E5E8F8; }
.button-2.pink { background-color: #F5E5F3; }

.button-2:hover {
  box-shadow: inset 4px 5px 0px rgb(255, 255, 255),
              inset -4px -5px 0px rgba(0, 0, 0, 0.133),
              0 12px 24px rgba(0, 0, 0, 0.12);
}

.button-2:active {
  box-shadow: inset 2px 3px 0px rgb(255, 255, 255),
              inset -2px -3px 0px rgba(0, 0, 0, 0.133),
              0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Button grid - buttons span full width with gap */
.button-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 600px) {
  .button-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.button-grid .button,
.button-grid .button-2 {
  width: 100%;
  min-width: 0;
}

/* ===== Homepage ===== */
.home-hero {
  padding: 2.5rem 1rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.home-hero__inner {
  max-width: 560px;
  margin: 0 auto;
}

.home-hero__title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-hero__lede {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  color: #555;
}

.home-topics {
  padding: 0 1rem 3rem;
  position: relative;
  z-index: 1;
}

.home-topics__heading {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: #666;
  text-align: center;
}

.home-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .home-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .home-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #121212;
  transition: all 0.2s ease;
  border: 5px solid #121212;
  box-shadow: inset 4px 5px 0px rgb(255, 255, 255),
              inset -4px -5px 0px rgba(0, 0, 0, 0.133),
              0 10px 20px rgba(0, 0, 0, 0.1);
}

.home-card:hover {
  box-shadow: inset 4px 5px 0px rgb(255, 255, 255),
              inset -4px -5px 0px rgba(0, 0, 0, 0.133),
              0 12px 24px rgba(0, 0, 0, 0.12);
}

.home-card:active {
  box-shadow: inset 2px 3px 0px rgb(255, 255, 255),
              inset -2px -3px 0px rgba(0, 0, 0, 0.133),
              0 4px 8px rgba(0, 0, 0, 0.08);
}

.home-card--turquoise { background-color: #ECFDFD; }
.home-card--blue { background-color: #E1F5FD; }
.home-card--purple { background-color: #E5E8F8; }
.home-card--pink { background-color: #F5E5F3; }

.home-card__image-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}

.home-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.home-card__content {
  padding: 1rem 1.25rem;
}

.home-card__subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  margin-bottom: 0.25rem;
}

.home-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ===== Privacy Policy ===== */
.privacy-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.privacy-content h1 {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
}

.privacy-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.privacy-content h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.privacy-content p {
  margin: 0 0 1rem;
  line-height: 1.75;
}

.privacy-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.privacy-content li {
  margin-bottom: 0.5rem;
}

.privacy-content a {
  color: #0066cc;
  text-decoration: underline;
}

.privacy-content a:hover {
  color: #004499;
}

.privacy-content__last-updated {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: #666;
}
