/* Sub Page Header */
.header-sub {
  background: rgba(0, 0, 0, 0.63);
}

/* Sub Visual */
.sub-visual {
  position: relative;
  width: 100%;
  height: 560px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/sub-visual-bg.png') center/cover no-repeat;
  background-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-visual-inner {
  text-align: center;
  color: #fff;
}

.sub-visual-title {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 10px;
}

.sub-visual-desc {
  font-size: 33px;
  color: #fff;
}

/* Sub Navigation */
.sub-nav {
  /*border-bottom: 1px solid #ddd;*/
}

.sub-nav-list {
  display: flex;
}

.sub-nav-list li {
  position: relative;
  flex: 1;
  text-align: center;
}

.sub-nav-list li a {
  display: block;
  padding: 20px 10px;
  font-size: 20px;
  color: #222;
  transition: color 0.3s;
}

.sub-nav-list li a:hover {
  color: #222;
}

.sub-nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #333;
  transition: width 0.3s;
}

.sub-nav-list li a:hover::after {
  width: 100%;
}

.sub-nav-list li.active a {
  color: #222;
  font-weight: bold;
}

.sub-nav-list li.active a::after {
  width: 100%;
}

/* Sub Content */
.sub-content {
  padding: 150px 0 100px;
}

/* Intro Section */
.intro-section {
  text-align: left;
  margin-bottom: 220px;
}

.intro-title {
  font-size: 140px;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 40px;
  color: #222;
}

/* Typing Effect */
.typing-line {
  display: inline;
  border-right: 3px solid transparent;
}

.typing-line.typing {
  border-right-color: #222;
  animation: blink-cursor 0.7s step-end infinite;
}

.typing-line.done {
  border-right-color: transparent;
}

@keyframes blink-cursor {
  0%, 100% {
    border-right-color: #222;
  }
  50% {
    border-right-color: transparent;
  }
}

/* Scroll Animation - Fade In Up */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-animate.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Animation Early - triggers earlier */
.scroll-animate-early {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.scroll-animate-early.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Animation Third - triggers at 1/3 viewport */
.scroll-animate-third {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-animate-third.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Animation Two-Third - triggers at 2/3 viewport */
.scroll-animate-twothird {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.scroll-animate-twothird.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Auto Animation - triggers on page load */
.auto-animate {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

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

/* Bar specific animation - width expand */
.intro-bar.scroll-animate {
  transform: translateY(0);
  width: 0;
}

.intro-bar.scroll-animate.animated {
  width: 40%;
  transition: opacity 0.8s ease-out, width 1s ease-out;
}

.intro-bar-wrap {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  margin-top: 110px;
  width: 100%;
}

.intro-bar {
  display: block;
  flex: none;
  width: 40%;
  height: 3px;
  background: #333;
  margin-top: 20px;
}

.intro-desc {
  flex: 1;
  font-size: 30px;
  font-weight: 600;
  color: #222;
  line-height: 1.6;
  text-align: right;
}

/* Company Section */
.company-section {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.company-text {
  flex: 1;
}

.company-greeting {
  font-size: 15px;
  margin-bottom: 10px !important;
  color: #233;
}

.company-text p {
  font-size: 15px;
  color: #222;
  line-height: 1.9;
  margin-bottom: 20px;
}

.company-logo {
  flex: 0 0 280px;
  text-align: right;
}

.company-logo img {
  max-width: 100%;
}

/* CEO Section */
.ceo-section {
  /*padding-top: 40px;*/
}

.ceo-company {
  font-size: 18px;
  color: #222;
  font-weight: 600;
  margin-bottom: 5px;
}

.ceo-info {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.ceo-info strong {
  font-size: 20px;
  font-weight: bold;
  color: #222;
  letter-spacing: 8px;
  margin-left: 10px;
}

/* Sub Page Responsive */
@media (max-width: 1024px) {
  .company-section {
    flex-direction: column;
  }

  .company-logo {
    flex: none;
    width: 100%;
    text-align: center;
    order: -1;
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .sub-visual {
    height: 200px;
  }

  .sub-visual-title {
    font-size: 32px;
  }

  .sub-nav-list li a {
    padding: 15px 10px;
    font-size: 15px;
  }

  .intro-title {
    font-size: 60px;
  }

  .intro-bar-wrap {
    flex-direction: column;
    gap: 20px;
  }

  .intro-bar {
    width: 100px;
    margin-top: 0;
  }

  .intro-desc {
    font-size: 16px;
  }

  .intro-desc br {
    display: none;
  }
}

@media (max-width: 480px) {
  .sub-nav-list {
    flex-wrap: wrap;
  }

  .sub-nav-list li {
    flex: 0 0 50%;
  }

  .sub-nav-list li a {
    padding: 12px 10px;
    font-size: 14px;
  }
}

/* ========================================
   History Page (연혁)
======================================== */

/* History Hero */
.history-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/history-hero-bg.png') center/cover no-repeat;
  height: 812px;
  background-color: #2a3a4a;
  margin-top: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.history-hero-text {
  font-size: 40px;
  font-weight: 600;
  color: #fff;
  line-height: 1.6;
}

/* History Section */
.history-section {
  position: relative;
}

.history-section::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 22px;
  bottom: 0;
  width: 2px;
  background: #ddd;
}

.history-slogan {
  position: absolute;
  left: 0;
  top: 0;
}

.history-slogan p {
  font-size: 100px;
  font-weight: 800;
  color: #f0f0f0;
  line-height: 1.3;
}


/* Timeline */
.history-timeline {
  width: 100%;
  max-height: 640px;
  overflow-y: auto;
  /* Hide scrollbar for Chrome, Safari and Opera */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.history-timeline::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding: 7px 0 25px 0;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 16px;
  width: 10px;
  height: 10px;
  background: #0088ff;
  border-radius: 50%;
  z-index: 1;
}

.timeline-content {
  width: 50%;
  padding-left: 30px;
  box-sizing: border-box;
  padding-bottom: 25px;
  position: relative;
}

.timeline-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 30px;
  right: 0;
  height: 1px;
  background: #ddd;
}

.timeline-date {
  margin-bottom: 10px;
  margin-top: -8px;
}

.timeline-year {
  display: inline-block;
  width: 70px;
  font-size: 27px;
  /*font-weight: bold;*/
  color: #222;
  margin-right: 15px;
}

.timeline-month {
  font-size: 27px;
  color: #d8d8d8;
}

.timeline-desc {
  font-size: 21px;
  color: #222;
  margin-left: 90px;
}

/* History Responsive */
@media (max-width: 1024px) {
  .history-section {
    flex-direction: column;
    gap: 40px;
  }

  .history-slogan {
    flex: none;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
  }

  .history-slogan p {
    font-size: 48px;
  }
}

@media (max-width: 768px) {
  .history-hero-text {
    font-size: 24px;
  }

  .history-slogan p {
    font-size: 36px;
  }

  .timeline-item {
    flex-wrap: wrap;
    gap: 5px;
  }

  .timeline-year {
    font-size: 22px;
    width: 70px;
  }

  .timeline-month {
    font-size: 14px;
    width: 40px;
  }

  .timeline-desc {
    width: 100%;
    padding-left: 110px;
    margin-top: 5px;
  }
}

@media (max-width: 480px) {
  .timeline-desc {
    padding-left: 0;
  }
}

/* ========================================
   Vision Page (비전/가치)
======================================== */

/* Load Animation - plays on page load */
@keyframes loadFadeUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.load-animate {
  opacity: 0;
  animation: loadFadeUp 1s ease-out forwards;
}

/* Vision Cards */
.vision-cards {
  display: flex;
  gap: 30px;
}

.vision-card {
  flex: 1;
  padding: 40px;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
  cursor: pointer;
  height: 427px;
}

.vision-card:hover {
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('/images/vision-card-bg.png') center/cover no-repeat;
}

.vision-card-content {
  position: relative;
  transition: transform 0.5s ease;
}

.vision-card:hover .vision-card-content {
  transform: translateY(-155px);
}

.vision-label {
  font-size: 13px;
  color: #0088ff;
  margin-bottom: 0;
  letter-spacing: 1px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.vision-card:hover .vision-label {
  opacity: 0;
  transform: translateY(-20px);
}

.vision-label::after {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: #0088ff;
  margin-top: 70px;
  margin-bottom: 70px;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.vision-card:hover .vision-label::after {
  opacity: 0;
  transform: translateY(-20px);
}

.vision-title {
  font-size: 44px;
  font-weight: bold;
  color: #222;
  line-height: 1.4;
  transition: color 0.5s ease;
}

.vision-card:hover .vision-title {
  color: #fff;
}

.vision-hover-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  margin-top: 20px;
}

.vision-card:hover .vision-hover-text {
  opacity: 1;
  transform: translateY(0);
}

.vision-divider {
  width: 30px;
  height: 1px;
  background: #fff;
  margin-bottom: 20px;
}

.vision-desc {
  font-size: 15px;
  color: #fff;
  line-height: 1.8;
}

/* Vision Hero */
.vision-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/vision-hero-bg.png') center/cover no-repeat;
  background-color: #333;
  height: 600px;
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vision-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.vision-hero-text {
  font-size: 32px;
  font-weight: 300;
  color: #fff;
  line-height: 1.6;
}

/* Vision Responsive */
@media (max-width: 1024px) {
  .vision-cards {
    flex-direction: column;
  }

  .vision-card {
    border-left: none;
    border-top: 3px solid #ddd;
    padding: 30px 0;
  }

  .vision-card:first-child {
    border-top: none;
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .vision-title {
    font-size: 26px;
  }

  .vision-hero {
    height: 400px;
    padding: 0 20px;
  }

  .vision-hero-text {
    font-size: 24px;
  }

  .vision-hero-text br {
    display: none;
  }
}

/* ========================================
   Organization Chart Page (조직도)
======================================== */

.org-chart {
  padding: 0;
  margin-bottom: 160px;
}

/* CEO Node */
.org-ceo {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

/* Organization Node */
.org-node {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2px solid #0088ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  text-align: center;
  position: relative;
}

.org-node::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 50%;
  background: #f5f5f5;
  z-index: 0;
}

.org-node-ceo {
  width: 190px;
  height: 190px;
}

.org-title {
  font-size: 20px;
  font-weight: bold;
  color: #0088ff;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
}

.org-subtitle {
  font-size: 17px;
  color: rgba(34, 34, 34, 0.7);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

/* Connector Lines */
.org-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-line-vertical {
  width: 2px;
  height: 40px;
  background: #ddd;
}

.org-line-horizontal {
  width: 74%;
  max-width: 902px;
  height: 2px;
  background: #ddd;
}

/* Departments */
.org-departments {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-top: 40px;
}

.org-department {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 200px;
  position: relative;
}

.org-department::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 40px;
  background: #ddd;
}

/* Department Tasks */
.org-tasks {
  margin-top: 30px;
  text-align: center;
}

.org-tasks li {
  font-size: 20px;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Organization Responsive */
@media (max-width: 1024px) {
  .org-departments {
    flex-wrap: wrap;
    gap: 40px 20px;
  }

  .org-department {
    flex: 0 0 calc(50% - 20px);
    max-width: none;
  }

  .org-line-horizontal {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .org-departments {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .org-department {
    flex: none;
    width: 100%;
    max-width: 250px;
  }

  .org-connector {
    display: none;
  }

  .org-node {
    width: 120px;
    height: 120px;
  }

  .org-node-ceo {
    width: 140px;
    height: 140px;
  }

  .org-title {
    font-size: 16px;
  }

  .org-ceo {
    margin-bottom: 30px;
  }
}

