/* 여기에 작업 또는 수정할 당신의 css style을 설정하세요. (customizations) */
.qlink-container {
  display: grid;
  gap: 10px;
  padding: 10px;
  width: 100%;
  margin: 0 auto;
}

.qlink-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
}

.qlink-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 8px;
}

.qlink-item span {
  font-size: 14px;
}

/* 모바일 화면 (4개씩 3줄) */
@media screen and (max-width: 768px) {
  .qlink-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* PC 화면 (8개 한줄) */
@media screen and (min-width: 769px) {
  .qlink-container {
    grid-template-columns: repeat(8, 1fr);
  }
}

.qlink-container {
  display: grid;
  gap: 10px;
  padding: 10px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.qlink-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
}

.qlink-item img {
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
}

.qlink-item span {
  font-size: 14px;
}

/* AI 지도 컨테이너 스타일 */
#aiMapContainer {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

#aiMapContainer:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#aiMap {
  border: 2px solid #e9ecef;
  transition: border-color 0.3s ease;
  width: 100%;
  height: 600px;
  aspect-ratio: 4/3;
  border-radius: 10px;
  margin-bottom: 8px;
  position: relative;
}

#aiMapContainer:hover #aiMap {
  border-color: #27ae60;
}

/* 지도 오버레이 스타일 */
.map-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 10px;
  padding: 24px 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  width: 80%;
  max-width: 960px;
  z-index: 1000;
  display: none;
}

.overlay-header {
  color: #27ae60 !important;
  font-size: 1.15em !important;
  font-weight: bold !important;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.overlay-content {
  font-size: 12px;
  line-height: 1.4;
}

.overlay-chart {
  width: 100%;
  height: 200px !important;
  margin-top: 12px;
}

.ai-info {
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  border-left: 3px solid #27ae60;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 모바일 화면 (4개씩 3줄) */
@media screen and (max-width: 768px) {
  .qlink-container {
    grid-template-columns: repeat(4, 1fr);
  }

  #aiMap {
    height: 450px;
  }

  .map-overlay {
    width: 95%;
    max-width: 98vw;
    padding: 12px 4px;
  }
  .overlay-chart {
    height: 144px !important;
  }
}

/* PC 화면 (8개 한줄) */
@media screen and (min-width: 769px) {
  .qlink-container {
    grid-template-columns: repeat(8, 1fr);
  }
}

.overlay-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 2em;
  color: #bbb;
  cursor: pointer;
  z-index: 1100;
  font-weight: bold;
  background: none;
  border: none;
  line-height: 1;
  padding: 0 8px;
  transition: color 0.2s;
}

.overlay-close:hover {
  color: #27ae60;
}

.ai-map-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ai-map-title {
  font-size: 22px !important;
  font-weight: bold;
  color: #222;
  text-align: left;
}

.ai-map-more {
  font-size: 1em;
  color: #27ae60;
  text-decoration: none;
  font-weight: 500;
  margin-left: 8px;
  transition: color 0.2s;
}

.ai-map-more:hover {
  color: #145c2c;
}

/*** PAGE *******/
/* 기본 스타일 리셋 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nanum Gothic", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 10px !important;
}

/* 섹션 스타일 */
.section {
  margin-bottom: 60px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.section-header {
  background: linear-gradient(135deg, #0091ff, #0066cc);
  padding: 30px;
  text-align: center;
}

.section-title {
  font-family: "Jeju Gothic", sans-serif;
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-content {
  padding: 40px;
}

/* 이미지 컨테이너 */
.image-container {
  text-align: center;
}

.responsive-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 비디오 컨테이너 */
.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.video-container::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 비율 */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 설명 텍스트 */
.description {
  text-align: center;
  margin-bottom: 40px;
}

.description-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #555;
  margin: 0;
}

/* 분기별 카드 그리드 */
.quarter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.quarter-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quarter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.quarter-header {
  background: #f8f9fa;
  padding: 15px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #495057;
  border-bottom: 2px solid #e9ecef;
}

.quarter-content {
  padding: 20px;
}

.quarter-content ul {
  list-style: none;
  margin: 0;
}

.quarter-content li {
  font-weight: bold;
  font-family: "Nanum Gothic", sans-serif;
  padding: 8px 0;
  border-bottom: 1px solid #f1f3f4;
}

.quarter-content li:last-child {
  border-bottom: none;
}

/* 이미지 갤러리 */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* 발전소 정보 */
.power-plant-info {
  padding: 40px;
  border-bottom: 2px solid #ddd;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 30px;
}

.info-icon {
  width: 70px;
  height: 70px;
  background: #0091ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  flex-shrink: 0;
}

.info-content {
  flex: 1;
}

.power-capacity {
  font-size: 1rem;
  color: #666;
  margin-bottom: 5px;
}

.plant-name {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.plant-location {
  font-size: 1.1rem;
  color: #666;
}

/* 사양 카드 */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 40px;
}

.spec-card {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.spec-card:hover {
  transform: translateY(-5px);
}

.spec-icon {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #0091ff;
}

.spec-label {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #0091ff;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.spec-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}

/* 상세 내용 */
.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  align-items: center;
}

.detail-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.detail-title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.3;
}

.detail-description p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.6;
}

/* 갤러리 그리드 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 40px;
}

.gallery-grid .gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-grid .gallery-item img:hover {
  transform: scale(1.05);
}

/* 인증서 그리드 */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px;
}

.certificate-card {
  text-align: center;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-5px);
}

.certificate-image {
  padding: 20px;
}

.certificate-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid #e9ecef;
}

.certificate-title {
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  background: #f8f9fa;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .section {
    margin-bottom: 30px;
  }

  .section-header {
    padding: 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .section-content {
    padding: 20px;
  }

  .quarter-grid {
    grid-template-columns: 1fr;
  }

  .image-gallery {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .info-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .info-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .plant-name {
    font-size: 2rem;
  }

  .specs-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .detail-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .video-container {
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }

  .plant-name {
    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .quarter-grid {
    gap: 15px;
  }

  .specs-grid {
    gap: 20px;
  }
}

/* 애니메이션 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 0.6s ease-out;
}

/* 호버 효과 개선 */
.quarter-card,
.spec-card,
.certificate-card {
  cursor: pointer;
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 포커스 스타일 */
.section:focus-within {
  outline: 2px solid #0091ff;
  outline-offset: 2px;
}
