/*--------------------------------------------------------------
# Work Process Section
--------------------------------------------------------------*/
.our-work .steps-item {
  background: var(--surface-color);
  border-radius: 20px;
  height: 100%;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 5px 20px color-mix(in srgb, var(--default-color), transparent 92%);
}

.our-work .steps-item .steps-image {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.our-work .steps-item .activity-image {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.our-work .steps-item .activity-badge {
  position: absolute;
  top: -16px;
  right: 16px;
  z-index: 3;
  font-size: 18px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  line-height: 1.2;
  white-space: nowrap;
}

.our-work .steps-item .activity-badge--today,
.our-work .steps-item .activity-badge--tomorrow {
  background: #dc3545;
  color: #fff;
}

.our-work .steps-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px color-mix(in srgb, var(--accent-color), transparent 85%);
}

.our-work .steps-item:hover .steps-number {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.our-work .steps-item:hover .steps-image img {
  transform: scale(1.1);
}

.our-work .steps-image {
  position: relative;
  height: 280px;
}

.our-work .activity-image img {
  object-fit: cover;
  transition: transform 0.6s ease;
}

.our-work .steps-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.our-work .steps-content {
  position: relative;
  padding: 40px 30px 30px;
}

.our-work .steps-content .steps-number {
  position: absolute;
  left: 30px;
  top: -30px;
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50%;
  font-family: var(--heading-font);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

.our-work .steps-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.our-work .steps-content p {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 25px;
}

.our-work .steps-features .feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.our-work .steps-features .feature-item:last-child {
  margin-bottom: 0;
}

.our-work .steps-features .feature-item i {
  color: var(--accent-color);
  font-size: 18px;
  margin-right: 10px;
}

.our-work .steps-features .feature-item span {
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

@media (max-width: 1199px) {
  .our-work .steps-image {
    height: 240px;
  }

  .our-work .steps-content {
    padding: 35px 25px 25px;
  }

  .our-work .steps-content h3 {
    font-size: 22px;
  }
}

@media (max-width: 991px) {
  .our-work .steps-item {
    margin-bottom: 30px;
  }

  .our-work .steps-image {
    height: 220px;
  }

  .our-work .steps-content {
    padding: 30px 20px 20px;
  }

  .our-work .steps-content .steps-number {
    width: 50px;
    height: 50px;
    font-size: 20px;
    left: 25px;
    top: -25px;
  }

  .our-work .steps-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .our-work .steps-content p {
    font-size: 16px;
    margin-bottom: 20px;
  }
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/

.hero {
  width: 100%;
  position: relative;
  align-items: center;
  overflow: hidden;
}

.hero .hero-bg img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .hero-bg.limited img {
  position: absolute; /* ไม่ต้อง absolute */
  width: 100%;
  max-width: 1320px;
  height: 100%; /* ให้สัดส่วนไม่เพี้ยน */
  margin: 0 auto;
  display: block;
}

.hero .hero-bg::before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 15%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}


/*--------------------------------------------------------------
# Reserve Card (Bold Header)
--------------------------------------------------------------*/

.rcard {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.rcard-head {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #fff;
}
.rcard-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}
.rcard-chip {
  background: rgba(255, 255, 255, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Default = theme light blue with dark blue text */
.rcard-h-default { background: #DBF2FA; color: #014198; }
.rcard-h-reserve { background: #f59e0b; }
.rcard-h-booked  { background: #198754; }
.rcard-h-fail    { background: #dc3545; }
.rcard-h-ended   { background: #6b7280; }

.rcard-body {
  padding: 14px 18px;
}
.rcard-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #4b5563;
  padding: 3px 0;
}
.rcard-meta i {
  color: #9ca3af;
  font-size: 18px;
  width: 20px;
  text-align: center;
}
.rcard-full {
  color: #dc3545;
  font-weight: 600;
  margin-left: 4px;
}

.rcard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px 16px;
}
.rcard-actions-center {
  justify-content: center;
}
.rcard-status-text {
  color: #6b7280;
  font-weight: 600;
  font-size: 16px;
}
.rcard-status-text.danger {
  color: #dc3545;
}

/*--------------------------------------------------------------
# Volunteer Choice Popup
--------------------------------------------------------------*/

.vc-modal {
  max-width: 480px;
  width: 92vw;
  border-radius: 16px !important;
  overflow: hidden;
  border: 0 !important;
}
.vc-header {
  padding: 18px 22px;
  background: linear-gradient(135deg, #DBF2FA 0%, #f8fbff 100%);
  color: #014198;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
}
.vc-title-main {
  font-size: 18px;
  font-weight: 700;
}
.vc-close {
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #014198;
  transition: background 0.15s;
}
.vc-close:hover {
  background: rgba(1, 65, 152, 0.1);
}
.vc-body {
  padding: 22px;
}
.vc-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 18px;
}
.vc-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: #fff;
  transition: all 0.15s;
  margin-bottom: 12px;
}
.vc-option:last-child { margin-bottom: 0; }
.vc-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}
.vc-option-participant:hover { border-color: #0d6efd; }
.vc-option-volunteer:hover   { border-color: #198754; }

.vc-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
}
.vc-option-participant .vc-icon { background: linear-gradient(135deg, #0d6efd, #0a58ca); }
.vc-option-volunteer   .vc-icon { background: linear-gradient(135deg, #198754, #146c43); }

.vc-content {
  flex-grow: 1;
  min-width: 0;
}
.vc-opt-title {
  font-weight: 700;
  font-size: 16px;
  color: #1f2937;
}
.vc-opt-desc {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}
.vc-arrow {
  color: #9ca3af;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.vc-option:hover .vc-arrow {
  transform: translateX(3px);
}

/*--------------------------------------------------------------
# Participant Filter Buttons
--------------------------------------------------------------*/

.participant-filter-btns {
  row-gap: 0.5rem !important;
}

.participant-filter-btn {
  border: 1px solid #dee2e6;
  background: #fff;
  color: #495057;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.participant-filter-btn:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
  color: #212529;
}

.participant-filter-btn.active,
.participant-filter-btn.active:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
}

.participant-btn-date {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.85em;
  opacity: 0.85;
  font-weight: 400;
}

.participant-filter-bar #rgt-filter-box {
  margin-bottom: 0;
}

.participant-table-area {
  min-height: 200px;
}

td.participant-me {
  font-weight: 700;
  background-color: #e7f3ff !important;
}
td.participant-me::before {
  content: "\f00c";
  font-family: "bootstrap-icons";
  margin-right: 0.35rem;
  color: #0d6efd;
}

@media (max-width: 575px) {
  .participant-filter-btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.875rem;
  }
  .participant-btn-date {
    display: block;
    margin-left: 0;
    margin-top: 0.15rem;
  }
}

/*--------------------------------------------------------------
# Denied State (inline card with floating alertCard icon-box)
--------------------------------------------------------------*/

.denied-wrapper {
  max-width: 560px;
  margin: 3rem auto 2rem;
  padding: 0 1rem;
}

.denied-card {
  background: var(--surface-color, #fff);
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--default-color, #212529), transparent 90%);
  box-shadow: 0 10px 40px color-mix(in srgb, var(--default-color, #212529), transparent 92%);
  padding: 3rem 2rem;
}

.denied-card .icon-box {
  position: static;
  top: auto;
  margin: 0 auto 1.5rem;
}

.denied-message {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

.denied-cta {
  margin-top: 1.5rem;
}

@media (max-width: 575px) {
  .denied-wrapper {
    margin-top: 2rem;
  }
  .denied-card {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
  }
  .denied-card .icon-box {
    margin-bottom: 1.25rem;
  }
  .denied-message {
    font-size: 1.1rem;
  }
  .denied-cta {
    padding: 0.85rem 1.75rem !important;
    font-size: 1rem !important;
  }
}

/*--------------------------------------------------------------
# Profile Form (reserveSave popup-inline)
--------------------------------------------------------------*/

#profile-reserve-form #form-title {
  color: var(--accent-color);
}
