/* 기본 폰트 및 배경 설정 */
body {
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fcfcfc;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  margin-top: 40px;
  color: #222;
}

/* 카드 컨테이너 */
.container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 50px auto;
  padding: 0 20px;
  max-width: 1000px;
}

/* 카드 개별 스타일 */
.card {
  padding: 30px 20px;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-align: center;
  width: 280px;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #007bff;
}

.card h2 {
  margin-top: 0;
  font-size: 1.4rem;
}
.card p {
  color: #666;
  font-size: 0.95rem;
}

/* 버튼 공통 스타일 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #007bff;
  color: white !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  background: #0056b3;
}

.card div {
  margin-top: 15px;
}

/* 상세 설명 섹션 */
.divider {
  max-width: 800px;
  border: 0;
  border-top: 1px solid #eee;
  margin: 60px auto;
}

/* 상세 설명 섹션 - 처음에는 안 보이게 설정 */
.description-section {
  display: none; /* 아예 사라짐 */
  max-width: 800px;
  margin: 0 auto 100px auto;
  padding: 0 20px;
}

/* 섹션이 활성화되었을 때만 보여줌 */
.description-section.active {
  display: block;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  color: #444;
}

/* details/summary 스타일 */
details {
  margin-bottom: 15px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: all 0.3s ease;
  scroll-margin-top: 50px; /* 스크롤 위치 확보 */
}

details[open] {
  border-color: #007bff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

summary {
  padding: 18px;
  background: #f9f9f9;
  cursor: pointer;
  font-weight: bold;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

summary:hover {
  background: #f1f1f1;
}

summary::after {
  content: "＋";
  color: #007bff;
  font-size: 1.2rem;
  transition: transform 0.3s;
}

details[open] summary::after {
  content: "－";
  transform: rotate(180deg);
}

.details-content {
  padding: 25px;
  border-top: 1px solid #eee;
  background: #fff;
}

/* PPT 슬라이더 전용 스타일 */
/* 슬라이드 이미지/영상 기본 스타일 */
.slide-viewport img,
.slide-viewport video {
  width: 100%;
  height: auto;
  opacity: 1;
  transition: opacity 0.3s ease-in-out; /* 0.3초 동안 부드럽게 나타남 */
}

/* 이미지가 교체될 때 잠시 투명해졌다가 나타나는 효과를 원한다면 */
.fade-out {
  opacity: 0;
}

.slide-viewport img {
  max-width: 100%;
  height: auto;
}

.ppt-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 15px;
  color: #fff;
  font-weight: bold;
}

/* 슬라이드 번호 텍스트 스타일 */
.ppt-controls span {
  color: #333 !important; /* 어두운 회색으로 강제 지정 */
  font-weight: bold;
  font-size: 1rem;
  min-width: 60px; /* 숫자가 변할 때 버튼이 흔들리지 않게 고정 */
  text-align: center;
}

.ppt-controls button {
  background: #444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.ppt-controls button:hover {
  background: #007bff;
}

/* 케이스 스터디 단계별 스타일 */
.case-study-container {
  margin-top: 40px;
}

.case-step {
  border-bottom: 1px solid #eee;
  padding: 30px 0;
}

.case-step:last-child {
  border-bottom: none;
}

.step-title {
  color: #007bff;
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.step-body {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.step-text {
  flex: 1;
}

.step-text p {
  margin: 10px 0;
}

.step-image {
  flex: 0 0 280px;
  text-align: center;
}

/* 케이스 스터디 텍스트 레이블 스타일 */
.step-label {
  font-weight: bold;
  color: #444;
  margin-bottom: 5px;
  font-size: 0.95rem;
  display: block;
  background: #f1f3f5;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.step-desc {
  margin-bottom: 15px;
  padding-left: 5px;
  color: #555;
}

/* 아키텍처 이미지 강조 */
.step-image img {
  border: 2px solid #007bff; /* 포인트 컬러 테두리 */
  transition: all 0.3s ease;
  background: #fff;
}

.step-image img:hover {
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
  transform: scale(1.05);
}

.image-caption {
  font-size: 0.8rem;
  color: #888;
  margin-top: 8px;
}

/* 인용구 스타일 */
blockquote {
  margin: 0 0 20px 0;
  padding: 15px 20px;
  border-left: 5px solid #007bff;
  background: #f0f7ff;
  color: #38587d;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
  }
  .step-body {
    flex-direction: column;
  }
  .step-image {
    width: 100%;
    flex: none;
  }
}

/* 마크다운(Markdown) 컨텐츠 전용 스타일 (Velog 느낌) */
.markdown-body {
  text-align: left;
  color: #333;
  font-size: 1.05rem;
  line-height: 1.8;
}

.markdown-body h2 {
  color: #007bff;
  font-size: 1.6rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 8px;
  margin-top: 40px;
  margin-bottom: 15px;
}

.markdown-body h3 {
  color: #333;
  font-size: 1.3rem;
  margin-top: 30px;
  margin-bottom: 12px;
}

.markdown-body p {
  margin-bottom: 16px;
  color: #444;
}

.markdown-body strong {
  color: #222;
  background: #f1f3f5;
  padding: 2px 6px;
  border-radius: 4px;
}

.markdown-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin: 20px auto;
  display: block;
}

.markdown-body ul,
.markdown-body ol {
  margin-bottom: 20px;
  padding-left: 25px;
}
