/* Walter Zanger Scholarship Fund Specific Styles */
.scholarship-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #222;
  line-height: 1.6;
}

.scholarship-hero {
  border: 4px solid var(--color-orange);
  background-color: #fffbf7;
  border-radius: 16px;
  padding: 2.2rem;
  margin-bottom: 3.5rem;
  box-shadow: 8px 8px 0px #ffd23f;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .scholarship-hero {
    flex-direction: row;
    padding: 3.5rem;
    align-items: flex-start;
  }
}

.hero-photo-side {
  flex: 0.7;
  width: 100%;
  max-width: 300px;
}

.hero-photo-side img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 3px solid #C25100;
  box-shadow: 4px 4px 0px #ffd23f;
  display: block;
}

.hero-info-side {
  flex: 1.3;
}

.scholarship-hero h1 {
  color: #C25100;
  font-size: 2.6rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.honorary-sub {
  font-size: 1.2rem;
  font-weight: 600;
  color: black;
  margin-bottom: 1.5rem;
}

.hero-info-side p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.campaign-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .campaign-details-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.sidebar-aside {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.tracker-card {
  background-color: #ffffff;
  border: 3px solid var(--color-blue);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 6px 6px 0px var(--color-blue-dark);
  box-sizing: border-box;
}

.tracker-card h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: black;
  margin: 0 0 1rem 0;
}

.amount-display {
  font-size: 3rem;
  font-weight: 900;
  color: #10B981;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.amount-label {
  font-size: 0.95rem;
  font-weight: bold;
  color: #555;
  margin-bottom: 1.5rem;
}

.progress-container {
  background-color: #eef2f3;
  border-radius: 50px;
  height: 20px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
}

.goal-marker {
  font-size: 1rem;
  font-weight: bold;
  color: #222;
  background-color: rgba(255, 210, 63, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  display: inline-block;
}

.giving-matrix-card {
  border: 3px solid var(--color-blue);
  border-radius: 12px;
  box-shadow: 6px 6px 0px var(--color-blue-dark);
  overflow: hidden;
  height: fit-content;
}

.giving-matrix-card h3 {
  background-color: var(--color-blue);
  color: #ffffff;
  margin: 0;
  padding: 1rem 1.5rem;
  font-size: 1.3rem;
  text-align: center;
}

.matrix-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #ffffff;
}

.tier-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eaeaea;
}

.tier-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tier-cost {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-blue);
  white-space: nowrap;
}

.tier-impact {
  font-size: 0.95rem;
  color: #444;
  text-align: left;
  padding-left: 1rem;
}

.chai-callout {
  background-color: #fffbef;
  border-left: 4px solid #ffd23f;
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: #664d03;
}
/* --- Button Group Layout --- */
.action-button-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 500px; /* Keeps them from stretching across the entire screen on desktop */
}

/* --- The Missing Component Styles --- */
.action-button-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 28px;       /* Gives it vertical height and horizontal breathing room */
  font-size: 1.15rem;       /* Makes the action text prominent */
  font-weight: 800;         /* Bold typography makes it look operational */
  text-decoration: none;    /* Removes the default underline text decoration */
  border-radius: 12px;      /* Matches the rounded aesthetic of the site */
  box-sizing: border-box;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

/* --- Colorful Variations Styles --- */
.btn-orange { 
  background-color: #C25100; 
  color: #ffffff; 
  box-shadow: 4px 4px 0px #FFD23F; /* Playful flat yellow branding shadow */
}

.btn-orange:hover { 
  background-color: #A34400; 
  transform: translateY(-2px);    /* Subtle lift effect on hover */
}

.btn-outline-purple {
  background-color: transparent;
  color: black;
  border: 3px solid black;
  box-shadow: 4px 4px 0px var(--color-blue-dark);
}

.btn-outline-purple:hover {
  background-color: #fdf8ff;
  transform: translateY(-2px);    /* Matches the same hover interaction lift */
}

/* Pressing effect when clicked */
.action-button-group .btn:active {
  transform: translateY(2px);
  box-shadow: 1px 1px 0px transparent;
}

/* --- DONATION THERMOMETER STYLING --- */
.thermometer-container {
  background: #EDF5FF;
  border: 3px solid var(--color-blue);
  border-radius: 20px;
  padding: 30px;
  max-width: 650px;
  margin: 30px auto;
}

.thermometer-header {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  color: #1e293b;
  margin-bottom: 15px;
}

.thermometer-track {
  background: #ffffff;
  border: 2px solid var(--color-blue);
  border-radius: 50px;
  height: 34px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.thermometer-fill {
  background: var(--color-orange); /* Default color when under 100% */
  height: 100%;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 8%;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.thermometer-fill {
  background: var(--color-orange);
  height: 100%;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0%; /* Start at absolutely 0 */
  
  /* Smooth easing animation properties: takes 1.2 seconds to slide into position */
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.thermometer-badge {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding-right: 12px;
  white-space: nowrap;
  
  /* Smooth fade-in for the percentage text letter markers */
  transition: opacity 0.4s ease-in-out;
}
.thermometer-footer {
  margin: 15px 0 0 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #4b5563;
}

/* --- OVERFUNDED CELEBRATION STYLES --- */

/* Turn the progress bar to your rich brand green when goal is cleared */
.is-overfunded .thermometer-fill {
  background: var(--color-green); 
  background-image: linear-gradient(
    45deg, 
    rgba(255, 255, 255, 0.15) 25%, 
    transparent 25%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.15) 50%, 
    rgba(255, 255, 255, 0.15) 75%, 
    transparent 75%, 
    transparent
  );
  background-size: 40px 40px; /* Adds elegant subtle celebratory stripes */
}

/* Dark contrast text adjustment for your green brand asset if needed */
.is-overfunded .thermometer-badge {
  color: #1e293b; 
}

.is-overfunded .thermometer-footer {
  color: #15803d; /* Forest green text for the success message */
}

