/**
 * Elementor-free community shell copied from the production community pages.
 */

body.ys-bien-community-page,
.ys-community-main {
  background: #f8f5ec;
}

.ys-community-main {
  min-height: 70vh;
  overflow: clip;
}

.ys-community-hero,
.ys-community-hero * {
  box-sizing: border-box;
}

.ys-community-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 160px 0 0;
  background: #f8f5ec;
  color: #223226;
  text-align: center;
}

.ys-community-hero__breadcrumb,
.ys-community-hero__title,
.ys-community-hero__description {
  width: 100%;
  margin-inline: 0;
  color: #223226;
}

.ys-community-hero__breadcrumb {
  margin-block: 0;
  font-family: "Pretendard", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.ys-community-hero__title {
  margin-top: 20px;
  margin-bottom: 4px;
  font-family: "Times New Roman", sans-serif;
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
}

.ys-community-hero__description {
  margin-block: 0;
  padding-bottom: 60px;
  font-family: "Pretendard", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  text-transform: uppercase;
}

.ys-community-hero__visual {
  position: relative;
  align-self: center;
  flex: 0 0 auto;
  width: 100%;
  height: clamp(430px, 31vw, 540px);
  min-height: clamp(430px, 31vw, 540px);
  max-height: clamp(430px, 31vw, 540px);
  overflow: hidden;
  background-image: var(--ys-community-hero-image);
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.ys-community-scroll-cue {
  --ys-scroll-color: rgba(34, 50, 38, 0.92);
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 3vw, 46px);
  z-index: 2;
  min-width: 58px;
  min-height: 108px;
  padding: 14px 13px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  color: var(--ys-scroll-color);
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.58), transparent 48%),
    rgba(248, 245, 236, 0.76);
  box-shadow:
    0 14px 38px rgba(34, 50, 38, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(34, 50, 38, 0.05);
  backdrop-filter: blur(13px) saturate(130%);
  pointer-events: none;
}

.ys-community-scroll-cue__label {
  display: block;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 9px;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.48), 0 6px 14px rgba(34, 50, 38, 0.12);
}

.ys-community-scroll-cue__line {
  position: relative;
  display: block;
  width: 2px;
  height: clamp(44px, 3.7vw, 58px);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(34, 50, 38, 0.24);
  box-shadow: 0 0 0 1px rgba(34, 50, 38, 0.24), 0 0 14px rgba(255, 255, 255, 0.62);
}

.ys-community-scroll-cue__line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -100%;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(transparent, var(--ys-scroll-color) 38%, var(--ys-scroll-color) 62%, transparent);
  animation: ys-community-scroll-line 1.35s cubic-bezier(.65, 0, .35, 1) infinite;
}

.ys-community-scroll-cue__dot {
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--ys-scroll-color);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.38), 0 0 18px rgba(255, 255, 255, 0.52), 0 10px 22px rgba(34, 50, 38, 0.16);
}

.ys-community-scroll-cue__dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid var(--ys-scroll-color);
  border-radius: inherit;
  opacity: 0.34;
  animation: ys-community-scroll-dot 1.6s ease-out infinite;
}

.ys-community-content {
  position: relative;
  width: 100%;
  background: #f8f5ec;
}

.ys-community-unavailable {
  width: min(var(--ys-bien-container), calc(100% - (var(--ys-bien-gutter) * 2)));
  margin-inline: auto;
  padding-block: clamp(100px, 12vw, 180px);
  text-align: center;
}

@keyframes ys-community-scroll-line {
  from { top: -100%; }
  to { top: 100%; }
}

@keyframes ys-community-scroll-dot {
  0% { transform: scale(0.55); opacity: 0.34; }
  72%, 100% { transform: scale(1.75); opacity: 0; }
}

@media (max-width: 1024px) {
  .ys-community-hero__title {
    font-size: 48px;
  }

  .ys-community-hero__description {
    font-size: 21px;
  }
}

@media (max-width: 767px) {
  .ys-community-hero {
    padding-top: 100px;
    padding-bottom: 0;
  }

  .ys-community-hero.has-mobile-bottom-gap {
    padding-bottom: 30px;
  }

  .ys-community-hero__breadcrumb {
    font-size: 12px;
  }

  .ys-community-hero__title {
    margin: 0;
    font-size: 32px;
    line-height: 1.2;
  }

  .ys-community-hero__description {
    padding: 0;
    font-size: 12px;
  }

  .ys-community-hero__visual {
    height: 310px;
    min-height: 310px;
    max-height: 310px;
    background-image: var(--ys-community-hero-mobile-image);
    background-attachment: scroll;
    background-position: center bottom;
  }

  .ys-community-scroll-cue {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ys-community-scroll-cue__line::after,
  .ys-community-scroll-cue__dot::after {
    animation: none;
  }
}
