/* ===== edu-apply detail ===== */
.edu-apply-detail .sub-block:not(:last-child) { margin-bottom: 50px; }


.detail-head { display: flex; gap: 35px; align-items: flex-start; }
.detail-head .detail-thumb { flex-shrink: 0; width: 300px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.detail-head .detail-thumb .detail-thumb-viewer-trigger { display: block; width: 100%; border: 0; background: transparent; padding: 0; cursor: zoom-in; position: relative; overflow: hidden; }
.detail-head .detail-thumb .detail-thumb-viewer-trigger::after { content: '원본보기'; position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding-top: 30px; background-color: rgba(0, 0, 0, 0.3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M4 12V4h8M20 4h8v8M28 20v8h-8M12 28H4v-8' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center calc(50% - 17px); background-size: 24px 24px; color: #fff; font-size: 1.5rem; font-weight: 700; letter-spacing: 0.04em; opacity: 0; transition: opacity 0.2s; }
.detail-head .detail-thumb .detail-thumb-viewer-trigger:hover::after { opacity: 1; }
.detail-head .detail-thumb img { width: 100%; height: auto; display: block; transition: transform 0.3s, filter 0.3s; }
.detail-head .detail-thumb .detail-thumb-viewer-trigger:hover img { transform: scale(1.04); filter: brightness(0.82); }
.detail-head .detail-head-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 15px; }
.viewer-open { overflow: hidden; }
.detail-image-viewer { position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center; justify-content: center; padding: 30px; }
.detail-image-viewer[hidden] { display: none; }
.detail-image-viewer .viewer-dimmed { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); }
.detail-image-viewer .viewer-content { position: relative; display: flex; align-items: flex-start; justify-content: center; max-width: 100%; max-height: 100%; }
.detail-image-viewer .viewer-close-btn { position: absolute; top: -42px; right: 0; border: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.2); color: #fff; font-size: 1.3rem; font-weight: 700; padding: 6px 12px; cursor: pointer; }
.detail-image-viewer .viewer-image { position: relative; max-width: min(95vw, 1600px); max-height: 90vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45); background: #fff; }
.detail-head-info .detail-org { font-size: 1.5rem; color: #888; font-weight: 600; }
.detail-head-info .detail-badges { display: flex; gap: 6px; margin-bottom: 10px; }
.detail-badges .badge { display: inline-flex; align-items: center; padding: 4px 15px; font-size: 1.3rem; font-weight: 600; border-radius: 13px; color: #fff; }
.detail-badges .badge-open { background: var(--theme); }
.detail-badges .badge-deadline { background: #FF4314; gap: 4px; }
.detail-badges .badge-deadline .dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: badge-deadline-dot-blink 1s ease-in-out infinite; }
.detail-badges .badge-closed { background: var(--gray); }

@keyframes badge-deadline-dot-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.2; }
}
.detail-head-info .detail-title { font-size: 2.9rem; font-weight: 800; line-height: 1.4; word-break: keep-all; margin-bottom: 14px; }
.detail-head-info .detail-summary { font-size: 1.6rem; color: #555; line-height: 1.6; word-break: keep-all; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }

.detail-head-info .detail-meta-list { display: flex; flex-direction: column; gap: 12px; }
.detail-meta-list .detail-meta-row { display: flex; align-items: flex-start; gap: 16px; font-size: 1.6rem; }
.detail-meta-row .meta-label { flex-shrink: 0; width: 70px; font-weight: 600; }
.detail-meta-row .meta-value { line-height: 1.6; word-break: keep-all; }
.detail-meta-row .meta-value strong { color: var(--theme); }

.detail-head-info .detail-head-btns { margin-top: 15px; }
.detail-head-btns .btn-apply-large { display: inline-flex; align-items: center; justify-content: center; padding: 14px 50px; background: var(--dark); color: #fff; font-size: 1.6rem; font-weight: 700; border-radius: 10px; transition: background 0.2s; }
.detail-head-btns .btn-apply-large:hover { background: #001a55; }
.detail-two-col-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; margin-bottom: 30px; }
.detail-two-col-layout .detail-main-col { min-width: 0; }
.detail-two-col-layout .detail-side-col { display: flex; flex-direction: column; gap: 15px; }
.detail-two-col-layout .detail-side-col .sub-block:not(:last-child) { margin-bottom: 0; }
.detail-side-col .side-info-block { margin-bottom: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; border-left-width: 5px; }
.detail-side-col .side-info-block .side-info-title { margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 1.7rem; font-weight: 700; color: var(--dark); line-height: 1.4; }
.detail-side-col .side-info-block .sub-bullet-list { display: flex; flex-direction: column; gap: 8px; }
.detail-side-col .side-info-block .sub-bullet-list li { position: relative; padding-left: 14px; font-size: 1.45rem; color: #394150; line-height: 1.65; word-break: keep-all; }
.detail-side-col .side-info-block .sub-bullet-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: #3d6fde; }
.detail-side-col .support-info-block { border: 0; background: var(--dark); }
.detail-side-col .support-info-block .side-info-title { border-bottom-color: transparent; margin-bottom: 0; color: #fff; }
.support-info-block .support-info-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.support-info-block .support-info-row { padding: 12px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.support-info-block .support-info-row .label { font-size: 1.2rem; color: rgba(255, 255, 255, 0.65); margin-bottom: 4px; }
.support-info-block .support-info-row .value { font-size: 1.45rem; color: #fff; font-weight: 600; line-height: 1.5; word-break: keep-all; }
.support-info-block .support-chat-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px; border-radius: 8px; background: linear-gradient(90deg, rgba(255, 232, 130, 0.16) 0%, rgba(194, 164, 58, 0.16) 100%); border: 1px solid rgba(255,232,130,0.2); }
.support-info-block .support-chat-row .chat-info { min-width: 0; }
.support-info-block .support-chat-row .chat-info .label { font-size: 1.2rem; color: #f6d95a; margin-bottom: 3px; }
.support-info-block .support-chat-row .chat-info .value { font-size: 1.35rem; color: #fff; font-weight: 600; line-height: 1.4; }
.support-info-block .support-chat-row .btn-chat-link { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 7px 12px; border-radius: 20px; background: #ffe14a; color: #1d1d1d; font-size: 1.25rem; font-weight: 700; }
.detail-side-col .logistics-info-block .sub-bullet-list { display: flex; flex-direction: column; gap: 9px; }
.detail-side-col .logistics-info-block .sub-bullet-list li { padding-left: 16px; line-height: 1.55; }
.detail-side-col .logistics-info-block .sub-bullet-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: auto; height: auto; border-radius: 0; background: none; color: #2f67d8; font-size: 1.2rem; font-weight: 700; }

.sub-block .detail-curriculum-timeline { position: relative; padding-left: 28px; }
.detail-curriculum-timeline::before { content: ''; position: absolute; left: 7px; top: 15px; bottom: 0; width: 2px; background: #d9deea; }
.detail-curriculum-timeline .timeline-item { position: relative; }
.detail-curriculum-timeline .timeline-item:not(:last-child) { margin-bottom: 32px; }
.detail-curriculum-timeline .timeline-item::before { content: ''; position: absolute; left: -25px; top: 12px; width: 10px; height: 10px; border-radius: 50%; background: #2c6de9; }
.timeline-item .timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.timeline-head .timeline-date { display: inline-flex; align-items: center; color: var(--dark); font-size: 1.8rem; font-weight: 700; line-height: 1.3; }
.timeline-head .timeline-lecturer { display: inline-flex; align-items: center; padding: 7px 12px; border: 1px solid #d2d8e4; border-radius: 7px; background: #f5f7fa; color: #526070; font-size: 1.4rem; font-weight: 600; line-height: 1.3; }
.timeline-item .timeline-content { padding: 20px 24px; border: 1px solid #cdd4e1; border-radius: 16px; background: #eef2f8; }
.timeline-content .day-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.timeline-content .day-list li { position: relative; padding-left: 14px; font-size: 1.7rem; font-weight: 400; line-height: 1.5; word-break: keep-all; }
.timeline-content .day-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--dark); }

.detail-support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.detail-support-grid .detail-support-card { margin-bottom: 0; }

.detail-apply-btn-wrap { display: flex; margin-top: 20px; }
.detail-apply-btn-wrap .btn-apply-large { display: inline-flex; align-items: center; justify-content: center; padding: 15px 0; max-width: 100%; width: 300px; background: var(--dark); color: #fff; font-size: 1.6rem; font-weight: 700; border-radius: 8px; transition: background 0.2s; }
.detail-apply-btn-wrap .btn-apply-large:not(.disabled):hover { background: #001a55; }
.detail-apply-btn-wrap .btn-apply-large.disabled { background: var(--gray); cursor: not-allowed; }

.detail-list-link-wrap { display: flex; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.detail-list-link-wrap .btn-list-link { display: inline-flex; align-items: center; padding: 12px 30px; border: 1px solid #a5a5a5; border-radius: 8px; font-size: 1.6rem; color: #444; transition: background 0.2s; }
.detail-list-link-wrap .btn-list-link:hover { background: #f0f3f8; }

@media (max-width: 1024px) {
	.detail-two-col-layout { grid-template-columns: 1fr; }
	.detail-two-col-layout .detail-side-col { gap: 20px; }
	.detail-side-col .side-info-block { padding: 18px; border-radius: 10px; }
	.detail-support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.detail-page-header { flex-wrap: wrap; gap: 10px; }
	.detail-head { gap: 20px; }
	.detail-head .detail-thumb { width: 220px; }
	.detail-head-info .detail-title { font-size: 2.2rem; }
	.detail-head-info .detail-summary { font-size: 1.4rem; }
	.detail-head-info .detail-meta-list { gap: 8px; }
	.detail-meta-row .meta-label { width: 55px; font-size: 1.4rem; }
	.detail-meta-row .meta-value { font-size: 1.4rem; }
	.detail-head-btns .btn-apply-large { width: 100%; padding: 13px 0; }
	.sub-block .detail-curriculum-timeline { padding-left: 20px; }
	.detail-curriculum-timeline .timeline-item::before { left: -20px; top: 6px; }
	.timeline-item .timeline-head { flex-direction: column; align-items: flex-start; margin-bottom: 10px; }
	.timeline-head .timeline-date { font-size: 1.6rem; }
	.timeline-head .timeline-lecturer { font-size: 1.4rem; padding: 5px 10px; border-radius: 4px; }
	.timeline-item .timeline-content { padding: 16px 18px; border-radius: 12px; }
	.timeline-content .day-list li { font-size: 1.6rem; }
	.detail-image-viewer { padding: 16px; }
	.detail-image-viewer .viewer-close-btn { top: -36px; padding: 5px 10px; }
	.detail-apply-btn-wrap .btn-apply-large { width: 100%; padding: 16px 0; }
	.detail-curriculum-timeline::before { left: 4px; }
}
@media (max-width: 580px) {
	.detail-head { flex-direction: column; align-items: flex-start; gap: 20px; position: relative; margin-bottom: 70px !important; }
	.detail-head::after { content: ''; width: 100vw; height: 10px; background: #e7eaed; position: absolute; left: -25px; bottom: -35px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
	.detail-head .detail-thumb { width: 100%; }
	.detail-head .detail-head-info { width: 100%; }
	.detail-head-info .detail-title { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
	.timeline-item .timeline-content { border-radius: 10px; padding: 14px 16px; }
	.timeline-item .timeline-head { gap: 8px; }
	.timeline-head .timeline-date { font-size: 1.5rem; }
	.timeline-head .timeline-lecturer { padding: 0; border: 0; background: transparent;  font-size: 1.3rem; }
	.timeline-content .day-list { gap: 6px; }
	.timeline-content .day-list li { font-size: 1.4rem; padding-left: 8px; }
	.timeline-content .day-list li::before { width: 3px; height: 3px; top: 8px; }
	.detail-two-col-layout .detail-side-col { gap: 15px; }
	.detail-side-col .side-info-block { border-radius: 7px; padding: 15px; }
	.detail-side-col .side-info-block .side-info-title { font-size: 1.6rem; margin-bottom: 8px; padding-bottom: 8px; }
	.detail-side-col .side-info-block .sub-bullet-list li { font-size: 1.3rem; }
}