/* === Top-level nav hover (put in custom.css at the end) === */

/* choose your color once here */
:root { --nav-hover: #000000; }  /* <- change to your brand color */

/* smooth transition */
.header-style2 .navbar-nav > li > a {
  transition: color .2s ease;
}

/* hover/focus color for main items */
.header-style2 .navbar-nav > li > a:hover,
.header-style2 .navbar-nav > li > a:focus {
  color: var(--nav-hover);
}

/* If your header uses .menu_area-light + .navbar-light, cover that too */
.menu_area-light .navbar-light .navbar-nav > li > a:hover,
.menu_area-light .navbar-light .navbar-nav > li > a:focus {
  color: var(--nav-hover);
}

/* Code of Conduct slider */
.code-conduct {
  position: relative;
}

.code-conduct-header {
  gap: 20px;
}

.code-conduct-title span {
  letter-spacing: 2px;
}

.code-conduct-lead {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.code-conduct-toggle {
  display: inline-flex;
  gap: 10px;
}

.code-lang-toggle {
  background-color: transparent !important;
  color: #000000 !important;
  border: 1px solid #000000 !important;
  border-radius: 999px;
  padding: 10px 22px !important;
}

.code-lang-toggle.is-active {
  background-color: #000000 !important;
  color: #ffffff !important;
}

.code-lang-toggle:hover,
.code-lang-toggle:focus {
  background-color: #000000 !important;
  color: #ffffff !important;
}

.code-conduct[data-lang="de"] .lang-en {
  display: none;
}

.code-conduct[data-lang="en"] .lang-de {
  display: none;
}

.code-conduct-slider {
  position: relative;
  margin-top: 50px;
}

.code-conduct-slider .owl-stage-outer {
  padding: 10px 10px 30px;
}

.code-slide {
  padding: 10px;
}

.code-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2.5rem 2.25rem;
  box-shadow: none;
  overflow: hidden;
}

.code-card > * {
  position: relative;
  z-index: 1;
}

.code-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.25rem;
}

.code-card-index {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #000000;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.code-card-title {
  margin: 0;
  font-weight: 700;
}

.code-card-title .lang {
  display: block;
}

.code-conduct-slider .owl-nav {
  position: absolute;
  right: 10px;
  top: -45px;
  margin-top: 0;
  display: flex;
  gap: 12px;
}

.code-conduct-slider .owl-nav .owl-prev,
.code-conduct-slider .owl-nav .owl-next {
  border-radius: 999px;
}

.code-conduct-footnote .alert {
  border-radius: 12px;
}

/* Home feature slider */
.home-feature-carousel {
  position: relative;
  padding: 20px 0;
}

.home-feature-carousel .container {
  max-width: 100%;
}

.home-feature-slide {
  padding: 0 0 10px;
}

.home-feature-content {
  height: 100%;
}

.home-feature-content .section-heading span {
  font-size: 22.5px;
}

.home-feature-content .section-heading .h1,
.home-feature-content .section-heading h1,
.home-feature-content .section-heading h2 {
  font-size: calc(1.5 * (1.375rem + 1.5vw));
}

.home-feature-content p {
  font-size: 1.5rem;
}

.home-feature-content .butn {
  font-size: 1.3125rem;
}

.home-feature-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: -55px;
  right: -55px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
  padding: 0 8px;
  pointer-events: none;
  z-index: 2;
}

.home-feature-carousel .owl-nav button {
  pointer-events: auto;
}

.home-feature-carousel .owl-nav .owl-prev,
.home-feature-carousel .owl-nav .owl-next {
  width: 60px;
  height: 60px;
}

.home-feature-carousel .owl-nav i {
  font-size: 27px;
}

.home-feature-carousel .owl-dots {
  margin-top: 16px !important;
}

/* Home about section */
.home-about {
  position: relative;
  background: url("../img/bg/bg6.jpg") center/cover no-repeat;
  padding: 81px 0;
  color: #14212B;
}

.home-about p,
.home-about .section-heading span,
.home-about .section-heading h1,
.home-about .section-heading h2,
.home-about .section-heading h3,
.home-about .section-heading h4,
.home-about .section-heading h5,
.home-about .section-heading h6 {
  color: #14212B;
}

.home-about .section-heading .square {
  background-color: #14212B;
  border-color: #14212B;
}

.home-about .section-heading .separator-left,
.home-about .section-heading .separator-right {
  background-color: #14212B;
}

.home-about-features {
  margin-top: 10px;
}

.home-about-feature {
  text-align: center;
}

.home-about-icon {
  display: inline-flex;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(20, 33, 43, 0.12);
  color: #14212B;
  font-size: 2.25rem;
}

.home-about-label {
  display: block;
  font-weight: 600;
}

/* Home community section */
.home-community {
  background: url("../img/bg/bg13.jpg") center/cover no-repeat;
  padding: 90px 0;
  color: #14212B;
}

.home-community .community-title {
  color: #14212B;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.home-community p {
  color: #14212B;
  margin-bottom: 24px;
}

.home-community .community-content {
  max-width: 520px;
}

.home-feature-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.04);
  margin-left: 0;
  margin-right: auto;
}

.home-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
  display: block;
}

@media (min-width: 1200px) {
  .home-feature-content .section-heading .h1,
  .home-feature-content .section-heading h1,
  .home-feature-content .section-heading h2 {
    font-size: 3.75rem;
  }

  .home-feature-carousel .owl-nav {
    left: -140px;
    right: -140px;
  }
}

@media (min-width: 576px) {
  .home-feature-carousel .container {
    max-width: 459px;
  }
}

@media (min-width: 768px) {
  .home-feature-carousel .container {
    max-width: 612px;
  }
}

@media (min-width: 992px) {
  .home-feature-carousel .container {
    max-width: 816px;
  }
}

@media (min-width: 1200px) {
  .home-feature-carousel .container {
    max-width: 969px;
  }
}

@media (min-width: 1400px) {
  .home-feature-carousel .container {
    max-width: 1122px;
  }
}

@media (max-width: 991px) {
  .home-feature-carousel .owl-nav {
    left: 0;
    right: 0;
  }
}

@media (max-width: 767px) {
  .home-feature-content {
    text-align: center;
    align-items: center;
  }

  .home-feature-content .section-heading,
  .home-feature-content .section-heading.left {
    text-align: center;
  }

  .home-feature-content .section-heading.left h1:after,
  .home-feature-content .section-heading.left h2:after,
  .home-feature-content .section-heading.left h3:after,
  .home-feature-content .section-heading.left h4:after,
  .home-feature-content .section-heading.left h5:after,
  .home-feature-content .section-heading.left h6:after {
    margin: 0 auto;
    left: 0;
    right: 0;
  }

  .home-feature-carousel .owl-nav {
    position: static;
    transform: none;
    margin-top: 16px;
    justify-content: center;
    gap: 16px;
    padding: 0;
    pointer-events: auto;
  }

  .home-feature-media {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .home-about {
    padding: 70px 0;
  }

  .home-about-icon {
    width: 64px;
    height: 64px;
    font-size: 1.9rem;
  }

  .home-community {
    padding: 70px 0;
  }

  .home-community .community-content {
    text-align: center;
    margin: 0 auto;
  }

  .home-community p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Newsletter inline message */
.newsletter-message {
  text-align: center;
  color: #14212B;
  font-size: 0.95rem;
  line-height: 1.5;
}

.newsletter-message strong {
  font-weight: 700;
}

@media (max-width: 767px) {
  .code-conduct-header {
    align-items: flex-start;
  }

  .code-conduct-slider .owl-nav {
    position: static;
    justify-content: center;
    margin-top: 20px;
  }

  .code-card {
    padding: 2rem 1.75rem;
  }
}

@media (max-width: 575px) {
  .code-long-word {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(20, 33, 43, 0.98);
  color: #ffffff;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.18);
}

.cookie-banner.is-hidden {
  display: none;
}

.cookie-banner__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner__text h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #ffffff;
}

.cookie-banner__text p {
  margin: 0;
  font-size: 0.95rem;
  color: #d7dee6;
}

.cookie-banner__text a {
  color: #ffffff;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__actions .butn {
  padding: 10px 18px;
  line-height: 1.2;
}

@media (max-width: 991px) {
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .butn {
    width: 100%;
    text-align: center;
  }
}
