/* News Detail Page Styles - News detail page styles */

.news-detail-page {
  background: rgba(234, 235, 235, 1);
}

.news-detail-section {
  width: 100%;
  padding: 0 0 100px;
  height: auto !important;
}

.news-detail-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.home-bg-img {
  top: 20px;
}

/* Header section */
.news-detail-header {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  align-items: center;
  padding-top: 290px;
}

.news-detail-date {
  font-size: 20px;
  color: #666;
  font-weight: 500;
}

.news-detail-title-wrapper {
  flex: 1;
}

.news-detail-badge {
  display: inline-block;
  padding: 8px 28px;
  font-size: 20px;
  font-weight: 500;
  color: rgba(51, 51, 51, 1);
  line-height: 1.4;
}

.news-detail-badge.news-badge-changelog,
.news-badge-changelog {
  background-color: rgba(215, 227, 222, 1) !important;
}

.news-detail-badge.news-badge-founders,
.news-badge-founders {
  background-color: rgba(227, 223, 215, 1) !important;
}

.news-detail-badge.news-badge-events,
.news-badge-events {
  background-color: rgba(244, 227, 220, 1) !important;
}

.news-detail-badge.news-badge-default,
.news-badge-default {
  background-color: rgba(231, 231, 231, 1) !important;
}

/* Japanese description */
.news-detail-description {
  font-size: 16px;
  line-height: 1.8;
  padding-bottom: 50px;
  z-index: 1;
  border-bottom: 1px solid rgba(128, 128, 128, 1);
}

/* News detail images */
.news-detail-image {
  width: 100%;
  margin: 30px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.news-detail-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* English content */
.news-detail-content {
  padding: 60px 20px 0;
  font-size: 16px;
  line-height: 1.8;
}

.news-detail-content p {
  font-size: 16px;
  color: rgba(51, 51, 51, 1);
  line-height: 1.8;
  margin: 0 0 24px 0;
}

.news-detail-content p:last-child {
  margin-bottom: 0;
}

/* Navigation buttons */
.news-detail-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  padding: 50px 40px 0;
  border-top: 1px solid rgba(128, 128, 128, 1);
  position: relative;
  z-index: 1;
}

.news-detail-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 1);
  color: rgba(51, 51, 51, 1);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.news-detail-nav-btn:hover {
  border-color: rgba(51, 51, 51, 0.5);
  background-color: rgba(248, 248, 248, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-detail-nav-btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.news-detail-nav-prev:hover svg {
  transform: translateX(-4px);
}

.news-detail-nav-next:hover svg {
  transform: translateX(4px);
}

.news-detail-nav-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .news-detail-content {
    padding: 60px 40px 0;
  }
}

@media screen and (max-width: 768px) {
  .news-detail-header {
    padding-top: 150px;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .news-detail-content {
    padding: 40px 20px 0;
  }

  .news-detail-navigation {
    padding: 30px 0 0;
    flex-direction: row;
    gap: 10px;
  }

  .news-detail-nav-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .news-detail-content {
    padding: 30px 15px 0;
  }
}