
:root {
  --purple: #a4589e; /* global scope */
  --yellow: #fdf7b6; /* global scope */
  --white: #ffffff; /* global scope */
  --black:  #333333;
}


h4 {
    margin-top: 0 !important;
}



body a {
  color: var(--purple) !important;
}


/* ============================
   Community Hub (Template CSS)
   ============================ */

.community-wrap-introduction {
  background-color: #fff;
  margin: 48px auto !important;
}



/* Layout */
.community-page {
  max-width: 1425px;
  margin: 0 auto;
  padding: 40px 90px;
}

/* ============================
   Header (logo + nav)
   ============================ */

.community-main-header {
  padding: 16px 16px 10px;
  margin: 0 0 16px;
  background: var(--purple);
  color: #fff;
  width: 100%;
  position: fixed;
    z-index: 1;
    
}

#header-outer.header-outer-community {
  background-color: rgba(164, 88, 158, 100);
  box-shadow: 0 0 4px 0 rgb(0 0 0 / 50%)!important;
}


/* Logo */
#header-outer #logo img, #header-outer .logo-clone img, #header-outer .logo-spacing img {
    height: 32px!important;
}

#header-outer.header-outer-community #top nav > ul > li > a {
    color: #fff!important;
}

#header-outer.header-outer-community [data-lhe="default"] #top nav > ul > li > a span {
    border-bottom: 2px solid var(--purple);
}

#header-outer.header-outer-community #top nav > ul > .button_solid_color_2 > a:before {
  background-color: #fdf7b6;
}

body #header-outer.header-outer-community #top nav>ul>li[class*=button_solid_color]>a {
    color: #333 !important;
}



.menu-item-object-page a.is-active {
  background-color: var(--yellow);
  color: var(--purple)!important;
  border-radius: 4px;
}

#header-outer.header-outer-community #top nav > ul > li > a.is-active {
    color: var(--purple)!important;
}

.menu-item-over a {
    background-color: var(--yellow);
  color: var(--purple)!important;
    border-radius: 4px;
}

.menu-item-over a:hover span {
  color: var(--purple)!important;
}




/* Page title */
.community-page-title {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
}



/* Banner Image */
.banner-row-bg-wrap {
  height: 295px;
    max-height: 295px;
    position: relative;
    border-bottom: 5px solid var(--purple);
}

.banner-row-bg-wrap .inner-wrap {
  overflow: hidden;
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
}

.banner-row-bg-wrap .inner-wrap .row-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
}


.form-topic-filter {
  width: 100%;
  display: grid;
  grid-template-columns: min-content max-content;
  gap: 8px;
  margin: 0 0 0 0;
}

.form-topic-filter label {
  text-wrap: nowrap;
  margin-top: 8px;
}

.form-topic-filter select {
  border: 1px solid var(--purple);
  padding: 10px 20px 10px 10px;
  border-radius: 4px;
}

.community-topic-filter {
  margin: 0 0;
  padding: 0 0 0 0;
  border-top: 1px solid var(--purple);
}

.inner {
  margin-top: 14px;
}


.inner a {
  color: var(--white)!important;
}

.arrow-up {
  background: url("https://surpass.com/wp-content/themes/salient-child/assets/img/arrow-up-right.png") no-repeat center;
  -webkit-background-size: contain;
-moz-background-size: contain;
-o-background-size: contain;
background-position: right -2px;
    background-size: contain;
    padding-right: 25px;
}



/* ============================
   Tag Menu (legacy)
   ============================ */

.community-tag-menu {
  margin: 16px 0 20px;
  clear: both;
}

.community-tag-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-tag-menu__item {
  margin: 0;
  list-style: none;
}

.community-tag-menu__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.7);
  color: inherit;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,  border-color 160ms ease;
}

.community-tag-menu__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.18);
}

.community-tag-menu__item.is-active .community-tag-menu__link {
  border-color: rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.04);
  font-weight: 600;
}

.community-type-filter__link {
  padding:3px 6px;
}

.community-type-filter__link.is-active {
  background-color: var(--purple);
  border-radius: 4px;
  color: var(--white)!important;
}

.community-type-filter__link:hover {
  background-color: var(--yellow);
  color: var(--purple)!important;
}




.menu-title-text {
  text-wrap: nowrap;
  border-bottom: #a4589e!important;
}

.menu-title-text:hover {

  border-bottom: var(--yellow)!important;
}

#header-outer #top nav > ul > li > a:hover {
  color: var(--yellow)!important;
}






/* Desktop nav bar (under header) */
.community-nav-desktop {
  background: #265063;
  color: #fff;
  border-radius: 0 0 16px 16px;
  margin: 0 0 16px;
}

.community-nav-desktop__inner {
  padding: 12px 16px;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: flex-start;
}
/* Desktop vs mobile visibility */
.community-nav-desktop { display: none; } /* default hidden */

@media (min-width: 960px) {
  .community-nav-desktop { display: block; }
  .community-nav__toggle { display: none; } /* keep mobile toggle hidden on desktop */
}

@media (max-width: 959px) {
  .community-nav__toggle { display: inline-flex; } /* toggle stays in header on mobile */
}


.community-nav-desktop__inner .community-nav__list {
  display: flex;
}



/* ============================
   Controls / Sorting
   ============================ */

.community-controls {
  margin: 10px 0 18px;
}

.community-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.community-sort a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  opacity: 0.85;
}

.community-sort a:hover {
  opacity: 1;
  border-bottom-color: currentColor;
}

.community-sort a.is-active {
  opacity: 1;
  font-weight: 600;
  border-bottom-color: currentColor;
}

.community-type-filter {
    margin: 0 0 16px 0;
    border-top: 1px solid var(--purple);
    border-bottom: 1px solid var(--purple);
}


.community-hub-controls {
  margin-bottom: 32px;
}


ul.community-type-filter__list {
  width: 50%;
  display: grid;
  grid-template-columns: min-content min-content min-content min-content min-content min-content min-content min-content min-content;
  gap: 8px;
  margin: 0 0 0 0;
  padding: 16px 0;
}



ul.community-type-filter__list li, li.community-type-filter__item {
  list-style-type: none;
  margin-bottom: 0;
  text-wrap: nowrap;
}

li.community-type-filter__item::marker {
  display: none;
}

/* ============================
   Grid + Cards
   ============================ */

.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  clear: both;
}

.community-cards {
  margin: 48px auto!important;
}


.community-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
  padding: 12px;
}

.community-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* 16:9 media wrapper */
.community-card__media {
  display: block;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #ccc;
  aspect-ratio: 16 / 9;
}

/* Make media fill the 16:9 box */
.community-card__img,
.community-card__placeholder,
.community-card__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Featured image */
.community-card__img {
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Placeholder */
.community-card__placeholder {
  display: block;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.05),
    rgba(0, 0, 0, 0.02)
  );
  background: url("https://surpass.com/wp-content/themes/salient-child/assets/img/thumbnail.png") no-repeat center;
  -webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

/* Body */
.community-card__body {
  padding: 14px 0 0;
}

.community-card__title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.community-card__title a {
  text-decoration: none;
  color: var(--purple);
}

.community-card__meta {
  margin: 0 0 10px;
  font-size: 0.9rem;
  opacity: 0.75;
}

.community-card__excerpt {
  font-size: 0.98rem;
  line-height: 1.55;
  opacity: 0.92;
}

.community-card__excerpt p {
  margin: 0;
}

.community-card__cta {
  margin-top: 12px;
}

.community-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
  color: var(--purple);
}

.community-card__link:hover {
  opacity: 1;
  text-decoration: underline;
}


.community-type-filter__link.is-disabled {
  opacity: .45;
  pointer-events: none;
  cursor: default;
}


/* Tags under card */
.community-card__tags {
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
}

hr {
  color: rgba(0, 0, 0, 0.1);
}

/* ============================
   Pagination
   ============================ */

.community-pagination {
  margin: 24px 0 48px;
}

.community-pagination ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.community-pagination li {
  margin: 0;
  list-style: none;
}

.community-pagination a,
.community-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--purple);
  background: var(--purple);
color: var(--white)!important;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,  border-color 160ms ease;
}

.community-pagination a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  background: var(--white);
  border-color: var(--purple);
  color: var(--purple)!important;
}

.community-pagination .current {
  font-weight: 700;
  background:var(--white);
  border-color: var(--purple);
  color: var(--purple)!important;
}

/* ============================
   Intro (toggle/show-hide)
   ============================ */

.community-page-content__dismiss {
  margin-top: 12px;
}

.community-page-content__dismiss-link {
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.85;
}

.community-page-content__dismiss-link:hover {
  opacity: 1;
}

/* ============================
   Community Nav (Topics + Type)
   ============================ */


.community-filter-heading {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr min-content;
  gap: 8px;
}

.community-hub-controls__clear {
  text-wrap: nowrap;
    padding: 4px 8px;
    border: 1px solid var(--purple);
    border-radius: 4px;
    display: block;
    font-size: 14px;
}

.community-nav {
  width: 100%;
}

.community-nav__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.community-nav__groups {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.community-nav__group-title {
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.75;
  margin: 0 0 8px;
  list-style-type: none;
}

.community-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.community-nav__group {
  width: 100%;
}

.community-nav__item {
  list-style: none;
}

.community-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 1px 11px 0px 11px;
  border-radius: 999px;
  text-decoration: none;
  background: transparent;
  color: #fff!important;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease,  border-color 160ms ease;
}

.community-nav__link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.95);
  color: var(--purple)!important;
}

.community-nav__link.is-active {
  background: rgba(0, 0, 0, 0.04);
  font-weight: 600;
}





/* Toggle button */
.community-nav__toggle {
  display: none; /* shown on mobile breakpoint */
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0);
  color: #fff;
  cursor: pointer;
}

.community-nav__toggle-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  display: inline-block;
  opacity: 0.8;
}



body.community-nav--open {
  overflow: hidden;
}





/* ============================
   Mobile nav overlay (fixed)
   ============================ */

/* Toggle button: hidden by default, shown on mobile */
.community-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
color: #fff !important;
  background: rgba(255, 255, 255, 0);
  cursor: pointer;
}

/* Overlay container: default hidden */
.community-nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
}

/* The [hidden] attribute must ALWAYS hide it */
.community-nav__mobile[hidden] {
  display: none !important;
}

/* Mobile menu panel */
.community-nav__mobile-inner {
  position: absolute;
  inset: 0;
  background: var(--purple);
  overflow: auto;
  -webkit-overflow-scrolling: touch;

}

.community-nav__mobile-header {
 width: 88%;
margin: 12px auto 24px auto; 
}

.community-nav__mobile-section {
   width: 88%;
margin: 12px auto 24px auto; 
}


.community-nav__mobile-close {
    float: right;
    position: relative;
    top: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 12px;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0);
    cursor: pointer;
}


/* Mobile breakpoint behaviour */
@media (max-width: 1160px) {
  .community-nav__groups { display: none; }

  .community-nav__toggle {
    display: inline-flex;
    float: right;
    margin-top: 8px;
  }

  /* Show overlay ONLY when JS removes [hidden] */
  .community-nav__mobile:not([hidden]) {
    display: block;
  }

  /* Hide Salient's default nav on mobile */
  #header-outer #top nav,
  .slider-nav span span {
    display: none !important;
  }
}




















#footer-outer.footer-outer-community {
    border-top: 8px solid #a4589e !important;
    background-color:#a4589e !important;
}

body #footer-outer #copyright {
    border: none;
    background-color: #a4589e !important;
}

#footer-outer.footer-outer-community #footer-widgets .menu li a, #footer-outer.footer-outer-community a:not(.nectar-button)  {
    color: #fff !important;
}

#footer-outer.footer-outer-community #copyright a:not(.nectar-button) {
    color: #fff !important;
}






/* ============================
   Responsive
   ============================ */

@media (max-width: 1024px) {
  .community-page {
      padding: 40px 40px;
  }
}


@media (min-width: 640px) {
  .community-page {
    
  }

  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 960px) {
  .community-page {
    
  }

  .community-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

/* Mobile behaviour */
@media (max-width: 1160px) {
  .community-nav__groups {
    display: none;
  }

  .community-nav__toggle {
    display: inline-flex;
    float: right;
    margin-top: 8px;
  }

  .community-nav__mobile {
    display: block;
  }

     #header-outer #top nav,.slider-nav span span {
        display: none!important
    }

}


@media only screen and (min-width: 1px) and (max-width: 999px) {
    body[data-slide-out-widget-area=true] #top .col.span_3 {
        width: auto!important;
    }
}

@media only screen and (min-width: 1px) and (max-width: 999px) {
    #header-outer #top #logo img, #header-outer[data-transparent-header=true][data-permanent-transparent=false] #logo .dark-version {
        top: 10px!important;
        height: 30px!important;
    }
}



@media (max-width: 1024px) {
  .banner-row-bg-wrap {
      max-height: 199px;
  }
}


@media (max-width: 425px) {
    .banner-row-bg-wrap {
        max-height: 149px;
    }
}

@media (max-width: 768px) {
    .community-type-filter__list {
        scroll-behavior: smooth;
        overflow-x: auto;
        white-space: nowrap;
        width: 100% !important;
    }

    .inner {
      margin-top: 0px;
    }

    #header-outer #top #logo img {
      top: 0 !important;
    }
}


@media (max-width: 425px) {
  .community-page {
      padding: 30px 20px;
  }

  .form-topic-filter {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
  }


  .community-type-filter__list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .community-type-filter__list > :first-child {
    grid-column: 1 / -1;
  }


 #header-outer.header-outer-community, #header-outer:not([data-permanent-transparent="1"]) {
      height: 74px !important;
  }
    .inner {
      display: none!important;
    }

}



/* ============================
   Accessibility
   ============================ */

.community-tag-menu__link:focus,
.community-sort a:focus,
.community-card__title a:focus,
.community-card__link:focus,
.community-pagination a:focus,
.community-nav__toggle:focus,
.community-nav__link:focus {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
