* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    background: #ffffff;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* 본문 영역이 남는 공간을 모두 차지하게 함 */
  main {
    flex: 1;
  }
  
  /* ==================== 헤더 스타일 ==================== */
  .header {
    background: #030712;
    height: 64px;
    width: 1280px;
    margin: 0 auto; /* 상단 여백 제거 */
    border-radius: 40px;
    display: flex;
    align-items: center;
    padding: 22px 12px 22px 32px;
    /* 스크롤 시 상단 고정을 위한 필수 속성 */
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    transition: all 0.3s ease;
  }
  
  .header-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
  }
  
  /* 좌측 섹션 */
  .header-left {
    display: flex;
    align-items: center;
    gap: 48px;
  }
  
  .diport-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 20px;
  }
  
  .header-logo {
    height: 100%;
    width: auto;
    display: block;
  }
  
  .header-menu {
    display: flex;
    gap: 24px;
  }
  
  .menu-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.1s ease;
  }
  
  .menu-item:hover {
    opacity: 0.7;
  }
  
  /* 검색창 섹션 */
  .search-box {
    background: #374151;
    border-radius: 20px;
    padding: 0 18px;
    display: flex;             /* none을 flex로 변경 */
    opacity: 0;                /* 처음엔 투명하게 */
    visibility: hidden;        /* 클릭도 안 되게 숨김 */
    align-items: center;
    gap: 12px;
    width: 408px;
    height: 40px;
    border: 2px solid transparent;
    transition: all 0.1s ease; /* 자연스럽게 나타나도록 애니메이션 추가 */
    position: relative;
  }
  
  .search-box:hover,
  .search-box:focus-within {
    border-color: #9ca3af;
  }
  
  .header .search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 14px;
  }
  
  .header .search-input::placeholder {
    color: #9ca3af;
  }
  
  .header .search-icon {
    width: 24px;
    height: 24px;
  }
  
  /* 카테고리 컨테이너 및 애니메이션 */
  .search-category-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 12px;
    cursor: pointer;
    user-select: none;
  }
  
  .selected-category {
    color: #ffffff;
    font-size: 14px;
    margin-right: 8px;
  }
  
  .chevron-icon {
    width: 14px;
    transition: transform 0.2s ease;
  }
  
  .search-category-container.is-open .chevron-icon {
    transform: rotate(180deg);
  }
  
  /* 하단 드롭다운 박스 */
  .category-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 20px); 
    right: 0; 
    width: 124px;
    height: 110px;
    background: #030712;
    border-radius: 12px;
    padding: 10px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1000;
  }
  
  .search-category-container.is-open .category-dropdown {
    display: flex;
  }
  
  .dropdown-item {
    color: #ffffff;
    font-size: 14px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s;
    background: transparent;
  }
  
  .dropdown-item:hover {
    background: #374151;
  }
  
  .dropdown-item.active {
    background: transparent;
  }
  
  .dropdown-item.active:hover {
    background: #374151;
  }
  
  /* 우측 섹션 */
  .header-right {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  
  .plus-subscription-button {
    background-image: linear-gradient(to bottom, #00E108, #007d08);
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 0 26px;
    height: 40px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s;
  }
  
  .plus-subscription-button:hover {
    background-image: linear-gradient(to bottom,#00c808, #006408);
  }
  
  .sign-up-button {
    background: #ffffff;
    color: #030712;
    border: none;
    border-radius: 20px;
    padding: 0 26px;
    height: 40px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s;
  }
  
  .sign-up-button:hover {
    background: #F0FDF4;
  }
  
  /* ==================== 헤더 스크롤 검색창 제어 ==================== */
  .header.show-search .search-box {
    opacity: 1;           /* 투명도 해제 */
    visibility: visible;  /* 모습 보임 */
  }
  
  /* ==================== 메인 콘텐츠 스타일 ==================== */
  .index {
    background: #ffffff;
    min-height: 3000px;
    position: relative;
    padding-bottom: 100px;
  }
  
  .hero {
    width: 1200px;
    height: 441px;
    margin: 0 auto;
    margin-top: 138px;
    position: relative;
  }
  
  .banner {
    background: #f9fafb;
    border-radius: 24px;
    width: 588px;
    height: 441px;
    position: absolute;
    left: 612px;
    top: 0px;
    overflow: hidden;
  }
  
  .banner-slides {
    width: 100%;
    height: 100%;
    position: relative;
  }
  
  .banner-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
  }
  
  .banner-slide.active {
    opacity: 1;
  }
  
  .banner-con-arrow {
    display: flex;
    gap: 16px;
    position: absolute;
    right: 32px;
    bottom: 32px;
    z-index: 10;
  }
  
  .banner-arrow {
    border-radius: 16px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }
  
  .banner-arrow:hover {
    opacity: 0.7;
  }
  
  .hero-left-con {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 486px;
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .hero-con-title-left {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 462px;
  }
  
  .design-creator-platform {
    color: #030712;
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 64px;
    line-height: 64px;
    font-weight: 700;
    height: 205px;
  }
  
  .subtitle {
    color: #030712;
    font-size: 16px;
    font-weight: 400;
  }
  
  .hero-seach-con {
    display: flex;
    flex-direction: column;
    gap: 19px;
  }
  
  .hero-seach-button {
    display: flex;
    gap: 10px;
  }
  
  .category-button {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #D1D5DB;
    padding: 0 26px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #030712;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .category-button.active {
    background: #030712;
    color: #ffffff;
    border-color: #030712;
  }
  
  .category-button:hover {
    background: #F3F4F6;
  }
  
  .category-button.active:hover {
    background: #1f2937;
  }
  
  .seach-box {
    background: #f3f4f6;
    border-radius: 27px;
    height: 54px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 21px;
  }
  
  .seach-box .search-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
  }
  
  .seach-box .search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
  }
  
  .project {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 1200px;
    margin: 60px auto 0;
  }
  
  .section-title {
    background: #F0FDF4;
    border: 1px solid #A8DEBB;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0px 24px 0px 24px;
  }
  
  .section-title-left {
    display: flex;
    gap: 12px;
    align-items: flex-end;
  }
  
  .title-text {
    color: #00C950;
    font-size: 24px;
    line-height: 24px;
    font-weight: 700;
  }
  
  .subtitle-text {
    color: #030712;
    font-size: 14px;
    line-height: 12px;
    font-weight: 500;
  }
  
  .view-all-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s;
  }
  
  .view-all-btn:hover {
    opacity: 0.7;
  }
  
  .view-all-text {
    color: #030712;
    font-size: 14px;
    font-weight: 700;
  }
  
  .arrow-icon {
    height: 32px;
  }
  
  .container-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  
  .item-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .thumbnail {
    background: #f9fafb;
    border-radius: 12px;
    width: 282px;
    height: 212px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
  }
  
  .goods-thumbnail {
    height: 282px;
  }
  
  .thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0) 50%, rgba(3, 7, 18, 0.8) 100%);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .thumbnail:hover .thumbnail-overlay {
    opacity: 1;
  }
  
  .design-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
  }
  
  .goods-overlay {
    justify-content: flex-end;
    align-items: flex-end;
  }
  
  .heart-icon {
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .item-details {
    height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .user-info {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  
  .user-icon {
    width: 20px;
    height: 20px;
  }
  
  .creator-name {
    color: #8e8e93;
    font-size: 12px;
    font-weight: 500;
  }
  
  .stats {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  
  .stat-item {
    display: flex;
    gap: 2px;
    align-items: center;
  }
  
  .stat-icon {
    width: 24px;
    height: 24px;
  }
  
  .stat-text {
    color: #8e8e93;
    font-size: 12px;
    font-weight: 500;
  }
  
  .price {
    color: #000000;
    font-size: 16px;
    font-weight: 600;
  }
  
  .goods-title {
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
  }
  
  .goods-price {
    text-align: center;
  }
  
  .goods-detail-btn {
    background: #ffffff;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #030712;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
  }
  
  .goods-detail-btn:hover {
    background: #F3F4F6;
  }
  
  .more-btn {
    background: #030712;
    border-radius: 20px;
    padding: 0 26px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin: 20px auto;
    transition: all 0.3s;
    width: fit-content;
  }
  
  .more-btn:hover {
    background: #1f2937;
  }
  
  .asset {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 1200px;
    margin: 60px auto 0;
  }
  
  .goods {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 1200px;
    margin: 60px auto 0;
  }
  
  .goods-container {
    position: relative;
    width: 100%;
  }
  
  .goods-slider-wrapper {
    width: 100%;
    overflow: hidden;
  }
  
  .goods-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 24px;
  }
  
  .goods-arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s;
    position: absolute;
    top: 141px;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  }
  
  .goods-arrow-left {
    left: -24px;
  }
  
  .goods-arrow-right {
    right: -24px;
  }
  
  .hidden {
    display: none;
  }
  

  /* 썸네일 영역 */
.design-main-header {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
  margin-bottom: 14px;
  width: 100%;
}

.design-detail-title {
  color: #030712;
  font-size: 24px;
  font-weight: 700;
  width: 100%;
}

.design-detail-header {
  width: 100%;
  height: 36px;
  position: relative;
}

.creator-info {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
}

.creator-avatar {
  width: 36px;
  height: 36px;
}

.creator-text {
  color: #030712;
  font-size: 16px;
  font-weight: 400;
}

.action-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
  position: absolute;
  right: 0;
  top: 0;
}

.action-icon {
  background-color: #ffffff;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: opacity 0.3s;

  input[type="checkbox"]:checked+label.icon {
    color: gold;
  }
}

.action-icon:hover {
  opacity: 0.7;
}

.main-thumbnail {
  background: #f9fafb;
  width: 100%;
  height: 846px;
  border-radius: 12px;
}

/* 프로젝트 설명 */
.project-description {
  color: #030712;
  text-align: center;
  width: 740px;
  margin: 72px 0 72px 0;
}

.description-title {
  font-size: 20px;
  font-weight: 700;
}

.description-text {
  font-size: 20px;
  font-weight: 400;
}

/* 프로젝트 정보 섹션 */
.project-info-section {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.info-box {
  background: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.info-stats {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.stat-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.stat-group-a {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}

.stat-item-detail {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.stat-icon-small {
  width: 24px;
  height: 24px;
}

.stat-value {
  color: #6b7280;
  font-size: 14px;
  font-weight: 400;
}

.date-info {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
}

.project-license-report {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}

.license-icon {
  width: 112.36px;
  height: 24px;
}

.report-button {
  background: #ffffff;
  border-radius: 40px;
  border: 1px solid #6b7280;
  padding: 0 24px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.report-button:hover .report-text {
  color: #030712;
}

.report-text {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

/* 태그 섹션 */
.tags-section {
  padding: 12px 0 24px 0;
  width: 100%;
}

.tags-container {
  border-top: 1px solid #d1d5db;
  padding-top: 12px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
}

.tag-item {
  background: #ffffff;
  border-radius: 17.5px;
  border: 1px solid #e5e7eb;
  padding: 0 12px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #030712;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-item:hover {
  background: #f3f4f6;
}

.tag-item.active {
  background: #f3f4f6;
}

/* 크리에이터 섹션 */
.creator-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.creator-profile {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  margin: 72px 0 72px 0;
}

.creator-avatar-large {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.avatar-img {
  width: 60px;
  height: 60px;
}

.creator-name {
  color: #030712;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
}

.creator-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.follow-btn {
  width: 120px;
  height: 40px;
}

.follow-text {
  background: #00e108;
  border-radius: 20px;
  padding: 0 12px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #030712;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.follow-text:hover {
  opacity: 0.8;
}

.message-btn {
  width: 120px;
  height: 40px;
}

.message-text {
  background: #030712;
  border-radius: 20px;
  padding: 0 12px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
}

.message-text:hover {
  opacity: 0.8;
}

/* 크리에이터 프로젝트 */
.creator-projects {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.projects-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 14px;
}

.projects-title {
  color: #000000;
  font-size: 16px;
  font-weight: 400;
}

.view-more {
  color: #6b7280;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.2s;
}

.view-more:hover {
  opacity: 0.7;
}

.projects-slider-wrapper {
  width: 100%;
  height: 198px;
  overflow: hidden;
  position: relative;
}

.projects-slider {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
  width: 100%;
  height: 198px;
  transition: transform 0.4s ease;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 11.23px;
  height: 198px;
  min-width: 264px;
}

.project-card-thumbnail {
  width: 264px;
  height: 198px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.project-card-thumbnail:hover .thumbnail-overlay {
  opacity: 1;
}

.project-card-thumbnail-empty {
  background: #f9fafb;
  border-radius: 12px;
  width: 264px;
  height: 198px;
  position: relative;
}

.slider-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: calc(100% + 64px);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 83px;
}

.slider-arrow {
  border-radius: 16px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.slider-arrow:hover {
  opacity: 0.7;
}

/* 댓글 섹션 */
.comment-section {
  background: #f9fafb;
  border-radius: 12px;
  padding: 24px;
  margin-top: 72px;
  width: 100%;
  min-height: 50px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-input-box {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  width: 100%;
  min-height: 100px;
  height: auto;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  resize: none;
  transition: border-color 0.2s;
  color: #030712;
  overflow-y: hidden;
  box-sizing: border-box;
}

.comment-input-box:focus {
  outline: none;
  border-color: #030712;
}

.comment-input-box::placeholder {
  color: #9ca3af;
}

.comment-submit-btn {
  background: #030712;
  border-radius: 12px;
  padding: 0 24px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-end;
}

.comment-submit-btn:hover {
  opacity: 0.8;
}

.comment-submit-text {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

/* 댓글 목록 */
.comments-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.comment-divider {
  border-top: 1px solid #e5e7eb;
  width: 100%;
  margin: 0;
}

.comment-item {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 24px 0;
  align-items: flex-start;
  position: relative;
}

.comment-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.comment-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.comment-header {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.comment-user-name {
  color: #030712;
  font-size: 14px;
  font-weight: 700;
}

.comment-date {
  color: #6b7280;
  font-size: 12px;
  font-weight: 400;
}

.comment-text {
  color: #030712;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  word-break: break-word;
}

/* ==================== 프로젝트 디테일 슬라이더 (신규 추가) ==================== */
.projects-slider-container {
  width: 100%;
  position: relative;
}

.projects-arrow-btn {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0px 5px rgba(0, 0, 0, 0.5);
}

.projects-arrow-left {
  left: -20px;
}

.projects-arrow-right {
  right: -20px;
}

/* 프로젝트 카드 썸네일 오버레이 효과 */
.project-card-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

/* 댓글 액션 버튼 (... 메뉴) */
.comment-actions {
  position: relative;
}

.comment-more-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  font-size: 20px;
  font-weight: bold;
  line-height: 1;
  transition: color 0.2s;
  user-select: none;
}

.comment-more-btn:hover {
  color: #030712;
}

.comment-menu {
  position: absolute;
  padding: 8px 8px 8px 8px;
  top: 28px;
  right: 0;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  min-width: 100px;
  z-index: 100;
  display: none;
  overflow: hidden;
}

.comment-menu.active {
  display: block;
}

.comment-menu-item {
  padding: 12px 0px 12px 0px;
  color: #030712;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  text-align: center;
}

.comment-menu-item:hover {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 12px 0px 12px 0px;
}

.comment-menu-item.delete {
  color: #030712;
}

.comment-menu-item.delete:hover {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 12px 0px 12px 0px;
}

/* 답글 버튼 */
/* 댓글/답글 푸터 (날짜와 답글 버튼) */
.comment-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.comment-reply-btn {
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
  display: inline-block;
}

.comment-reply-btn:hover {
  color: #030712;
}

/* 답글 목록 */
.replies-list {
  margin-left: 56px;
  margin-top: 0px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.reply-item {
  display: flex;
  flex-direction: row;
  gap: 16px;
  padding: 0px 0 24px 0;
  align-items: flex-start;
  position: relative;
}

.reply-divider {
  border-top: 1px solid #f3f4f6;
  width: 100%;
  margin: 0;
}

/* 답글 입력 폼 */
.reply-form {
  margin-left: 56px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}

.reply-form .comment-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* 답글 입력 wrapper */
.reply-input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 답글 버튼을 오른쪽 정렬 */
.reply-form .reply-actions {
  align-self: flex-end;
}

.reply-input {
  width: 100%;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  resize: none;
  min-height: 80px;
  height: auto;
  color: #030712;
  box-sizing: border-box;
  overflow-y: hidden;
}

.reply-input:focus {
  outline: none;
  border-color: #030712;
}

.reply-input::placeholder {
  color: #9ca3af;
}

.reply-submit-btn {
  background: #030712;
  border-radius: 12px;
  padding: 0 20px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.reply-submit-btn:hover {
  opacity: 0.8;
}

.reply-cancel-btn {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 0 20px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.reply-cancel-btn:hover {
  background: #e5e7eb;
}

.reply-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* 댓글/답글 수정 모드일 때 ... 버튼 완전히 숨기기 */
.comment-item.editing>.comment-actions,
.reply-item.editing>.comment-actions {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

/* 댓글/답글 수정 모드일 때 날짜 숨기기 */
.comment-item.editing .comment-footer,
.reply-item.editing .comment-footer {
  display: none !important;
}

/* 댓글 수정 입력창 */
.comment-edit-input {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  resize: none;
  margin-top: 8px;
  color: #030712;
  line-height: 1.6;
  box-sizing: border-box;
  overflow-y: hidden;
}

.comment-edit-input:focus {
  outline: none;
  border-color: #030712;
}

/* 저장/취소 버튼 스타일 */
.comment-save-btn {
  color: #00e108 !important;
  font-weight: 600;
}

.comment-save-btn:hover {
  color: #00c007 !important;
}

.comment-cancel-btn {
  color: #ef4444 !important;
}

.comment-cancel-btn:hover {
  color: #dc2626 !important;
}

/* 삭제된 댓글/답글 스타일 */
.comment-item.deleted,
.reply-item.deleted {
  opacity: 0.6;
}

.comment-item.deleted .comment-text,
.reply-item.deleted .comment-text {
  color: #9ca3af !important;
  font-style: italic !important;
}

  /* ==================== 푸터 스타일 ==================== */
  .footer {
    background-color: #030712;
    color: #ffffff;
    padding: 40px 0;
    width: 100%;
  }
  
  .footer-container {
    max-width: 1208px;
    margin: 0 auto;
    padding: 0 32px;
  }
  
  .footer-logo img {
    height: 20px;
    display: block;
  }
  
  /* 상단 영역 */
  .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }
  
  .footer-menu {
    display: flex;
    gap: 20px;
  }
  
  .footer-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.1s ease;
  }
  
  .footer-menu a:hover {
    opacity: 0.7;
  }
  
  /* 구분선 */
  .footer-divider {
    border: 0;
    height: 1px;
    background-color: #6B7280;
    margin-bottom: 24px;
  }
  
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  
  /* 하단 기업 정보 */
  .footer-info {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }
  
  .info-row span, .info-row a {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
  }
  
  .info-row span:not(:last-child)::after {
    content: "|";
    margin-left: 12px;
    font-size: 10px;
    opacity: 0.5;
  }
  
  .copyright {
    font-size: 12px;
    color: #9ca3af;
  }
  
  /* 우측 하단 SNS 섹션 */
  .footer-sns {
    display: flex;
    gap: 20px;
    padding-bottom: 4px;
  }
  
  .social-icon img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    cursor: pointer;
    transition: opacity 0.1s ease;
  }
  
  .social-icon img:hover {
    opacity: 0.7;
  }
  
  /* 반응형 대응 (모바일) */
  @media (max-width: 768px) {
    .footer-top {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .info-row span::after {
      display: none;
    }
    
    .info-row {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }
  }