/* Scoped WordPress Styles */
.k-energy-intro-wrapper {
  font-family:
    "Pretendard",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: #333;
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.k-energy-intro-wrapper *,
.k-energy-intro-wrapper *::before,
.k-energy-intro-wrapper *::after {
  box-sizing: border-box;
}

/* Tabs Navigation */
.ke-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0;
  overflow-x: auto;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.ke-tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.ke-tab-btn {
  background: none;
  border: none;
  padding: 15px 15px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.ke-tab-label-short {
  display: none;
}

.ke-tab-btn:hover {
  color: #0f172a;
}

.ke-tab-btn.active {
  color: #0d9488;
}

.ke-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #0d9488;
  border-radius: 3px 3px 0 0;
}

/* Tab Content */
.ke-tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.ke-tab-content.active {
  display: block;
}

/* Intro tab image clarity boost */
#ke-tab-intro img {
  opacity: 1 !important;
  filter: none !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

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

/* Typography & Common */
.ke-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e293b;
  margin: 40px 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}

.ke-section-title:first-child {
  margin-top: 10px;
}

.ke-section-title svg {
  color: #0d9488;
  width: 24px;
  height: 24px;
}

.ke-paragraph {
  font-size: 1.05rem;
  color: #475569;
  margin-bottom: 20px;
  word-break: keep-all;
}
.ke-highlight {
  font-weight: 700;
  color: #0ea5e9;
}

/* Core Values Cards (Tab 1) */
.ke-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.ke-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s;
}

.ke-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-color: #e2e8f0;
}

.ke-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f0fdfa;
  color: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}
.ke-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}
.ke-card-desc {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Vertical Timeline (Tab 1 & 4) */
.ke-timeline {
  position: relative;
  padding-left: 30px;
  margin: 30px 0;
}
.ke-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}
.ke-timeline-item {
  position: relative;
  margin-bottom: 30px;
}
.ke-timeline-item:last-child {
  margin-bottom: 0;
}
.ke-timeline-dot {
  position: absolute;
  left: -30px;
  top: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.ke-timeline-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #0d9488;
  border-radius: 50%;
}
.ke-timeline-content {
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid #0d9488;
}
.ke-timeline-content strong {
  display: block;
  color: #0f172a;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.ke-timeline-content p {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
}

/* Quotes & Declarations (Tab 2) */
.ke-quote-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
}
.ke-declaration-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}
.ke-declaration-item {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.ke-declaration-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #0ea5e9;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.ke-declaration-content h4 {
  margin: 0 0 10px 0;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 700;
}
.ke-declaration-content p {
  margin: 0;
  color: #475569;
}

/* ECOSYSTEM BLUEPRINT (Org Chart) */
.eco-wrapper {
  background: #f8fafc;
  border-radius: 12px;
  padding: 40px 20px;
  border: 1px solid #e2e8f0;
  margin-bottom: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: auto;
}
.eco-title {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}
.eco-title span {
  color: #475569;
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
}

.eco-block {
  width: 100%;
  max-width: 500px;
  padding: 15px 20px;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
  margin: 0 auto;
}
.eco-block.dark {
  background: #0f172a;
}
.eco-block.blue {
  background: #2563eb;
}
.eco-block.green {
  background: #2f855a;
}
.eco-block.light {
  background: #dcfce7;
  color: #0f172a;
  border: 1px solid #bbf7d0;
  font-weight: 600;
}

.eco-line {
  width: 2px;
  height: 25px;
  background: #94a3b8;
  margin: 0 auto;
}

.eco-regions {
  width: 100%;
  max-width: 580px;
  border: 2px solid #3b82f6;
  border-radius: 6px;
  padding: 15px 20px;
  background: white;
  text-align: center;
  position: relative;
  z-index: 2;
  margin: 0 auto;
}
.eco-regions-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 25px;
}
.eco-regions-grid {
  display: flex;
  justify-content: space-between;
  position: relative;
}

/* Horizontal connection lines inside regions box */
.eco-regions-grid::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: #94a3b8;
}
.eco-regions-grid::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: #94a3b8;
}

.eco-region-box {
  width: 40px;
  height: 35px;
  background: #3b82f6;
  border-radius: 4px;
  position: relative;
}
.eco-region-box::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  width: 2px;
  height: 15px;
  background: #94a3b8;
  transform: translateX(-50%);
}
.eco-region-box::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 2px;
  height: 15px;
  background: #94a3b8;
  transform: translateX(-50%);
}

.eco-note {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 12px;
  font-size: 0.85rem;
  color: #334155;
  text-align: center;
  max-width: 220px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* PDF Modal Styles */
.ke-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.ke-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s;
}
.ke-modal {
  background: white;
  width: 90%;
  max-width: 1000px;
  height: 85vh;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}
.ke-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}
.ke-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #0f172a;
}
.ke-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
}
.ke-modal-close:hover {
  color: #ef4444;
}
.ke-modal-body {
  flex: 1;
  padding: 0;
  position: relative;
}
.ke-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.ke-btn-pdf {
  background: #0ea5e9;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s;
  font-size: 0.9rem;
}
.ke-btn-pdf:hover {
  background: #0284c7;
}

/* Accordion (Tab 3 & 4) */
.ke-accordion {
  margin-bottom: 20px;
}
.ke-accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}
.ke-accordion-header {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ke-accordion-header:hover {
  background: #f8fafc;
}
.ke-accordion-icon {
  transition: transform 0.3s;
  color: #64748b;
}
.ke-accordion-item.active .ke-accordion-icon {
  transform: rotate(180deg);
}
.ke-accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease;
  background: #fff;
  color: #475569;
}
.ke-accordion-item.active .ke-accordion-content {
  padding: 0 20px 20px 20px;
}

/* Members Tags (Tab 3) */
.ke-tags-group {
  margin-bottom: 15px;
}
.ke-tag-title {
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  display: block;
  font-size: 0.95rem;
}
.ke-tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ke-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid #e2e8f0;
}

/* Q&A Cards (Tab 4) */
.ke-qa-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
  overflow: hidden;
}
.ke-qa-q {
  padding: 20px;
  background: #f8fafc;
  font-weight: 700;
  font-size: 1.15rem;
  color: #0f172a;
  display: flex;
  gap: 10px;
  cursor: pointer;
  align-items: flex-start;
}
.ke-qa-q span {
  color: #0ea5e9;
  font-size: 1.3rem;
  line-height: 1;
}
.ke-qa-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  gap: 10px;
  color: #475569;
  font-size: 1rem;
}
.ke-qa-item.active .ke-qa-a {
  padding: 0 20px 20px 20px;
}
.ke-qa-a span {
  color: #10b981;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
}
.ke-qa-a div {
  flex: 1;
  line-height: 1.7;
}

.ke-speaker {
  display: inline-block;
  background: #0f172a;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  margin-right: 5px;
}

/* Contact Cards / Map (Tab 5) */
.ke-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.ke-contact-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px;
  transition: transform 0.2s;
}
.ke-contact-card:hover {
  border-color: #0d9488;
  transform: translateY(-3px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.ke-contact-card.primary {
  border-top: 4px solid #0d9488;
}
.ke-contact-card.secondary {
  border-top: 4px solid #0ea5e9;
}
.ke-contact-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px dashed #cbd5e1;
}
.ke-contact-infoRow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #475569;
}
.ke-contact-infoRow svg {
  flex-shrink: 0;
  color: #64748b;
  margin-top: 2px;
}

/* Notice Box */
.ke-notice {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 15px 20px;
  font-size: 0.9rem;
  color: #64748b;
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.ke-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
  .ke-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    overflow-x: visible;
  }
  .ke-tab-btn {
    padding: 12px 6px;
    font-size: 0.9rem;
    text-align: center;
  }
  .ke-tab-label-full {
    display: none;
  }
  .ke-tab-label-short {
    display: inline;
  }
  .ke-declaration-item {
    flex-direction: column;
    gap: 15px;
  }
  .ke-section-title {
    font-size: 1.4rem;
  }
}
