/* ============================================
   Page Hero (shared by Programs, Counselors)
   ============================================ */
.page-hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(13, 38, 52, 0.82), rgba(46, 139, 139, 0.52), rgba(106, 90, 205, 0.34)),
    url("https://images.unsplash.com/photo-1516302752625-fcc3c50ae61f?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: var(--white);
  display: flex;
  min-height: 420px;
  padding: 160px 0 80px;
  position: relative;
}

.page-hero::after {
  background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.92));
  bottom: 0;
  content: "";
  height: 120px;
  left: 0;
  position: absolute;
  right: 0;
}

.page-hero .hero-content {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

/* ============================================
   Programs
   ============================================ */
.program-content {
  line-height: 1.8;
  font-size: 1.05rem;
}

.program-content h2,
.program-content h3 {
  color: var(--ink);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

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

.program-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.program-content ul li {
  margin-bottom: 0.4rem;
}

/* Sidebar quick links */
.program-quick-links li + li {
  margin-top: 0.55rem;
}

.program-quick-links a {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.95rem;
  gap: 0.6rem;
  transition: color 0.2s ease;
}

.program-quick-links a i {
  color: var(--primary);
  width: 18px;
}

.program-quick-links a:hover {
  color: var(--primary);
}

/* Responsive - Program detail */
@media (max-width: 767.98px) {
  .program-content {
    font-size: 1rem;
    line-height: 1.7;
  }
}

/* ============================================
   Counselors
   ============================================ */
.counselor-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(46, 139, 139, 0.2);
}

.counselor-avatar {
  width: 64px;
  height: 64px;
  font-size: 1.4rem;
}

.counselor-profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(46, 139, 139, 0.2);
}

.counselor-profile-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  font-size: 2.5rem;
  font-weight: 800;
  height: 120px;
  justify-content: center;
  width: 120px;
}

.counselor-bio {
  line-height: 1.8;
  font-size: 1.05rem;
}

.counselor-bio h2,
.counselor-bio h3 {
  color: var(--ink);
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.counselor-bio ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.counselor-bio ul li {
  margin-bottom: 0.4rem;
}

.input-group-text {
  border-color: rgba(100, 116, 139, 0.22);
}

.form-select {
  border: 1px solid rgba(100, 116, 139, 0.22);
  border-radius: 8px;
  padding: 0.8rem 0.95rem;
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(46, 139, 139, 0.15);
}

.pagination .page-link {
  color: var(--primary);
  border-color: var(--line);
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ============================================
   Training
   ============================================ */
.spec-badge {
  display: inline-block;
  background: rgba(46, 139, 139, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin: 0.15rem;
}

.training-hero {
  background:
    linear-gradient(90deg, rgba(13, 38, 52, 0.82), rgba(46, 139, 139, 0.52)),
    url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?auto=format&fit=crop&w=1800&q=80') center/cover;
  color: var(--white);
  padding: 130px 0 60px;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
}

.training-hero::after {
  background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.92));
  bottom: 0;
  content: "";
  height: 80px;
  left: 0;
  position: absolute;
  right: 0;
}

.breadcrumb-custom {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}

.breadcrumb-custom .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb-custom .breadcrumb-item a:hover {
  color: var(--accent);
}

.breadcrumb-custom .breadcrumb-item.active {
  color: var(--white);
  font-weight: 600;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  position: sticky;
  top: 100px;
}

.sidebar-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.sidebar-info-row:last-child {
  border-bottom: none;
}

.sidebar-info-row i {
  color: var(--primary);
  margin-top: 0.2rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-info-row .info-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}

.sidebar-info-row .info-value {
  color: var(--muted);
  font-size: 0.92rem;
}

.curriculum-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.curriculum-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.curriculum-list li:last-child {
  border-bottom: none;
}

.curriculum-list li .step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(46, 139, 139, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
}

.reg-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.spots-left {
  background: rgba(244, 180, 0, 0.12);
  color: #B47D00;
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1rem;
}

.spots-left strong {
  font-size: 1.1rem;
}

/* ============================================
   Appointments - Wizard
   ============================================ */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.wizard-step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
}

.wizard-step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--muted);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.wizard-step-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(46, 139, 139, 0.18);
}

.wizard-step-dot.completed {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.wizard-step-line {
  width: 48px;
  height: 3px;
  background: var(--line);
  transition: background 0.3s ease;
}

.wizard-step-line.completed {
  background: var(--primary);
}

.wizard-panel {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.wizard-panel.active {
  display: block;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.counselor-select-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--white);
  height: 100%;
}

.counselor-select-card:hover {
  border-color: rgba(46, 139, 139, 0.4);
  box-shadow: 0 8px 24px rgba(20, 33, 61, 0.08);
  transform: translateY(-3px);
}

.counselor-select-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 139, 139, 0.18);
  background: rgba(46, 139, 139, 0.04);
}

.counselor-select-card .counselor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--line);
}

.counselor-select-card.selected .counselor-avatar {
  border-color: var(--primary);
}

.type-select-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--white);
  text-align: center;
}

.type-select-card:hover {
  border-color: rgba(46, 139, 139, 0.4);
  transform: translateY(-3px);
}

.type-select-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 139, 139, 0.18);
  background: rgba(46, 139, 139, 0.04);
}

.duration-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--white);
  text-align: center;
}

.duration-card:hover {
  border-color: rgba(46, 139, 139, 0.4);
}

.duration-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 139, 139, 0.18);
  background: rgba(46, 139, 139, 0.04);
}

.fee-display {
  background: linear-gradient(135deg, rgba(46, 139, 139, 0.08), rgba(106, 90, 205, 0.06));
  border: 1px solid rgba(46, 139, 139, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.fee-display .fee-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.time-slot-btn {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--white);
  font-weight: 600;
  text-align: center;
  font-size: 0.92rem;
}

.time-slot-btn:hover:not(.disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.time-slot-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.time-slot-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.wizard-nav-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.summary-table td:first-child {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  width: 180px;
}

.summary-table td:last-child {
  color: var(--muted);
}

.loading-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  z-index: 10;
  align-items: center;
  justify-content: center;
}

.loading-overlay.show {
  display: flex;
}

/* ============================================
   Appointment Success
   ============================================ */
.success-icon-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.success-icon-wrap i {
  font-size: 3rem;
  color: #22c55e;
  animation: popIn 0.5s ease;
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row .label {
  font-weight: 700;
  color: var(--ink);
  min-width: 160px;
}

.detail-row .value {
  color: var(--muted);
  text-align: right;
}

.status-badge {
  display: inline-block;
  background: rgba(244, 180, 0, 0.15);
  color: #B47D00;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* ============================================
   Shared
   ============================================ */
.breadcrumb-item + .breadcrumb-item::before {
  content: "\203A";
}

.flex-fill {
  flex: 1 1 0;
}

.table th {
  border-bottom: 2px solid var(--line);
  color: var(--ink);
}

.table td {
  border-bottom: 1px solid var(--line);
}

/* Responsive - Wizard */
@media (max-width: 575.98px) {
  .wizard-progress { gap: 0; }
  .wizard-step-line { width: 24px; }
  .wizard-step-dot { width: 32px; height: 32px; font-size: 0.78rem; }
  .time-slot-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* Print */
@media print {
  .navbar, footer, .scroll-top, .call-fab, .wizard-progress, .no-print { display: none !important; }
  .section-padding { padding: 24px 0 !important; }
}
