/* ============================================================
  program_detail.css  v2
  오감만족 진로직업체험 – 원본 이미지 레이아웃 기준
============================================================ */


.prog-card {
  width: 100%;
  border: 4px solid var(--mintlight20);
  border-radius: 24px;
  margin-bottom: 32px;
  overflow: hidden;
}

/* 히어로 영역 */
.prog-hero {
  position: relative;
  width: 100%;
  background: #c8dff0;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  height: 300px;
}

.prog-bgimage {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 100%;
}

.prog-bgimage img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.prog-hero__title {
  width: fit-content;
  padding: 32px 56px 16px 56px;
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  background-color: var(--white);
  border-radius: 16px 16px 0 0;
}

.prog-hero__title::after {
  content: '';
  position: absolute;
  left: 100%;
  bottom: 0;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at top right,
      transparent 16px,
      var(--white) 16px);
}

.prog-hero__title img {
  width: 32px;
  height: 32px;
}

.prog-badge {
  width: 90px;
  height: 90px;
  position: absolute;
  top: 32px;
  left: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 50%;
  background-color: var(--mint);
  color: var(--white);
  line-height: 1;
}

.prog-badge img {
  width: 18px;
  height: 18px;
}

.prog-badge .badge_lable {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  letter-spacing: -0.04em;
}

.prog-badge .badge__bigT {
  font-size: 24px;
  font-weight: 700;
}

.prog-badge .badge__smallT {
  font-size: 14px;
}

.prog-badge.sams-ai {
  width: 120px;
  height: 120px;
  padding: 8px 16px;
  background-color: var(--blue);
  gap: 8px;
}

.prog-badge.sams-ai .badge_lable {
  gap: 4px;
}

.prog-badge.sams-ai .badge__bigT {
  font-size: 22px;
}

.prog-badge.sams-ai .badge__smallT {
  font-size: 14px;
}

/* 본문 */
.prog-body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 40px 56px;
}

.prog-body:has(.prog-jobs) {
  align-items: stretch;
}

.prog-contents {
  display: flex;
  gap: 72px;
}

.prog-photo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prog-photo img {
  aspect-ratio: 4 / 3;
  background-color: rgba(0, 0, 255, 0.2);
  width: 360px;
}

.prog-infomations {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.prog-hero__tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.prog-hero__tag {
  width: 220px;
  height: 74px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: center / contain url(../img/sub/program/assets/tag_back.svg) no-repeat;
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.04em;
}

.prog-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prog-info * {
  color: var(--text);
}

.prog-info__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.prog-info__key {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.prog-info__key .ico {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
}

.ico img {
  width: 100%;
  height: 100%;
}

.prog-info__val {
  flex: 1;
  word-break: keep-all;
}

.table_wrapper {
  width: 100%;
  flex: 1;
}

.table_wrapper * {
  color: var(--text);
  letter-spacing: -0.02em;
}

.table_subhead {
  margin-bottom: 8px;
  font-size: 24px;
  color: #1f7a7a;
}

.prog-schedule~.table_subhead {
  margin-top: 16px;
}

.prog-schedule {
  width: 100%;
  border-bottom: 2px solid var(--mint);
}

.prog-schedule.short {
  height: 100%;
}

.prog-schedule thead {
  background-color: var(--mintlight20);
  border-top: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  font-size: 18px;
  font-weight: 700;
}

.prog-schedule th,
.prog-schedule td {
  padding: 6px 0;
}

.prog-schedule th:not(:last-child),
.prog-schedule td:not(:last-child) {
  border-right: 1px solid rgba(86, 185, 185, 0.4);
}

.prog-schedule.cook td:last-child.prog-cell {
  border-right: 1px solid rgba(86, 185, 185, 0.4);
}

.prog-schedule tbody tr:not(:last-child) {
  border-bottom: 1px solid rgba(86, 185, 185, 0.4);
}

.prog-schedule tbody td:not(.act-cell) {
  text-align: center;
}

.prog-schedule tbody td.group-cell {
  width: 120px;
}

.prog-schedule tbody td.time-cell {
  width: 120px;
}

.prog-schedule.recipe tbody td.img-cell {
  width: 150px;
  padding: 0;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.prog-schedule.recipe tbody td.img-cell img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prog-schedule tbody td.prog-cell {
  width: 240px;
  word-break: keep-all;
}

.prog-schedule.cook tbody td.prog-cell,
.prog-schedule.recipe tbody td.prog-cell {
  width: 210px;
}

.prog-schedule tbody td.prog-cell .prog_flex_icon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.prog-schedule tbody td.prog-cell .prog_flex_icon img {
  width: auto;
  height: 20px;
}

.prog-schedule tbody td.prog-cell .prog-flex_stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.prog-schedule tbody td.prog-cell .prog-flex_stack span:last-child {
  font-size: 14px;
  color: #1f7a7a;
}

.prog-schedule tbody td.prog-cell .recipe-fee {
  font-size: 14px;
  color: #1f7a7a;
}

.prog-schedule tbody td.act-cell {
  padding-left: 16px;
  padding-right: 16px;
}

.prog-schedule tbody td.act-cell li {
  display: flex;
  gap: 8px;
  word-break: keep-all;
}

.prog-schedule tbody td.act-cell li::before {
  content: "●";
  font-size: 6px;
  color: var(--mint);
  position: relative;
  top: 8px;
}

.prog-schedule.cook tbody td.act-cell {
  padding: 0;
}

.prog-schedule.cook tbody td.act-cell .act-group {
  display: flex;
  flex-direction: column;
}

.prog-schedule.cook tbody td.act-cell .act-group ul {
  padding: 6px 16px;
}

.prog-schedule.cook tbody td.act-cell .act-group ul:first-child,
.prog-schedule.cook tbody td.act-cell .act-group ul:nth-child(2) {
  border-bottom: 1px solid rgba(86, 185, 185, 0.4);
}

.prog-schedule__note {
  margin-top: 8px;
  color: #8f8f8f;
}

.prog-jobs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.prog-jobs * {
  color: var(--text);
  letter-spacing: -0.02em;
}

.prog-jobs__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.prog-jobs__headtext {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prog-jobs__grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prog-jobs__item {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.prog-jobs__icon {
  width: auto;
  height: 40px;
}

.prog-jobs__label {
  font-size: 14px;
  line-height: 1;
}

.prog-section-title {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.prog-section-title .tit_sector {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.prog-section-title .tit_sector .ico {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
}

.prog-section-title .tit_sector .tit {
  display: flex;
  align-items: center;
  font-size: 18px;
}

.prog-section-title .subtit {
  color: var(--mint);
}

.prog-jobs__desc {
  font-size: 14px;
  color: #8f8f8f;
  padding-left: 8px;
}

.prog-jobs~.prog-cta-btns {
  display: none;
}

.prog-cta-btns {
  max-width: 776px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.prog-body>.prog-cta-btns {
  margin-top: 24px;
}

.prog-cta {
  border-radius: 16px;
}

.prog-cta.proposal {
  background-color: var(--mint);
}

.prog-cta.busireg {
  background-color: var(--blue);
}

.prog-cta__btn {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  position: relative;
}

.prog-cta__btn .arrow {
  width: 32px;
  height: 32px;
}

.prog-cta__btn .click_finger {
  width: 48px;
  height: auto;
  position: absolute;
  top: 32%;
  right: -24px;
}

@media (max-width: 1319px) {
  .prog-photo {
    width: 27.4%;
  }

  .prog-photo img {
    width: 100%;
  }

  .prog-schedule tbody td.group-cell {
    width: 9.73%;
  }

  .prog-schedule tbody td.time-cell {
    width: 16.22%;
  }

  .prog-schedule tbody td.prog-cell {
    width: 29.73%;
  }

  .prog-schedule.cook tbody td.prog-cell,
  .prog-schedule.recipe tbody td.prog-cell {
    width: 29.73%;
  }
}

@media (max-width: 1270px) {
  .prog-contents {
    gap: 48px;
  }

  .prog-hero__tags {
    gap: 24px;
  }

  .prog-section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .prog-jobs__icon {
    height: 32px;
  }

  .prog-jobs__label {
    font-size: 12px;
    text-align: center;
  }
}

@media (max-width: 1140px) {
  .prog-body {
    width: 100%;
  }

  .prog-contents {
    flex-direction: column;
    width: 100%;
  }

  .prog-photo {
    width: 100%;
    order: 1;
    flex-direction: row;
  }

  .prog-photo img {
    width: calc((100% - 32px) / 3);
    display: inline-block;
  }
}

@media (max-width: 1080px) {
  .prog-hero__title {
    padding: 24px 24px 12px 24px;
  }

  .prog-body {
    padding: 24px;
  }

  .prog-infomations {
    gap: 24px;
  }

  .prog-hero__tags {
    justify-content: flex-start;
  }

  .prog-cta-btns {
    max-width: 100%;
  }

  .prog-jobs~.prog-cta-btns {
    display: flex;
  }

  .prog-jobs__head .prog-cta-btns {
    display: none;
  }

  .prog-jobs__item {
    min-width: 0;
    min-height: 0;
  }

  .prog-jobs__label {
    font-size: 0.7em;
    line-height: 1.2;
  }
}

@media (max-width: 767px) {
  .prog-contents {
    gap: 32px;
  }

  .prog-hero__tags {
    gap: 16px;
  }

  .prog-hero__tag {
    font-size: 20px;
  }

  .prog-hero__title {
    font-size: 32px;
  }

  .prog-hero__title img {
    width: 24px;
    height: 24px;
  }

  .prog-info {
    gap: 4px;
  }

  .prog-info__row {
    font-size: 16px;
  }

  .prog-info__key .ico {
    width: 14px;
    height: 14px;
  }

  .prog-photo {
    gap: 8px;
  }

  .prog-photo img {
    width: calc((100% - 16px) / 3);
  }

  .prog-schedule thead {
    font-size: 16px;
  }

  .prog-schedule tbody {
    font-size: 14px;
  }

  .prog-schedule tbody td.prog-cell .prog_flex_icon {
    flex-direction: column;
    gap: 2px;
  }

  .prog-schedule tbody td.act-cell li {
    gap: 4px;
  }

  .prog-schedule tbody td.act-cell li::before {
    top: 7px;
  }

  .prog-schedule__note {
    font-size: 14px;
  }

  .prog-jobs__grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .prog-jobs__item {
    padding: 2px;
  }

  .prog-jobs__icon {
    height: 32px;
  }

  .prog-jobs__label {
    font-size: 12px;
  }

  .prog-cta-btns {
    width: 100%;
    justify-content: center;
  }

  .prog-cta {
    border-radius: 8px;
  }

  .prog-cta__btn {
    font-size: 16px;
    gap: 4px;
    padding: 8px 16px;
  }

  .prog-cta__btn .click_finger {
    width: 32px;
    top: 60%;
    right: -16px;
  }
}

@media (max-width: 600px) {
  .prog-body {
    padding: 8px 24px 24px 24px;
  }

  .prog-jobs__icon {
    height: 24px;
  }

  .prog-jobs__label {
    font-size: 0.7em;
  }

  .prog-schedule tbody td.time-cell {
    word-break: keep-all;
  }
}

@media (max-width: 498px) {
  .prog-card {
    border: none;
    border-radius: 8px;
  }

  .prog-hero {
    height: 240px;
    border-radius: 0;
  }

  .prog-badge {
    top: 16px;
    left: 16px;
  }

  .prog-hero__title {
    font-size: 20px;
    gap: 4px;
    padding: 16px 16px 8px 16px;
  }

  .prog-hero__title img {
    width: 16px;
    height: 16px;
  }

  .prog-hero__tags {
    gap: 8px;
  }

  .prog-hero__tag {
    height: 48px;
    font-size: 14px;
    letter-spacing: -0.08em;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .prog-body {
    padding: 16px 0;
  }

  .prog-info__row {
    font-size: 14px;
    gap: 8px;
  }

  .prog-infomations {
    gap: 16px;
  }

  .table_subhead {
    font-size: 16px;
  }

  .prog-schedule thead {
    font-size: 14px;
  }

  .prog-schedule tbody {
    font-size: 10px;
  }

  .prog-schedule tbody td.time-cell {
    width: 10%;
  }

  .prog-schedule tbody td.prog-cell .recipe-fee {
    font-size: 10px;
  }

  .prog-schedule tbody td.prog-cell .prog-flex_stack span:last-child {
    font-size: 10px;
  }

  .prog-schedule tbody td.act-cell {
    padding-left: 8px;
    padding-right: 8px;
  }

  .prog-schedule tbody td.act-cell li::before {
    font-size: 4px;
    top: 5px;
  }

  .prog-schedule.recipe tbody td.img-cell {
    width: 16.22%;
  }

  .prog-section-title .subtit {
    font-size: 12px;
  }

  .prog-jobs__icon {
    height: 16px;
  }

  .prog-jobs__label {
    font-size: 0.5em;
  }

  .prog-cta__btn {
    font-size: 14px;
  }

  .prog-cta__btn .arrow {
    width: 16px;
    height: 16px;
  }

  .prog-cta__btn .click_finger {
    top: 30%;
  }
}

@media (max-width: 400px) {
  .prog-hero {
    height: 200px;
  }

  .prog-jobs__item {
    gap: 2px;
  }

  .prog-jobs__icon {
    height: 40%;
  }

  .prog-jobs__label {
    font-size: 8px;
  }
}

@media (max-width: 356px) {
  .prog-badge.sams-ai {
    width: 90px;
    height: 90px;
    gap: 4px;
  }
  .prog-badge.sams-ai img {
    width: 14px;
    height: 14px;
  }

  .prog-badge.sams-ai .badge_lable {
    gap: 2px;
  }

  .prog-badge.sams-ai .badge__bigT {
    font-size: 14px;
  }

  .prog-badge.sams-ai .badge__smallT {
    white-space: nowrap;
    font-size: 10px;
  }
  .prog-hero__tag {
    height: 32px;
    font-size: 12px;
  }
}