/* ==========================================================================
   PAGE SPECIFIC STYLES: BETTY'S BOOKS SYSTEM
   ========================================================================== */
.program-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Header Hero Container - Refitted to Yellow Layout Background Grid */
.program-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
  text-align: left;
  background-color: var(--color-yellow); 
  padding: 3.5rem 2.5rem;
  border-radius: 24px;
  border-bottom: 6px solid #540D6E; /* Deep Royal Purple bottom weight */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-text-block-he {
  display: flex;
  text-align: right;
  flex-direction: column;
  justify-content: center;
}

.program-main-title {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: bold;
  color: #111827;
  margin-top: 0;
  margin-bottom: 15px;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

/* Keeping title punchy and dark against the yellow background */
.program-main-title span {
  color: var(--color-blue);
}

/* More Eye-Catching Subtitle Design rules */
.program-subtitle {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  color: #222222;
  line-height: 1.4;
  margin: 0 0 2rem 0;
  font-weight: 700;
  border-left: 4px solid var(--color-blue);
  padding-left: 15px;
}

/* More Eye-Catching Subtitle Design rules */
.program-subtitle-he {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  color: #222222;
  line-height: 1.4;
  margin: 0 0 2rem 0;
  font-weight: bold;
  border-right: 4px solid var(--color-blue);
  padding-right: 15px;
}

.hero-image-block img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 24px;
  border: 4px solid var(--color-blue);
  box-shadow: 6px 6px 0px black;
}

/* Embedded Left-Aligned Oval Photo Tribute Styling */
.hero-tribute-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.85); /* Frosty transparent white backing */
  padding: 20px;
  border-radius: 16px;
  border: 2px solid black;
  margin-top: 10px;
}

.oval-photo-box {
  flex-shrink: 0;
  width: 100px;
  height: 135px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid black;
  box-shadow: 3px 3px 0px black;
}

.oval-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tribute-box {
  font-size: 1.05rem;
  line-height: 1.5;
  color: black;
}

.tribute-box p {
  margin: 0;
}

/* Two Column Side-by-Side Split Row Content Elements */
.split-row {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  margin-bottom: 50px;
}

@media (min-width: 768px) {
  .split-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .split-row > div {
    flex: 1;
  }
}

/* Picture Cards Frame Foundations */
.photo-frame {
  width: 100%;
  max-width: 460px;
  box-sizing: border-box;
}

.photo-frame img {
  width: 100%;
  height: auto;
  border: 4px solid #540D6E;
  border-radius: 16px;
  box-shadow: 6px 6px 0px var(--color-yellow);
  display: block;
}

.photo-caption {
  display: block;
  font-size: 0.95rem;
  font-weight: bold;
  color: #4B5563;
  margin-top: 12px;
  text-align: center;
}

.mission-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-top: 0;
  margin-bottom: 24px;
}

.mission-text p:last-child {
  margin-bottom: 0;
}

/* Large, Prominent, Centered Action Call Section */
.centered-cta-section {
  background-color: #F8FAFC;
  border: 2px solid #E2E8F0;
  padding: 40px 20px;
  border-radius: 24px;
  text-align: center;
  margin: 50px auto;
  max-width: 850px;
}

.download-pitch {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 25px;
  color: #334155;
  font-weight: 500;
}

.text-center {
  display: flex;
  justify-content: center;
}

.cta-wrapper .mega-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-green);
  color: #ffffff;
  padding: 18px 45px;
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 16px;
  box-shadow: 0 8px 0px #0D9668;
  transition: all 0.1s ease;
  border: none;
  cursor: pointer;
}

.cta-wrapper .mega-btn:hover {
  transform: translateY(2px);
  box-shadow: 0 6px 0px #0D9668;
}

.cta-wrapper .mega-btn:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0px #0D9668;
}

/* Cost Matrices Layout */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.cost-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-sizing: border-box;
}

.cost-card h3 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.cost-card p {
  margin: 0;
  font-size: 1.05rem;
  color: #333;
  font-weight: 600;
}

.cost-card-purple { border: 3px solid var(--color-green); box-shadow: 5px 5px 0px var(--color-green); }
.cost-card-purple h3 { color: var(--color-green); }

.cost-card-orange { border: 3px solid var(--color-orange); box-shadow: 5px 5px 0px var(--color-orange); }
.cost-card-orange h3 { color: var(--color-orange); }

.cost-card-blue { border: 3px solid var(--color-blue); box-shadow: 5px 5px 0px var(--color-blue); }
.cost-card-blue h3 { color: var(--color-blue) }

.time-notice blockquote {
  background-color: #f8f9fa;
  border-left: 4px solid #3B82F6;
  margin: 35px 0;
  padding: 20px;
  font-style: italic;
  font-size: 1.1rem;
  color: #4B5563;
  border-radius: 0 8px 8px 0;
}

/* Equal Sized Support Action Links Setup */
.donation-prompt {
  background: #ffffff;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  padding: 35px;
  text-align: center;
}

.donation-prompt h3 {
  font-size: 1.4rem;
  color: var(--color-red);
  margin-top: 0;
  margin-bottom: 25px;
}

.equal-button-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  width: 100%;
}

@media (min-width: 580px) {
  .equal-button-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .equal-button-grid { grid-template-columns: repeat(4, 1fr); }
}

.equal-button-grid .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  font-weight: bold;
  font-size: 1.05rem;
  text-decoration: none;
  border-radius: 10px;
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.1s ease;
  min-height: 55px;
}

.equal-button-grid .btn:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-red);
  color: #ffffff;
}
.btn-secondary:hover {
  background-color: var(--color-red-dark);
}

/* Responsive Structural Overrides */
@media (max-width: 900px) {
  .program-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
    padding: 2rem 1.5rem;
  }
  .program-subtitle {
    border-left: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
  }
  .hero-tribute-row {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .photo-frame { margin: 0 auto; }
}

/* ==========================================================================
   HOVER EFFECTS & ANIMATIONS
   ========================================================================== */
.hero-image-block img.jiggle-target {
  transition: transform 0.2s ease-in-out;
}

.hero-image-block img.jiggle-target:hover {
  animation: playfulJiggle 0.5s ease-in-out infinite;
  cursor: pointer;
}

@keyframes playfulJiggle {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-1.5deg) scale(1.01); }
  40%  { transform: rotate(1deg) scale(1.01); }
  60%  { transform: rotate(-1deg) scale(1.01); }
  80%  { transform: rotate(1.5deg) scale(1.01); }
  100% { transform: rotate(0deg); }
}



/* --- Classy Dedication Pink Box --- */
.dedication-pink-box {
  /* Generates a soft, classy pink background dynamically mixed from your red variable */
  background-color: color-mix(in srgb, var(--color-red) 10%, #ffffff);
  
  /* Solid elegant border matching your theme color */
  border: 3px solid var(--color-red);
  border-radius: 20px;
  padding: 30px 25px;
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
  
  /* Flat, clean neo-brutalist accent shadow */
  box-shadow: 5px 5px 0px var(--color-red);
}

.dedication-pink-box h3 {
  margin: 0 0 12px 0;
  color: #111827; /* Dark elegant charcoal */
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.3;
}

.dedication-pink-box p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #4B5563;
}

/* Stylish text link interaction inside the box */
.dedication-pink-box a {
  color: var(--color-red);
  text-decoration: none;
  font-weight: 900;
  border-bottom: 2px solid var(--color-red);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.dedication-pink-box a:hover {
  color: #111827;
  border-bottom-style: solid;
}