/* items.css */

/* 공통 아이템 섹션 스타일 */
.items-section h2 {
  margin-top: 10px;
  margin-bottom: 10px;
}

.intro-title {
  margin-bottom: 60px; /* 20px에서 60px로 증가 */
}

.items-section {
  margin-bottom: 150px;
}

/* 카테고리 스타일 */
.item-category {
  margin-bottom: 60px;
}

.item-category .category-title {
  /* h2 대신 별도의 클래스명 사용 */
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  background: #f0f7fb;
}

/* content1 스타일 */
#content1 .item-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 15px;
}

#content1 .item-box {
  background: #f0f7fb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

#content1 .item-contents {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

#content1 .item-contents img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* 임의자조금 특화 스타일 - content1에 대해 구체적으로 지정 */
#content1 .item-category .info-row .label {
  background: #d3e8f4;
  color: #143950;
  opacity: 0.8;
}

#content1 .item-category.voluntary .category-title {
  background: #faf5e6;
}

#content1 .item-category.voluntary .item-box {
  background: #faf5e6;
}

#content1 .item-category.voluntary .info-row .label {
  background: #e4d9b9;
  color: #5b4c1e;
  opacity: 0.8;
}

/* content2 스타일 */
#content2 .item-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 15px;
}

#content2 .item-box {
  background: #f6f6f6;
  border-radius: 12px;
  padding: 20px 40px;
  margin-bottom: 20px;
}

#content2 .item-contents {
  display: flex;
  flex-direction: row-reverse;
  gap: 30px;
  align-items: flex-start;
  justify-content: flex-end;
}

#content2 .item-contents img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

/* 공통 아이템 정보 스타일 */
.item-info {
  flex: 1;
}

.item-info h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
  line-height: 1.1;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-row .label {
  background: #dddddd;
  color: #444444;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
  min-width: 100px;
  display: inline-block;
}

.info-row span:not(.label) {
  color: #666;
  font-size: 14px;
  line-height: 1.8;
  display: inline-block;
  word-break: keep-all;
}

@media screen and (max-width: 640px) {
  #content2 .item-box {
    padding: 20px;
  }

  .info-row {
    flex-direction: column;
    gap: 5px;
  }
}

/* 임의자조금 특화 스타일 */
.item-category.voluntary h2 {
  background: #fff7f0;
}

.item-category.voluntary .item-box {
  background: #fff7f0;
}

.item-category.voluntary .info-row .label {
  background: #fff0e8;
}

/* 요건 박스 스타일 */
.requirements-box {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 80px;
}

.requirements-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requirements-box li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #666;
}

.requirements-box li:last-child {
  margin-bottom: 0;
}

.requirements-box li:before {
  font-family: Arial, sans-serif;
  content: "•";
  position: absolute;
  left: 0;
  color: #4169e1;
}

/* 다운로드 박스 스타일 */
.download-box {
  margin-bottom: 80px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: #f5f5f5;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s;
}

.download-link:hover {
  background-color: #e0e0e0;
}

.download-icon2 {
  width: 20px;
  height: 20px;
}

/* 제출 방법 박스 스타일 */
.submit-box {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 200px;
}

.submit-method {
  font-size: 16px;
  color: #333;
  margin-bottom: 15px;
  padding-left: 15px;
  position: relative;
}

.submit-method::before {
  font-family: Arial, sans-serif;
  content: "•";
  position: absolute;
  left: 0;
  color: #4169e1;
}

.submit-note {
  font-size: 14px;
  color: #38789f;
  margin-bottom: 10px;
  padding-left: 15px;
}

.submit-note:last-child {
  margin-bottom: 0;
}

/* 회사 정보 카드 스타일 */
.info-card {
  background-color: #f5ede3;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 5px;
  height: fit-content;
}

.info-card h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.company-info {
  position: relative;
}

.company-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 80px;
  height: auto;
}

/* 반응형 디자인 */
@media screen and (max-width: 768px) {
  #content1 .item-list {
    grid-template-columns: 1fr;
  }

  #content1 .item-contents {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #content2 .item-contents {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .item-info {
    width: 100%;
  }

  .info-row {
    text-align: left;
  }

  .info-map-container {
    flex-direction: column;
  }

  .map-container {
    min-height: 400px;
  }
}

/* map.css */

.map-section {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  flex-direction: row-reverse;
  margin: 0 20px;
}

.map-container {
  flex: 0.5;
  max-width: 400px;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  min-height: 500px;
  text-align: center;
  overflow: visible;
  width: 100%;
  height: 100%;
  order: 1;
}

.map-title {
  color: #999;
  font-size: 14px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 20px;
  border-radius: 20px;
}

.map-container svg {
  width: 180%;
  height: auto;
  margin: 40px auto 0;
  display: block;
  background-color: transparent;
}

.map-area {
  width: 100%;
  height: 100%;
  min-height: 500px;
  position: relative;
}

#map-placeholder {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* SVG 지도 스타일 */
.land {
  fill: #e6e6e6;
  stroke: #ffffff;
  stroke-width: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.land:hover {
  fill: #cccccc;
}

.land.active {
  fill: #4a90e2;
}

/* 특정 지역 스타일 */
#KR-48, /* 경남 */
#KR-46 /* 전남 */ {
  fill: #ffe8d6;
}

#KR-48:hover,
#KR-46:hover {
  fill: #f1e4d5;
}

#KR-48.active,
#KR-46.active {
  fill: #e6c9b3;
}

/* 지도 마커와 연결선 */
.location-marker {
  position: absolute;
  pointer-events: none;
  animation: fadeIn 0.3s ease-out;
  transition: all 0.3s ease;
}

.location-marker img {
  width: 24px;
  height: 24px;
}

.connection-svg {
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

.connection-lines {
  pointer-events: none;
}

.connection-lines path {
  transition: all 0.3s ease;
}

.connector-line {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  border-top: 2px dashed #666;
  transform-origin: 0 0;
}

.highlighted-region {
  position: absolute;
  bottom: 30%;
  right: 25%;
  width: 15%;
  height: 15%;
  background: transparent;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.highlighted-region.active {
  background: #f1e4d5;
}

/* 정보 표시 영역 */
.info-map-container {
  position: relative;
  display: flex;
  gap: 20px;
  background-color: #fafafa;
  padding: 20px;
  border-radius: 8px;
  min-height: 400px;
}

/* 왼쪽 정보 카드 스타일 */
.info-cards-container {
  flex: 1; /* 남은 공간 모두 차지 */
}

.info-cards-area .area-title {display:inline-block !important;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;font-size:0;line-height:0;border:0 !important;overflow:hidden !important}

.info-display {
  flex: 0.4;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 12px;
  min-height: 400px;
}

.info-box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
}

/* 애니메이션 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .info-map-container {
    flex-direction: column;
  }

  .map-container {
    min-height: 400px;
  }

  .connection-lines {
    display: none;
  }
}
