/* 블로그 상세 페이지 전용 스타일 */
/* 헤더/네비게이션은 styles.css 사용 */

:root {
  --primary-blue: #3B70FF;
  --dark-blue: #2563EB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
}

/* 히어로 섹션 */
.hero-section-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.hero-section {
  width: 100%;
  max-width: 1280px;
  height: 540px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0 auto;
  padding: 0 128px;
}

.hero-bg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.hero-content {
  position: absolute;
  top: 190px;
  width: 100%;
  max-width: 1280px;
  padding: 0 128px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  z-index: 1;
}

.hero-title {
  color: white;
  font-size: 60px;
  font-weight: 700;
  line-height: 90px;
  text-align: left;
  font-family: 'Pretendard', sans-serif;
}

.hero-date {
  position: absolute;
  right: 128px;
  bottom: 62px;
  color: white;
  font-size: 24px;
  font-weight: 400;
  z-index: 1;
}

/* 본문 섹션 */
.content-section-wrapper {
  width: 100%;
  background: white;
  display: flex;
  justify-content: center;
}

.content-container {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  margin: 0 auto;
  padding: 96px 128px;
}

/* 본문 스타일 */
.content-container p {
  color: #737373;
  font-size: 20px;
  font-weight: 400;
  line-height: 36px;
  font-family: 'Pretendard', sans-serif;
  margin-bottom: 5px;
  text-align: left;
}

.content-container h2 {
  color: #18181B;
  font-size: 36px;
  font-weight: 700;
  font-family: 'Pretendard', sans-serif;
  margin-top: 24px;
  margin-bottom: 12px;
  text-align: left;
}

.content-container h3 {
  color: #18181B;
  font-size: 28px;
  font-weight: 600;
  font-family: 'Pretendard', sans-serif;
  margin-top: 16px;
  margin-bottom: 8px;
  text-align: left;
}

.content-container h4 {
  color: #18181B;
  font-size: 24px;
  font-weight: 600;
  font-family: 'Pretendard', sans-serif;
  margin-top: 12px;
  margin-bottom: 6px;
  text-align: left;
}

.content-container strong {
  color: #18181B;
  font-weight: 700;
}

.content-container a {
  color: #3B70FF;
  text-decoration: underline;
  transition: color 0.3s;
}

.content-container a:hover {
  color: #2563EB;
}

.content-container hr {
  width: 100%;
  height: 1px;
  background: #E5E7EB;
  border: none;
  margin: 48px 0;
}

.content-container ul,
.content-container ol {
  color: #737373;
  font-size: 20px;
  line-height: 30px;
  margin: 20px 0;
  padding-left: 40px;
}

.content-container li {
  margin-bottom: 12px;
}

.content-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 32px auto;
  display: block;
}

.content-container figure {
  margin: 32px auto;
  text-align: center;
}

.content-container figure img {
  margin: 0 auto;
}

.content-container blockquote {
  border-left: 4px solid #3B70FF;
  padding-left: 24px;
  margin: 32px 0;
  color: #535355;
  font-style: italic;
}

.content-container code {
  background: #F5F5F5;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 18px;
}

.content-container pre {
  background: #F5F5F5;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}

.content-container pre code {
  background: none;
  padding: 0;
}

/* 표 스타일 */
.content-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px auto;
  background: white;
  border: 1px solid #E5E7EB;
}

.content-container thead {
  background: #F3F4F6;
}

.content-container th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  color: #18181B;
  font-size: 18px;
  border-bottom: 2px solid #D1D5DB;
  border-right: 1px solid #E5E7EB;
}

.content-container th:last-child {
  border-right: none;
}

.content-container td {
  padding: 16px 20px;
  color: #737373;
  font-size: 18px;
  border-bottom: 1px solid #E5E7EB;
  border-right: 1px solid #E5E7EB;
  line-height: 1.6;
}

.content-container td:last-child {
  border-right: none;
}

.content-container tbody tr:nth-child(even) {
  background: #F9FAFB;
}

.content-container tbody tr:hover {
  background: #F3F4F6;
}

.content-block {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.content-title {
  color: black;
  font-size: 36px;
  font-weight: 700;
  font-family: 'Pretendard', sans-serif;
  text-align: left;
}

.content-subtitle {
  color: #18181B;
  font-size: 28px;
  font-weight: 600;
  font-family: 'Pretendard', sans-serif;
  margin-top: 32px;
  margin-bottom: 16px;
  text-align: left;
}

.content-text {
  color: #737373;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  font-family: 'Pretendard', sans-serif;
  margin-bottom: 20px;
  text-align: left;
}

.content-text strong {
  color: #18181B;
  font-weight: 700;
}

.content-image {
  width: 100%;
  max-width: 1280px;
  height: auto;
  object-fit: cover;
}

.content-divider {
  width: 100%;
  max-width: 1280px;
  height: 1px;
  background: #E5E7EB;
  border: none;
  margin: 48px 0;
}

/* 액션 버튼 */
.action-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 28px;
  margin-top: 48px;
  max-width: 1280px;
  width: 100%;
}

.action-btn {
  width: 384px;
  height: 96px;
  padding: 20px;
  border-radius: 16px;
  border: 2px solid #D4D4D4;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none !important;
  background: white;
}

.action-btn:link,
.action-btn:visited,
.action-btn:hover,
.action-btn:active {
  text-decoration: none !important;
}

.action-btn:hover {
  border-color: var(--primary-blue);
  background: #F8FAFF;
}

.action-icon {
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.action-text {
  color: var(--gray-600);
  font-size: 24px;
  font-weight: 500;
  font-family: 'Pretendard Variable', sans-serif;
  text-decoration: none !important;
}

/* action-button 스타일 (blog-detail-2 이후) */
.action-button {
  width: 384px;
  height: 96px;
  padding: 20px;
  border-radius: 16px;
  border: 2px solid #D4D4D4;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.3s;
}

.action-button:link,
.action-button:visited,
.action-button:hover,
.action-button:active {
  text-decoration: none !important;
}

.action-button:hover {
  border-color: var(--primary-blue);
  background: #F8FAFF;
}

.button-icon {
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.button-text {
  color: var(--gray-600);
  font-size: 24px;
  font-weight: 500;
  font-family: 'Pretendard Variable', sans-serif;
  text-decoration: none !important;
}

/* 추천 블로그 섹션 */
.related-section {
  width: 100%;
  background: #F5F5F5;
  display: flex;
  justify-content: center;
}

.related-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 80px;
  padding: 96px 128px;
}

.related-title {
  width: 100%;
  max-width: 1280px;
  text-align: left;
  color: black;
  font-size: 36px;
  font-weight: 700;
  font-family: 'Pretendard', sans-serif;
}

.related-grid {
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.related-card {
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  transition: transform 0.3s;
}

.related-card:hover {
  transform: translateY(-8px);
}

.related-card-image-wrapper {
  position: relative;
  width: 100%;
}

.related-card-image {
  width: 100%;
  height: 204px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.new-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  padding: 3px 8px;
  background: #2563EB;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: -0.5px;
  font-family: 'Pretendard Variable', sans-serif;
}

.related-card-content {
  padding: 28px 20px;
  background: white;
  border-radius: 0 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.related-card-date {
  color: var(--gray-400);
  font-size: 16px;
  font-weight: 400;
  line-height: 12px;
  font-family: 'Pretendard Variable', sans-serif;
}

.related-card-title {
  color: #18181B;
  font-size: 20px;
  font-weight: 600;
  line-height: 30px;
  font-family: 'Pretendard', sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-more-blogs {
  min-width: 224px;
  min-height: 64px;
  padding: 20px 48px;
  background: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  border-radius: 50px;
  color: white;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Pretendard', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-more-blogs:hover {
  background: var(--dark-blue);
  border-color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 112, 255, 0.3);
}

/* 반응형 디자인 - 블로그 상세 페이지 전용 */
@media (max-width: 1400px) {
  .hero-section {
    padding: 0 80px;
  }

  .hero-content {
    padding: 0 80px;
  }

  .hero-date {
    right: 80px;
  }

  .content-container {
    padding: 96px 80px;
  }

  .related-container {
    padding: 96px 80px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-section {
    padding: 0 40px;
  }

  .hero-content {
    padding: 0 40px;
  }

  .hero-date {
    right: 40px;
  }

  .content-container {
    padding: 60px 40px;
  }

  .related-container {
    padding: 60px 40px;
  }

  .hero-title {
    font-size: 48px;
    line-height: 72px;
  }

  .content-title {
    font-size: 32px;
  }

  .content-text {
    font-size: 18px;
    line-height: 27px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 0 20px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .hero-date {
    right: 20px;
    font-size: 18px;
  }

  .content-container {
    padding: 40px 20px;
  }

  .related-container {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 48px;
  }

  .content-title {
    font-size: 28px;
  }

  .content-text {
    font-size: 16px;
    line-height: 24px;
  }

  .action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .action-btn {
    width: 100%;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}



