/* Hero3 Section (Generic Page Hero) */
.ko-hero3 {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: 50vh; /* Reduced max-height for generic pages */

  @media (width >= 992px) {
    aspect-ratio: 16 / 9;
    padding-top: 50px;
  }
}

.ko-hero3__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.ko-hero3__img,
.ko-hero3__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ko-hero3__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Slightly darker for better text contrast on static pages */
  z-index: 2;
}

.ko-hero3__container {
  position: relative;
  z-index: 3;
  width: 100%;
}

.ko-hero3__content {
  color: var(--ko-white);
  max-width: 1000px;
  margin-inline: auto;
  text-align: center;
}

.ko-hero3__subtitle {
  font-family: var(--ko-font-heading);
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 300;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ko-hero3__title {
  font-family: var(--ko-font-heading);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: inherit;
  line-height: 1;
  text-wrap: balance;
  text-transform: uppercase;
}

/* Generic Page Styles */
.ko-faq {
  max-width: 940px;
  margin: 80px auto;
  padding-inline: 20px;
}

.ko-faq__title {
  font-family: var(--ko-font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  color: var(--ko-primary);
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.ko-faq__item {
  border-bottom: 1px solid #eee;
  padding: 24px 0;
}

.ko-faq__question {
  font-family: var(--ko-font-heading);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  color: var(--ko-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.ko-faq__answer {
  font-family: var(--ko-font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ko-primary);
  margin-top: 15px;
  display: none;
}

.ko-faq__answer.is-active {
  display: block;
}

.ko-faq__icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.ko-faq__item.is-active .ko-faq__icon {
  transform: rotate(180deg);
}

/* Gallery Slider Styles */
.ko-page-gallery {
  margin: 80px 0;
}

.ko-page-gallery .swiper-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Masonry Gallery Styles */
.ko-page-gallery--masonry {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.ko-masonry {
  column-count: 1;
  column-gap: 20px;
  width: 100%;

  @media (width >= 768px) {
    column-count: 2;
  }

  @media (width >= 1024px) {
    column-count: 3;
  }
}

.ko-masonry__item {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 8px; /* Optional: for a cleaner look */
  transition: transform 0.3s ease;
}

.ko-masonry__item:hover {
  transform: translateY(-5px);
}

.ko-masonry__item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Page Content Styles */
.ko-blog-content {
  color: var(--ko-primary);
  font-family: var(--ko-font-main);
  line-height: 1.8;
  font-size: 16px;
  max-width: 940px;
  padding-inline: 20px;
  margin-inline: auto;
  text-align: center; /* Center align all text */

  @media (width >= 768px) {
    font-size: 18px;
  }

  & p {
    margin-bottom: 24px;
  }

  & h1, & h2, & h3, & h4, & h5, & h6 {
    font-family: var(--ko-font-heading);
    color: var(--ko-primary);
    margin-top: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 300;
  }

  & h1 { font-size: 42px; }
  & h2 { font-size: 36px; }
  & h3 { font-size: 30px; }
  & h4 { font-size: 24px; }
  & h5 { font-size: 20px; }
  & h6 { font-size: 18px; }

  @media (width >= 768px) {
    & h1 { font-size: 56px; }
    & h2 { font-size: 48px; }
    & h3 { font-size: 38px; }
    & h4 { font-size: 30px; }
    & h5 { font-size: 24px; }
    & h6 { font-size: 20px; }
  }

  & strong, & b {
    font-weight: 700;
  }

  & ul, & ol {
    margin-bottom: 32px;
    padding-left: 0;
    list-style-position: inside; /* Better for centered alignment */
  }

  & li {
    margin-bottom: 12px;
  }

  & blockquote {
    margin: 40px auto;
    padding: 20px 40px;
    border-top: 1px solid var(--ko-blue);
    border-bottom: 1px solid var(--ko-blue);
    border-left: none; /* Removed for centered look */
    background-color: #f9f9f9;
    font-style: italic;
    font-size: 1.1em;
    max-width: 80%;

    & p {
      margin-bottom: 0;
    }
  }

  & img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 32px auto;
  }

  & table {
    margin-inline: auto;
    text-align: left; /* Keep table cell text left for readability but center table itself */
  }
}
