/* ==========================================
  Page Styles - Common styles for all detail pages
========================================== */

/* Page Hero */
.page-hero {
  height: 45vh;
  min-height: 350px;
  background: linear-gradient(rgba(15, 76, 129, 0.8), rgba(15, 76, 129, 0.8)),
    url('../images/hero.jpg') no-repeat center center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 80px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero.jpg') no-repeat center center / cover;
  filter: blur(5px);
  opacity: 0.2;
  z-index: -1;
  transform: scale(1.1);
}

.page-hero__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  text-align: center;
  position: relative;
}

.page-hero__content {
  color: #fff;
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-family: var(--font-en);
  font-size: 6.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.page-hero__subtitle {
  font-size: 2.2rem;
  font-weight: 500;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.page-hero__subtitle::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 2px;
  background-color: var(--color-accent);
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.5s;
}

.page-hero__cta {
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

.btn--white {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  display: inline-block;
}

.btn--white:hover {
  background-color: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Navigation Current Page */
.header__nav-item a.current {
  color: var(--color-accent);
  font-weight: 700;
  position: relative;
}

.header__nav-item a.current::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
}

/* Service Intro */
.service-intro__content,
.detail-content {
  max-width: 800px;
  margin: 0 auto 6rem;
  text-align: center;
  position: relative;
}

.service-intro__text {
  font-size: 1.8rem;
  line-height: 1.8;
  position: relative;
  padding-bottom: 2rem;
}

.service-intro__text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary) 50%, transparent);
}

.detail-content__main {
  margin-bottom: 4rem;
}

.detail-content__main p {
  margin-bottom: 2rem;
  line-height: 1.8;
  font-size: 1.7rem;
}

.detail-content__main p:last-child {
  margin-bottom: 0;
}

/* Service Details */
.service-details {
  max-width: 800px;
  margin: 0 auto;
}

.service-detail {
  background-color: #fff;
  border-radius: 12px;
  padding: 4.5rem;
  margin-bottom: 4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.service-detail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--color-primary);
  opacity: 0.7;
}

.service-detail:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-detail__title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2.5rem;
  text-align: left;
  line-height: 1.4;
  position: relative;
}

.service-detail__title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-accent);
}

.service-detail__content {
  line-height: 1.8;
  font-size: 1.6rem;
}

.service-detail__content p {
  margin-bottom: 1.5rem;
}

.service-detail__content p:last-child {
  margin-bottom: 0;
}

.service-detail__link {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 5rem;
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  padding: 1.2rem 2.8rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--outline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: var(--color-primary);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -1;
  transition: width 0.4s ease, height 0.4s ease;
}

.btn--outline:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(15, 76, 129, 0.2);
}

.btn--outline:hover::before {
  width: 300px;
  height: 300px;
}

.btn--outline i {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.btn--outline:hover i {
  transform: translateX(3px);
}

/* Background Variations */
.bg-light {
  background-color: #f9fafb;
  position: relative;
  overflow: hidden;
}

.bg-light::before,
.bg-light::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0.02;
  z-index: 0;
}

.bg-light::before {
  top: -150px;
  left: -150px;
}

.bg-light::after {
  bottom: -150px;
  right: -150px;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, var(--color-primary), #1a365d);
  color: #fff;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero.jpg') no-repeat center center / cover;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.cta__content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
  line-height: 1.4;
}

.cta__btn .btn--primary {
  background-color: #fff;
  color: var(--color-primary);
  font-size: 1.8rem;
  padding: 1.5rem 4.5rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta__btn .btn--primary:hover {
  background-color: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #fff;
}

/* Company Page Styles */
.company-info {
  margin-bottom: 6rem;
}

.info-table {
  width: 100%;
  margin-bottom: 3rem;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-table th {
  width: 30%;
  text-align: left;
  padding: 2rem;
  border-bottom: 1px solid #edf2f7;
  font-weight: 500;
  vertical-align: top;
  background-color: #f8fafc;
  color: var(--color-primary);
}

.info-table td {
  padding: 2rem;
  border-bottom: 1px solid #edf2f7;
  line-height: 1.7;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.history-list {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 60px;
}

.history-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-primary), #a0aec0);
}

.history-item {
  position: relative;
  margin-bottom: 5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
  animation-delay: calc(var(--item-index, 0) * 0.1s);
}

.history-item:nth-child(1) { --item-index: 1; }
.history-item:nth-child(2) { --item-index: 2; }
.history-item:nth-child(3) { --item-index: 3; }
.history-item:nth-child(4) { --item-index: 4; }
.history-item:nth-child(5) { --item-index: 5; }
.history-item:nth-child(6) { --item-index: 6; }
.history-item:nth-child(7) { --item-index: 7; }
.history-item:nth-child(8) { --item-index: 8; }
.history-item:nth-child(9) { --item-index: 9; }
.history-item:nth-child(10) { --item-index: 10; }

.history-item:last-child {
  margin-bottom: 0;
}

.history-item::before {
  content: '';
  position: absolute;
  top: 7px;
  left: -60px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #fff;
  border: 5px solid var(--color-primary);
  box-shadow: 0 0 0 5px rgba(15, 76, 129, 0.1);
  z-index: 1;
}

.history-year {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.history-content {
  line-height: 1.7;
  font-size: 1.6rem;
  padding-bottom: 0.5rem;
}

/* Culture Page Styles */
.culture-lead {
  font-size: 2.2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 6rem;
  line-height: 1.8;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 2rem;
  font-weight: 500;
}

.culture-lead::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent) 50%, transparent);
}

.culture-story {
  margin-bottom: 8rem;
}

.story-item {
  background-color: #fff;
  border-radius: 12px;
  padding: 4.5rem;
  margin-bottom: 4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.story-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.story-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 50px 50px 0;
  border-style: solid;
  border-color: transparent var(--color-accent) transparent transparent;
  opacity: 0.2;
}

.story-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 2rem;
}

.story-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 5px;
  background-color: var(--color-accent);
  border-radius: 5px;
}

.story-content {
  line-height: 1.8;
  font-size: 1.6rem;
}

.voices-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 5rem;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 1.5rem;
}

.voices-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
}

.voice-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 3.5rem;
}

.voice-item {
  background-color: #fff;
  border-radius: 12px;
  padding: 3.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.voice-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.voice-item::before {
  content: '"';
  position: absolute;
  top: 2rem;
  left: 2.5rem;
  font-size: 8rem;
  color: rgba(15, 76, 129, 0.05);
  font-family: serif;
  line-height: 1;
}

.voice-text {
  margin-bottom: 2.5rem;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  font-size: 1.6rem;
}

.voice-info {
  display: flex;
  align-items: center;
  border-top: 1px solid #edf2f7;
  padding-top: 2rem;
}

.voice-position {
  font-size: 1.4rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.voice-name {
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--color-primary);
}

/* Social Page Styles */
.social-activity {
  margin-bottom: 8rem;
}

.activity-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 4rem;
}

.activity-item {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.activity-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.activity-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.activity-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.activity-item:hover .activity-img::after {
  opacity: 1;
}

.activity-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.activity-item:hover .activity-img img {
  transform: scale(1.08);
}

.activity-body {
  padding: 3.5rem;
}

.activity-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 1.5rem;
}

.activity-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-accent);
}

.activity-text {
  line-height: 1.8;
  font-size: 1.6rem;
}

/* Media Queries */
@media (max-width: 991px) {
  .page-hero__title {
    font-size: 5rem;
  }
  
  .page-hero__subtitle {
    font-size: 2rem;
  }
  
  .service-detail {
    padding: 3.5rem;
  }
  
  .service-detail__title {
    font-size: 2.4rem;
  }
  
  .culture-lead {
    font-size: 2rem;
  }
  
  .story-title {
    font-size: 2.4rem;
  }
  
  .info-table th {
    width: 35%;
    padding: 1.8rem;
  }
  
  .info-table td {
    padding: 1.8rem;
  }
}

@media (max-width: 767px) {
  .page-hero {
    min-height: 300px;
  }
  
  .page-hero__title {
    font-size: 4rem;
    letter-spacing: 0.1em;
  }
  
  .page-hero__subtitle {
    font-size: 1.8rem;
  }
  
  .service-intro__text {
    font-size: 1.6rem;
  }
  
  .service-detail {
    padding: 3rem;
  }
  
  .service-detail__title {
    font-size: 2.2rem;
  }
  
  .cta__title {
    font-size: 2.5rem;
  }
  
  .culture-lead {
    font-size: 1.8rem;
  }
  
  .story-title {
    font-size: 2.2rem;
  }
  
  .voice-items {
    grid-template-columns: 1fr;
  }
  
  .activity-items {
    grid-template-columns: 1fr;
  }
  
  .history-item::before {
    width: 24px;
    height: 24px;
    top: 8px;
    left: -57px;
  }
}