/* ==========================================================
   OUR PROGRAMS page template
   Loaded only on pages using page-templates/our-programs.php
   ========================================================== */
.our-programs { padding-top: 0; }

/* HERO */
.op-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 1.5rem 5rem;
}
.op-hero-bg { position: absolute; inset: 0; z-index: 0; }
.op-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.op-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(43,31,18,0.7) 0%, rgba(194,65,12,0.5) 100%);
}
.op-hero-content {
  position: relative; z-index: 1;
  max-width: 56rem;
  text-align: center;
  color: #fff;
}
.op-hero-content .eyebrow {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.op-hero-content .eyebrow::before { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.18); }
.op-hero-content h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  margin: 1rem 0 1.5rem;
  line-height: 1.1;
}
.op-hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.92);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* INTRO (admin content above the cards) */
.op-intro { padding: 4rem 1.5rem 0; }

/* PROGRAMS — alternating cards */
.op-programs { padding: 6rem 1.5rem; }
.op-programs .container { display: grid; gap: 4rem; max-width: 1100px; }

.op-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px -25px rgba(0,0,0,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.op-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.25);
}
@media (min-width: 768px) {
  .op-card { grid-template-columns: 1fr 1.1fr; gap: 0; }
  .op-card[data-flip="true"] .op-card-media { order: 2; }
}

.op-card-media {
  position: relative;
  min-height: 280px;
  background: var(--muted);
  overflow: hidden;
}
.op-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.op-card:hover .op-card-media img { transform: scale(1.04); }
.op-card-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(43,31,18,0.15), transparent 50%);
}
.op-roman {
  position: absolute;
  top: 1rem; left: 1.25rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
  z-index: 2;
  letter-spacing: 0.05em;
}

.op-card-body {
  padding: 2.25rem 2rem;
}
@media (min-width: 768px) { .op-card-body { padding: 3rem 2.75rem; } }

.op-card-icon {
  width: 3rem; height: 3rem;
  background: rgba(194,65,12,0.1);
  color: var(--primary);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.op-card h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}
.op-card p {
  color: var(--muted-foreground);
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

.op-stat {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.op-stat-num {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.5;
}
.op-stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* CTA */
.op-cta {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 5rem 1.5rem;
}
.op-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin: 0 0 1rem;
}
.op-cta p {
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}
