:root {
  --primary-color: #ee98a4; /* Pastel Raspberry */
  --secondary-color: #f8dbe0; /* Warm Light Pink */
  --accent-color: #faf2f0; /* Powder Beige */
  --text-color: #413f46; /* Dark Slate */
  --white: #ffffff;

  --font-heading: "Nunito Sans", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: #e0e0e0; /* Grey background for browser view to show paper edge */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.flyer-container {
  width: 148mm;
  height: 210mm;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background-color: var(--accent-color);
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  height: 15%;
}

.logo-icon {
  height: 40px;
  width: auto;
  opacity: 0.8;
}

.header-text h1 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 24pt;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 10pt;
  color: #888;
  font-weight: 500;
  margin-top: 2px;
}

/* Main Content */
main {
  flex: 1;
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero */
.hero {
  display: flex;
  gap: 20px;
  align-items: center;
}

.hero-image-container {
  flex: 0 0 40%;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply; /* Helps blend white bg if any */
}

.hero-text {
  flex: 1;
  font-size: 10pt;
  line-height: 1.5;
}

/* Benefits */
.benefits h2 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 14pt;
  margin-bottom: 15px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.benefit-item p {
  font-size: 9pt;
  line-height: 1.3;
}

/* Emotional Support */
.emotional-support {
  background-color: var(--secondary-color);
  padding: 15px;
  border-radius: 10px;
  margin-top: auto; /* Push to bottom of main if space allows */
}

.emotional-support h3 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 12pt;
  margin-bottom: 10px;
  text-align: center;
}

.emotional-support p {
  font-size: 9pt;
  font-style: italic;
  text-align: center;
  color: #5a4a4e;
}

/* Footer */
.footer {
  background-color: var(--accent-color);
  padding: 20px 25px;
  height: 20%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-text {
  font-size: 9pt;
  text-align: center;
  margin-bottom: 10px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background-color: var(--white);
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid #eee;
}

.qr-placeholder {
  width: 80px;
  height: 80px;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cta-text {
  text-align: left;
}

.cta-title {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 12pt;
  font-weight: 700;
}

.cta-url {
  font-size: 10pt;
  color: var(--text-color);
}

/* Print Styles */
@media print {
  body {
    background-color: white;
    margin: 0;
    display: block;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .flyer-container {
    width: 100%;
    height: 100%;
    box-shadow: none;
    page-break-after: always;
  }

  @page {
    size: A5 portrait;
    margin: 0;
  }
}
