
.fenghuang-decorated-background {
  position: relative;
  padding: 2em;
  border-radius: 10px;
  overflow: hidden;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.3);

  background: rgba(255, 255, 255, 0.7);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fenghuang-logo-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.fenghuang-logo{
  font-size: 1.5rem;
}

section[id] {
  scroll-margin-top: 80px; /* Adjust this to match your header height */
}

.fenghuang-body {
  overflow-x: hidden;
  background-image: url('https://cms.fenghuang.ch/assets/images/background.svg');
  background-size: auto;
  background-repeat: repeat;
}

.fenghuang-decorated-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;


  background-image: url('https://cms.fenghuang.ch/assets/images/background.svg');
  background-size: cover;
  background-repeat: no-repeat;

  /* The Filter: This turns Black (#000) into a Forest Green (#228B22) */
  filter: invert(34%) sepia(55%) saturate(542%) hue-rotate(74deg) brightness(91%) contrast(88%);

  opacity: 0.8;
}

.fenghuang-decorated-background > * {
  filter: none;
}

.fenghuang-bg {
  background-image: var(--bg-url);
  background-position: var(--bg-focus, center center);
}


.fenghuang-overflow-bg {
  position: relative;
  z-index: 1;
}

.fenghuan-image-border-radius img {
  border-radius: 50% / 35%;
}

.fenghuan-image-drop-shadow img {
  filter: drop-shadow(10px 10px 5px rgba(0, 0, 0, 0.9));
}

html {
  scroll-behavior: smooth;
}

.fenghuang-overflow-bg::before {
  content: "";
  position: absolute;
  top: 0;
  /* Centering trick to break out of the parent container */
  left: 50%;
  transform: translateX(-50%);

  /* Force the width to the full screen size */
  width: 100vw;
  height: 100%;

  /* Your Background Properties */
  background-image: var(--bg-url), var(--bg-url-low-quality);
  background-size: cover;
  background-position: var(--bg-focus, center center);

  /* Push it behind the content */
  z-index: -1;
  pointer-events: none;

  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8)
}

/* Sticky Header ----------------------------------------------------------------------------------------------------- */

.fenghuang-sticky-header {
  background: #efefef;
  box-shadow: -2px 6px 7px 3px rgba(0, 0, 0, 0.1);
  z-index: 10;
  margin-bottom: -5rem;
  background-image: url(https://cms.fenghuang.ch/assets/images/background.svg);
  background-size: cover;
  background-repeat: repeat;
  background-position: 0 0;
  border-radius: 0 0 0.2rem 0.2rem;

  display: flex;
  align-items: center;
  justify-content: space-between; /* Fallback */
  padding: 0 10%;
  position: sticky;
  top: 0;
  min-height: 70px;
}

.fenghuang-sticky-header .logo {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.fenghuang-menu-toggle {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  position: relative; /* Essential for absolute stacking */
  min-width: 30px;
  min-height: 30px;
}

.fenghuang-menu-toggle img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  position: absolute;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fenghuang-icon-open {
  opacity: 1;
  transform: rotate(0deg);
}
.fenghuang-icon-close {
  opacity: 0;
  transform: rotate(-90deg);
}

.fenghuang-sticky-header.is-open{
  border-radius: 0 0 0 0;
}

.fenghuang-sticky-header.is-open .fenghuang-icon-open {
  opacity: 0;
  transform: rotate(90deg);
}
.fenghuang-sticky-header.is-open .fenghuang-icon-close {
  display: block;
  opacity: 1;
  transform: rotate(0deg);
}

.fenghuang-navigation {
  background: #efefef;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-image: url(https://cms.fenghuang.ch/assets/images/background.svg);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
  background-size: cover;
  background-repeat: repeat;
  border-radius: 0 0 0.2rem 0.2rem;
  box-shadow: 0 20px 7px 3px rgba(0, 0, 0, 0.1);
  background-position: 0 -83px;
}

.fenghuang-sticky-header.is-open .fenghuang-navigation {
  max-height: 500px;
  opacity: 1;
}

.fenghuang-menu-list {
  align-items: center;
  justify-content: center;
  text-align: center;

  display: flex;
  flex-direction: column;

  font-size: 1.2rem;

  gap: 2rem;

  padding-bottom: 1rem;
}

.fenghuang-menu-list a{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: black;
  transition: text-decoration-color 0.3s ease;
}

.fenghuang-menu-list a:hover {
  text-decoration-color: rgba(0, 0, 0, 0.3);
}


@media (min-width: 900px) {
  .fenghuang-menu-toggle {
    display: none;
  }


  .fenghuang-navigation {
    position: static;
    max-height: none;
    opacity: 1;
    overflow: visible;
    flex: 2;
    display: flex;
    justify-content: right;
    background-color: rgba(0, 0, 0, 0);

    background-image: none;
    box-shadow: none;

    padding-left: 2rem;
  }

  .fenghuang-menu-list {
    display: flex;
    flex-direction: row;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

}
