@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght=0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Saira:ital,wght=0,100..900;1,100..900&display=swap');

.programs-section {
  /* Scope styling to maintain brand coherence with Zen touches */
  --color-accent: #EC5B13;           /* Terracotta Orange */
  --color-accent-hover: #d44d0c;     /* Darker Orange */
  --yoga-bg-warm: #FDFBF7;           /* Warm Sand White */
  --yoga-border-warm: #E6DFD3;       /* Subtle Warm Border */
  --yoga-accent-mint: rgba(5, 83, 70, 0.1); /* Mint bg for mobile fallback chips */
  --color-primary: #055346;          /* Deep Forest Green */
  --color-primary-hover: #043e34;
  
  --color-text-dark: #1A1A1A;        /* Off-black */
  --color-text-gray: #4A4A4A;        /* Dark gray */
  --color-text-light: #757575;       /* Muted gray */
  --color-bg-card: #FFFFFF;          /* Card Background */
  
  --font-headers: 'Saira', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  --transition-fast: all 0.2s ease;
  --transition-bezier: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 12px 30px rgba(5, 83, 70, 0.08);
  --shadow-hover: 0 20px 40px rgba(5, 83, 70, 0.15);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  margin: 40px 0 80px 0;
}

/* Full-Bleed Dynamic Image Card */
.program-card {
  position: relative;
  height: 520px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(5, 83, 70, 0.08);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

/* Absolute Background Image */
.program-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.program-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark/Green Gradient Overlay */
.program-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(5, 83, 70, 0.95) 0%,
    rgba(5, 83, 70, 0.4) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* absolute overlaid content panel */
.program-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 35px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

/* Level Tag styling */
.program-card-level {
  display: inline-block;
  font-family: 'Saira', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #EC5B13;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Serif Premium Title */
.program-card-title {
  font-family: 'Saira', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 10px 0;
  line-height: 1.2;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Details that slide up on hover */
.program-card-slide-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

/* Inner details elements animated individually on hover */
.program-card-desc,
.program-card-chips,
.program-card-link-btn {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.program-card-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 15px;
  margin-bottom: 20px;
}

.program-card-desc p {
  margin: 0 0 10px 0;
}
.program-card-desc p:last-child {
  margin-bottom: 0;
}

/* Chips/pills metadata row */
.program-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.program-card-chip {
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
}

/* CTA Button inside Card */
.program-card-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #EC5B13;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(236, 91, 19, 0.3);
  transition: all 0.2s ease;
  width: fit-content;
}

/* Hover States */
.program-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(5, 83, 70, 0.15);
}

.program-card:hover .program-card-bg img {
  transform: scale(1.08);
}

.program-card:hover .program-card-overlay {
  background: linear-gradient(
    to top,
    rgba(5, 83, 70, 0.98) 0%,
    rgba(5, 83, 70, 0.65) 60%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.program-card:hover .program-card-slide-details {
  max-height: 350px;
  opacity: 1;
}

.program-card:hover .program-card-desc {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.05s;
}

.program-card:hover .program-card-chips {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.1s;
}

.program-card:hover .program-card-link-btn {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.15s;
}

.program-card-link-btn:hover {
  background-color: #ffffff;
  color: #055346;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* On mobile, disable the hover slide panel to display static details */
  .program-card {
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
  }
  
  .program-card-bg {
    position: relative;
    height: 240px;
    width: 100%;
  }
  
  .program-card-overlay {
    display: none;
  }
  
  .program-card-content {
    position: relative;
    padding: 24px;
    background-color: #FFFFFF;
    border: 1px solid #E6DFD3;
    border-top: none;
    border-radius: 0 0 20px 20px;
  }
  
  .program-card-level {
    color: #EC5B13;
  }
  
  .program-card-title {
    color: #1A1A1A;
    font-size: 26px;
  }
  
  .program-card-slide-details {
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible;
    margin-top: 15px;
  }
  
  .program-card-desc,
  .program-card-chips,
  .program-card-link-btn {
    transform: none !important;
    opacity: 1 !important;
  }
  
  .program-card-desc {
    color: #4A4A4A;
    margin-top: 0;
    margin-bottom: 15px;
  }
  
  .program-card-chip {
    background-color: rgba(5, 83, 70, 0.1);
    border-color: rgba(5, 83, 70, 0.15);
    color: #055346;
  }
  
  .program-card-link-btn {
    width: 100%;
    background-color: #055346;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 83, 70, 0.2);
  }
  
  .program-card-link-btn:hover {
    background-color: #043e34;
    color: #ffffff;
  }
}

/* ==========================================================================
   SINGLE PROGRAM DETAILS PAGE STYLING
   ========================================================================== */
.single-program-page-wrapper {
  max-width: 1200px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
  font-family: var(--font-body);
}

.single-program-content-layout {
  background: transparent;
}

/* Page Header Section */
.program-page-header {
  border-bottom: 2px solid var(--yoga-border-warm);
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.program-page-badge {
  display: inline-block;
  background-color: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-headers);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(236, 91, 19, 0.2);
}

.program-page-title {
  font-family: var(--font-headers);
  font-size: 44px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.2;
}

/* Grid Layout */
.program-grid-container {
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 50px;
  align-items: start;
}

/* Left Column Content */
.program-image-box {
  width: 100%;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  margin-bottom: 35px;
  border: 1px solid var(--yoga-border-warm);
}

.program-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Program Specifications Grid (4 Columns) */
.program-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.spec-card {
  background-color: #ffffff;
  border: 1px solid var(--yoga-border-warm);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.spec-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-medium);
}

.spec-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.spec-val {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Description Details styling */
.program-desc-heading {
  font-family: var(--font-headers);
  font-size: 28px;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--yoga-border-warm);
  padding-bottom: 10px;
}

.program-text-entry {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-gray);
}

.program-text-entry p {
  margin: 0 0 20px 0;
}

.program-text-entry h3 {
  font-family: var(--font-headers);
  font-size: 22px;
  color: var(--color-primary);
  margin: 30px 0 12px 0;
}

.program-text-entry ul,
.program-text-entry ol {
  margin: 0 0 20px 20px;
  padding: 0;
}

.program-text-entry li {
  margin-bottom: 8px;
}

/* Sidebar Booking Widget */
.program-booking-widget {
  background-color: var(--yoga-bg-warm);
  border: 1px solid var(--yoga-border-warm);
  border-radius: 24px;
  padding: 35px 30px;
  box-shadow: var(--shadow-subtle);
  position: sticky;
  top: 30px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.program-booking-widget:hover {
  box-shadow: var(--shadow-medium);
}

.program-booking-widget h3 {
  font-family: var(--font-headers);
  font-size: 24px;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 12px;
}

.program-booking-widget p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.widget-features-list {
  text-align: left;
  margin: 0 0 25px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-features-list li {
  font-size: 13px;
  color: var(--color-text-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-features-list li::before {
  content: "✓";
  color: var(--color-accent);
  font-weight: 700;
  font-size: 13px;
}

.widget-btn-booking {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(236, 91, 19, 0.25);
  transition: var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.widget-btn-booking:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(236, 91, 19, 0.35);
}

.widget-contact-info {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--yoga-border-warm);
  font-size: 12.5px;
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.widget-contact-info a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.widget-contact-info a:hover {
  color: var(--color-accent);
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
  .program-grid-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .program-booking-widget {
    position: static;
  }
}

@media (max-width: 768px) {
  .single-program-page-wrapper {
    margin: 20px auto 40px auto;
    padding: 0 15px;
  }
  
  .program-page-title {
    font-size: 32px;
  }
  
  .program-image-box {
    height: 280px;
    margin-bottom: 25px;
  }
  
  .program-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
  }
  
  .spec-card {
    padding: 12px 10px;
  }
}
