/* ============================================================
   Cole's Choice Foundation — Page-Specific Styles
   ============================================================ */

/* --- Page Hero (shared across interior pages) --- */
.page-hero {
  padding: 10rem 0 4rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 50%, #fefce8 100%);
  text-align: center;
}

.page-hero h1 { margin-bottom: 1rem; }

.page-hero-sub {
  font-size: 1.2rem;
  color: var(--slate-500);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   Programs Page
   ============================================================ */

/* Program detail blocks */
.program-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.program-detail.reverse {
  direction: rtl;
}

.program-detail.reverse > * {
  direction: ltr;
}

.program-detail-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.program-detail-content h2 {
  margin-bottom: 1rem;
}

.program-detail-content > p {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.program-detail-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-detail-visual svg {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Program features list */
.program-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.program-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pf-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.program-feature h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.program-feature p {
  font-size: 0.88rem;
  color: var(--slate-500);
  line-height: 1.5;
  margin: 0;
}

/* Steps grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  text-align: center;
  padding: 2rem;
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.step-card h3 { margin-bottom: 0.5rem; }
.step-card p { color: var(--slate-500); font-size: 0.95rem; }

@media (max-width: 1024px) {
  .program-detail,
  .program-detail.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}


/* ============================================================
   About Page
   ============================================================ */

/* Story section */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.story-content h2 { margin-bottom: 1.25rem; }

.story-content p {
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--slate-200);
}

.timeline-item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--slate-300);
  z-index: 1;
}

.timeline-dot.active {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.timeline-item.future { opacity: 0.5; }
.timeline-item.future .timeline-dot { border-style: dashed; }

.timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.25rem;
}

.timeline-content h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.timeline-content p { font-size: 0.88rem; color: var(--slate-500); margin: 0; }

/* Values grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  text-align: center;
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.value-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.5rem;
  color: var(--white);
}

.value-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.value-card p { font-size: 0.88rem; color: var(--slate-500); line-height: 1.6; }

/* Board detail cards */
.board-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: left;
}

.board-detail-card {
  padding: 2rem;
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.board-detail-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.board-detail-card .board-avatar {
  margin: 0 0 1rem 0;
}

.board-detail-card h3 { font-size: 1.15rem; margin-bottom: 0.2rem; }
.board-detail-card .role { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 0.75rem; }
.board-detail-card .bio { font-size: 0.9rem; color: var(--slate-500); line-height: 1.6; margin: 0; }

/* Legal section */
.legal-info h2 { margin-bottom: 1rem; }
.legal-info > p { color: var(--slate-600); line-height: 1.7; margin-bottom: 2rem; max-width: 720px; }

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.legal-item {
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--slate-200);
}

.legal-item h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin-bottom: 0.35rem; }
.legal-item p { font-size: 0.95rem; font-weight: 600; color: var(--slate-800); margin: 0; }

@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .board-detail-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .values-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   Contact Page
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}

.contact-form-wrapper h2 { margin-bottom: 0.5rem; }

.contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Contact cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  padding: 1.5rem;
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.contact-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.contact-card p { font-size: 0.95rem; color: var(--slate-800); font-weight: 500; margin: 0; }
.contact-note { font-size: 0.8rem; color: var(--slate-500); }

/* Quick links */
.contact-quick-links {
  padding: 1.5rem;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
}

.contact-quick-links h3 { font-size: 1rem; margin-bottom: 1rem; }

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-dark);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.quick-link:last-child { border-bottom: none; }
.quick-link:hover { color: var(--primary); }

/* Volunteer roles */
.volunteer-roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.volunteer-card {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.volunteer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.volunteer-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.volunteer-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.volunteer-card p { font-size: 0.85rem; color: var(--slate-500); margin: 0; }

@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
  .volunteer-roles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .volunteer-roles { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
}


/* ============================================================
   Events Page
   ============================================================ */

/* Filters */
.events-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--slate-600);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Full event cards (events page) */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.event-full-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.event-full-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.efc-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 1rem 0.75rem;
  background: var(--slate-50);
  border-radius: var(--radius);
  text-align: center;
  flex-shrink: 0;
}

.efc-month {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.efc-day {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--slate-800);
  line-height: 1.1;
}

.efc-weekday {
  font-size: 0.7rem;
  color: var(--slate-500);
  font-weight: 500;
}

.efc-body {
  flex: 1;
  min-width: 0;
}

.efc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.efc-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.efc-time {
  font-size: 0.82rem;
  color: var(--slate-500);
  font-weight: 500;
}

.efc-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.efc-location {
  font-size: 0.88rem;
  color: var(--slate-600);
  margin: 0 0 0.5rem;
}

.efc-desc {
  font-size: 0.88rem;
  color: var(--slate-500);
  line-height: 1.6;
  margin: 0 0 1rem;
}

/* Empty state */
.events-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.events-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.events-empty h3 {
  margin-bottom: 0.5rem;
}

.events-empty p {
  color: var(--slate-500);
  max-width: 400px;
  margin: 0 auto;
}

/* Loading state */
.events-loading {
  text-align: center;
  padding: 4rem 2rem;
}

.events-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--slate-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.events-loading p {
  color: var(--slate-500);
  font-size: 0.9rem;
}

/* Calendar subscribe banner */
.calendar-subscribe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
}

.calendar-subscribe p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--slate-700);
  font-weight: 500;
}

@media (max-width: 768px) {
  .event-full-card {
    flex-direction: column;
    gap: 1rem;
  }

  .efc-date-block {
    flex-direction: row;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.75rem 1rem;
    width: fit-content;
  }

  .efc-day {
    font-size: 1.25rem;
  }

  .calendar-subscribe {
    flex-direction: column;
    text-align: center;
  }

  .events-filters {
    justify-content: center;
  }
}
