/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/*
Teacher Blue: #63c8fe;
Coach Red: #ef5d53;
*/

#buddypress.alignwide {
  max-width: 100%;
  width: 100%;
  margin-left: 0;
}

#groups-dir-list .groups-meta.action {
  display: none !important;
}

body.group-teachers #aplp-header {
  background: #63c8fe;
}

body.group-coaches #aplp-header {
  background: #ef5d53;
}

body.group-staff #aplp-header {
  background: #9ecd39;
}

#aplp-header .aplp-toolbar {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
}

#aplp-header .aplp-header-left {
  flex: 1;
}

#aplp-header .aplp-header-right {
  flex: 0 0 auto;
  text-align: right;
  width: auto;
}

.bp-user-info {
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.6);
  padding: 2px 4px 2px 12px;
  border-radius: 40px;
  float: left;
  background: rgba(0,0,0,.1);
  cursor: pointer;
}

.bp-user-info:hover {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,1);
}

.bp-user-info span {
  margin-top: 0.5px;
  float: left;
}

.bp-user-info img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-left: 6px;
  float: left;
}

nav.aplp-breadcrumb {
  font-size: 13.5px;
  /* color: rgba(255,255,255,.75); */
  color: #fff;
  line-height: 20px;
  padding: 6px 0 8px 0;
}

nav.aplp-breadcrumb span.sep {
  line-height: 20px;
  font-size: 20px;
  margin: 0 8px;
}

nav.aplp-breadcrumb a {
  font-weight: 600;
  color: #fff;
}

nav.aplp-breadcrumb a:hover {
  text-decoration: underline;
}


/* Group page CSS hides */
/* body.groups.single-item.group-teachers article > h1, */
/* body.groups.single-item article > h1, */
/* body.groups.single-item .main-navs.bp-navs, */
body.groups.single-item .bp_group #item-header,
body.groups.single-item.group-teachers #object-nav,
body.groups .bp_group .group-description,
body.directory.groups header, /* home when logged IN */
body.buddypress.directory.groups header, /* home when logged OUT */
/* body.buddypress.bp-nouveau header, */
body.buddypress.core header,
/* body.directory.groups footer,
body.buddypress.directory.groups footer,
body.buddypress.bp-nouveau footer,  */
body.groups .bp_group :is(h1, h2, h3, h4, h5, h6):not(#item-body :is(h1, h2, h3, h4, h5, h6)),
body.group-coaches.group-home #buddypress > h2,
body.group-staff.group-home #buddypress > h2,
body.buddypress.directory.groups nav.groups-type-navs.main-navs.dir-navs,
body.buddypress.directory.groups #subnav-filters,
body.buddypress.directory.groups .bp-pagination,
body.buddypress.directory.groups .buddypress-wrap .groups-list li .group-desc,
body.group-teachers.group-home #buddypress h2:not(.teachers-gateway h2) {
  display: none !important;
}

body.buddypress.directory.groups .bp-list {
  border-top: none;
  width: 100%;
  position: relative;
  display: flex;
  margin: 60px 0;
}

body.buddypress.directory.groups .bp-list > li {
  border-bottom: none;
  width: calc(33% - 48px);
  float: left;
  display: inline-block;
  margin: 0 24px;
  border-radius: 20px !important;
  padding: 0;
  text-align: center;

  -webkit-box-shadow: 0px 0px 20px 3px rgba(0,0,0,0.08);
  box-shadow: 0px 0px 20px 3px rgba(0,0,0,0.08);
}

body.buddypress.directory.groups .bp-list > li .list-wrap,
body.buddypress.directory.groups .bp-list > li .list-wrap .item,
body.buddypress.directory.groups .bp-list > li .list-wrap .item .item-block,
body.buddypress.directory.groups .bp-list > li .list-title,
body.buddypress.directory.groups .bp-list > li .list-title a {
  width: 100%;
  float: left;
  text-align: center;
  margin: 0;
  height: 100%;
}

body.buddypress.directory.groups .bp-list > li .item-meta {
  display: none;
}

body.buddypress.directory.groups .bp-list > li .list-title a {
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: 0.25px;
  padding: 140px 40px 50px 40px;
  clear: both;
  font-weight: 500;
}

body.buddypress.directory.groups .bp-list > li .list-title:before,
body.buddypress.directory.groups .bp-list > li .list-title:after {
  content: "";
  width: 23px;
  height: 23px;
  background: #000;
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  margin-top: 1px;
  margin-left: 1px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

body.buddypress.directory.groups #groups-dir-list:before {
  content: "What is your role?";
  display: block;
  text-align: center;
  width: 100%;
  margin-top: 20px;
  font-size: 24px;
  color: #666;
}

body.buddypress.directory.groups .bp-list > li .list-title:after {
  background-color: transparent;
  background-image: url(images/svg/check-icon.svg);
  background-size: 60% 60% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

body.buddypress.directory.groups .bp-list > li:hover .list-title:before,
body.buddypress.directory.groups .bp-list > li:hover .list-title:after {
  opacity: 1;
}

body.buddypress.directory.groups .bp-list > li .list-title a {
  border: 3px solid transparent;
  border-radius: 20px;
}

body.buddypress.directory.groups .bp-list > li .list-title a:after {
  content: "Start Here";
  clear: both;
  font-size: 22px;
  text-transform: none;
  font-weight: 800;
  letter-spacing: -0.25px;
  display: block;
  margin-top: 5px;
}

body.buddypress.directory.groups .bp-list > li .list-title a:before {
  content: "";
  width: 80px;
  height: 80px;
  display: block;
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  background-image: url(images/svg/coaches-icon.svg);
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

body.buddypress.directory.groups .bp-list > li:nth-child(1) .list-title:before {
  background: #63c8fe;
}
body.buddypress.directory.groups .bp-list > li:nth-child(2) .list-title:before {
  background: #ef5d53;
}
body.buddypress.directory.groups .bp-list > li:nth-child(3) .list-title:before {
  background: #9ecd39;
}

body.buddypress.directory.groups .bp-list > li .list-title a.teachers-home-link {
  color: #63c8fe;
}
body.buddypress.directory.groups .bp-list > li .list-title a.coaches-home-link {
  color: #ef5d53;
}
body.buddypress.directory.groups .bp-list > li .list-title a.staff-home-link {
  color: #9ecd39;
}

body.buddypress.directory.groups .bp-list > li .list-title a.teachers-home-link:hover {
  border: 3px solid #63c8fe;
}
body.buddypress.directory.groups .bp-list > li .list-title a.coaches-home-link:hover {
  border: 3px solid #ef5d53;
}
body.buddypress.directory.groups .bp-list > li .list-title a.staff-home-link:hover {
  border: 3px solid #9ecd39;
}

body.buddypress.directory.groups .bp-list > li .list-title a.teachers-home-link:before {
  background-image: url(images/svg/teachers-icon.svg);
}
body.buddypress.directory.groups .bp-list > li .list-title a.coaches-home-link:before {
  background-image: url(images/svg/coaches-icon.svg);
}
body.buddypress.directory.groups .bp-list > li .list-title a.staff-home-link:before {
  background-image: url(images/svg/staff-icon.svg);
}

body.buddypress.directory.groups h1,
body.buddypress.bp-nouveau h1,
body.group-teachers.group-home #buddypress .teachers-gateway h2 {
  text-align: center;
  padding-top: 130px;
  position: relative;
  margin-top: 50px;
  color: #666;
  font-size: 32px;
}

body.buddypress.directory.groups h1:after {
  content: "Welcome to the New and Improved APL Website with the changes that you asked for!\AWe hope this makes your APL experience easier and more joyful!";
  white-space: pre-line; /* or 'pre' */
  clear: both;
  display: block;
  width: 80%;
  float: left;
  font-size: 16px;
  font-weight: 500;
  margin: 20px 10%;
  color: #666;
}

body.group-teachers.group-home #buddypress .teachers-gateway h2 {
  color: #63c8fe;
}

body.buddypress.directory.groups article > p,
body.buddypress.bp-nouveau article > p {
  color: #ccc;
  font-weight: 600;
  font-size: 17px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem; /* space between text and lines */
  font-weight: 500;
  position: relative;
}

body.buddypress.directory.groups article > p::before,
body.buddypress.bp-nouveau article > p::before,
body.buddypress.directory.groups article > p::after,
body.buddypress.bp-nouveau article > p::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #ccc; /* change to your preferred color */
}

body.buddypress.directory.groups h1:before,
body.buddypress.bp-nouveau h1:before,
body.group-teachers.group-home #buddypress .teachers-gateway h2:before {
  content: "";
  width: 200px;
  height: 131px;
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-image: url(images/svg/apl-icon.svg);
  background-size: 100% 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

body.my-account h1,
body.my-account h1:before,
body.my-account #brx-header,
body.my-account nav.main-navs.bp-navs ul:before {
  display: none !important;
}

body.my-account nav.main-navs.bp-navs ul {
  padding-left: 0 !important;
}

body.buddypress article {
  margin: auto;
}

body.buddypress.directory.groups #brx-content.wordpress,
body.buddypress.core #brx-content.wordpress,
body.group-teachers.group-home .teachers-gateway {
  max-width: calc(100% - 80px) !important;
  width: 600px !important;
}

body.group-teachers.group-home .teachers-gateway {
  margin: auto;
  text-align: center;
}

body.group-teachers.group-home .teachers-gateway p.aplp-teachers-gateway-text {
  margin-top: 20px;
  font-size: 24px;
  color: #666;
}

ul.aplp-teacher-gateway-mode-links {
  padding: 0;
  list-style: none;
  margin: 40px 0;
  display: flex;
  text-align: center;
  width: 100%;
  flex-direction: column;
}

ul.aplp-teacher-gateway-mode-links li {
  width: 100%;
  margin-bottom: 25px;
}

ul.aplp-teacher-gateway-mode-links li a {
  display: block;
  position: relative;
  background: #f5f5f7;
  flex: 1 1 auto; /* allows it to grow and shrink */
  width: 100%;
  height: 100%;
  padding: 28px;

  border-radius: 20px !important;
  border: 3px solid #ededed;

  font-size: 16px;
  font-weight: 600;
  color: #666;

  -webkit-box-shadow: 0px 0px 20px 3px rgba(0,0,0,0.01) !important;
  box-shadow: 0px 0px 20px 3px rgba(0,0,0,0.01) !important;
}

ul.aplp-teacher-gateway-mode-links li a:hover {
  color: #63c8fe;
  border: 3px solid #63c8fe;
}

ul.aplp-teacher-gateway-mode-links li a:before,
ul.aplp-teacher-gateway-mode-links li a:after {
  content: "";
  width: 23px;
  height: 23px;
  background: #63c8fe;
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  margin-top: 1px;
  margin-left: 1px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

ul.aplp-teacher-gateway-mode-links li a:after {
  background-color: transparent;
  background-image: url(images/svg/check-icon.svg);
  background-size: 60% 60% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

ul.aplp-teacher-gateway-mode-links li a:hover:before,
ul.aplp-teacher-gateway-mode-links li a:hover:after {
  opacity: 1;
}



/* Branch Nav */
body.buddypress.single-item.group-teachers:not(.group-home) #item-body {
  margin: 0;
}

.aplp-bp-branch-wrapper {
  border-radius: 0;
  border: none;
}

.aplp-bp-branch-wrapper .bp-branch-subnav {
  border: none !important;
  box-shadow: none !important;
}

.aplp-bp-branch-wrapper .bp-branch-subnav ul {
  list-style: none;
}



/* Logged In */
body.buddypress.directory.groups.logged-in #brx-content.wordpress {
  width: 880px !important;
}

form#bp-login-widget-form {
  margin-top: 40px;
  margin-bottom: 40px;
}

form#bp-login-widget-form .login-username,
form#bp-login-widget-form .login-password {
  margin-bottom: 10px;
  width: 100%;
  float: left;
  display: block;
}

form#bp-login-widget-form input[type="text"],
form#bp-login-widget-form input[type="password"] {
  border-radius: 8px;
}

#bp-login-widget-form label {
  color: #666;
}

form#bp-login-widget-form #bp-login-widget-rememberme {
  margin-right: 4px;
}

#buddypress.restricted-access {
  text-align: center;
  padding-top: 30px;
}

#buddypress.restricted-access a {
  color: #ef5d53;
  text-decoration: underline;
  font-weight: 600 !important;
  display: none !important;
}

form#bp-login-widget-form .login-remember label {
  font-weight: 400;
  font-size: 14px;
  color: #666;
}

form#bp-login-widget-form .login-submit {
  width: 100%;
  text-align: center;
  display: block;
  float: left;
}

#bp-login-widget-submit {
  padding: calc(.667em + 2px) calc(1.667em + 2px);
  border: none;
  font-weight: 600;
  background: #63c8fe;
}

#bp-login-widget-submit:hover {
  background: #333;
}

.bp-login-widget-pwd-link {
  text-align: center;
}

.bp-login-widget-pwd-link a {
  color: #63c8fe;
  font-size: 14px;
}

.bp-login-widget-pwd-link a:hover {
  text-decoration: underline;
}

/* Nav */
nav.main-navs.bp-navs,
.aplp-bp-branch-wrapper .bp-branch-subnav {
  background: #fff;
  border: none !important;
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.04) !important;
}

.aplp-mobile-context-icon {
  width: 34px;
  height: 34px;
  background: url(images/svg/context-menu.svg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  display: none;
  position: absolute;
  top: 50%;
  right: 30px;
  margin-top: 18px;
  cursor: pointer;
}

ul.aplp-open .aplp-mobile-context-icon {
  background: url(images/svg/context-close.svg);
  background-size: 80% 80%;
  background-repeat: no-repeat;
  background-position: center center;
}

.aplp-bp-branch-wrapper .bp-branch-subnav,
body.group-coaches.group-home nav.main-navs.bp-navs,
body.group-staff.group-home nav.main-navs.bp-navs {
  margin-bottom: 40px;
}

nav.main-navs.bp-navs ul,
.aplp-bp-branch-wrapper .bp-branch-subnav ul {
  display: flex !important;
  flex-direction: row !important;
  padding-left: 100px;
}

nav.main-navs.bp-navs ul,
.aplp-bp-branch-wrapper .bp-branch-subnav ul,
#aplp-content-wrap,
/* .aplp-resources-screen, */
#aplp-header > .brxe-container,
body.groups.forum #item-body,
body.my-account #item-body {
  width: calc(100% - 100px);
  max-width: calc(100% - 100px);
  margin: auto;
  position: relative;
}

body.groups.forum #item-body,
body.my-account #item-body {
  margin: auto !important;
}

body.group-coaches.forum #bbpress-forums > h2,
body.group-teachers.forum #bbpress-forums > h2 {
  position: relative;
  color: transparent;
  margin-top: 50px;
}

body.group-coaches.forum #bbpress-forums > h2:after {
  content: "Coaches: Discussion Board";
  position: absolute;
  color: #ef5d53;
  top: 0;
  left: 0;
}

body.group-teachers.forum #bbpress-forums > h2:after {
  content: "Teachers: Discussion Board";
  position: absolute;
  color: #63c8fe;
  top: 0;
  left: 0;
}

.aplp-posters-wrap {
  background: #fff;
  border-radius: 12px 12px 0 0 !important;
  padding: 30px 50px 60px 30px;
}

.aplp-posters-wrap .aplp-filters {
  display: none !important;
}

.aplp-posters-wrap .aplp_resource_card_content_wrap {
  padding-bottom: 0;
}

.aplp-resources-screen {
  width: 100%;
  max-width: 100%;
  position: relative;
}

.aplp-resources-screen.aplp-posters-screen {
  width: calc(100% - 100px);
  max-width: calc(100% - 100px);
  margin: auto;
}

nav.main-navs.bp-navs ul:before,
.aplp-bp-branch-wrapper .bp-branch-subnav ul:before {
  content: "";
  width: 80px;
  height: 52px;
  background: url(images/svg/apl-icon.svg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
  display: block;
  position: absolute;
  top: 10px;
  left: -4px;
}

nav.main-navs.bp-navs li.bp-groups-tab,
.aplp-bp-branch-wrapper .bp-branch-subnav ul li {
  float: left !important;
  display: inline-block !important;
  padding: 16px 0;
}

nav.main-navs.bp-navs li.bp-groups-tab a,
.aplp-bp-branch-wrapper .bp-branch-subnav ul li a {
  padding: 12px 16px;
  font-weight: 500 !important;
  letter-spacing: -0.25px;
  line-height: 14px !important;
  font-size: 15px !important;
  border-radius: 40px;
}

.aplp-bp-branch-wrapper .bp-branch-subnav ul li a {
  float: left;
}

nav.main-navs.bp-navs li.bp-groups-tab a:hover,
nav.main-navs.bp-navs li.bp-groups-tab a:focus,
.aplp-bp-branch-wrapper .bp-branch-subnav ul li a:hover,
.aplp-bp-branch-wrapper .bp-branch-subnav ul li a:focus {
  background: transparent;
}

nav.main-navs.bp-navs li.bp-groups-tab.current a,
body.groups.group-home #group-primary-nav li:first-child > a,
.aplp-bp-branch-wrapper .bp-branch-subnav ul li.current a {
  background: rgba(0, 0, 0, .05);
  color: #333;
}

body.group-teachers .aplp-bp-branch-wrapper .bp-branch-subnav ul li.current a,
body.group-teachers.teachers-branch-landing .aplp-bp-branch-wrapper .bp-branch-subnav ul li:first-child > a {
  background: rgba(99, 200, 254, .15);
  color: #63c8fe;
}
body.group-coaches nav.main-navs.bp-navs li.bp-groups-tab.current a,
body.groups.group-coaches.group-home #group-primary-nav li:first-child > a {
  background: rgba(239, 93, 83, .15);
  color: #ef5d53;
}
body.group-staff nav.main-navs.bp-navs li.bp-groups-tab.current a,
body.groups.group-staff.group-home #group-primary-nav li:first-child > a {
  background: rgba(158, 205, 57, .15);
  color: #9ecd39;
}

body.group-teachers nav.main-navs.bp-navs li.bp-groups-tab a:hover,
.aplp-bp-branch-wrapper .bp-branch-subnav ul li a:hover {
  color: #63c8fe;
}
body.group-coaches nav.main-navs.bp-navs li.bp-groups-tab a:hover {
  color: #ef5d53;
}
body.group-staff nav.main-navs.bp-navs li.bp-groups-tab a:hover {
  color: #9ecd39;
}

.aplp-blue-heading {
  color: #63c8fe;
}

body.group-staff #group-primary-nav li.bp-groups-tab:last-child {
  display: none !important;
}

.aplp-resources-screen.aplp-posters-screen .aplp-resource-card-filters-wrap {
  display: none !important;
}

.aplp-resources-screen.aplp-posters-screen .aplp_resource_card_img_wrap {
  padding-bottom: 133% !important;
}




/* NEW RESOURCE SCREEN STYLING  */

.aplp-resources-screen {
  display: flex;
  flex-direction: row;
}

.aplp-resources-screen.aplp-posters-screen {
  display: block;
  position: relative;
}

.aplp-resources-screen-aside {
  width: calc(21% - 50px);
  max-width: calc(21% - 50px);
  margin-left: 50px;
  position: relative;
}

.aplp-resources-screen-main {
  width: 79%;
  max-width: 79%;
  margin: 0;
  position: relative;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px 0 0 0 !important;
  padding: 30px 50px 60px 30px;
}

/* .facetwp-type-fselect {
  width: 100%;
  padding-right: 40px;
  box-sizing: border-box;
} */

.aplp-resources-screen-aside .fs-wrap,
.aplp-resources-screen-aside .fs-dropdown,
.aplp-resources-screen-aside .fs-label-wrap,
.aplp-resources-screen-aside .fs-option,
.aplp-resources-screen-aside .fs-search {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box;
}

.aplp-resources-screen-aside .fs-label {
  display: block;
  width: 100% !important;
}

.facetwp-template[data-name="resources_template"] {
  display: grid;
  align-items: initial;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
  clear: both;
}

.facetwp-template[data-name="posters_template"] {
  display: grid;
  align-items: initial;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 24px;
}

.aplp-resource-container {
  flex-direction: column;
  position: relative;
  align-self: stretch !important;
  width: 100%;
  min-height: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
}

.aplp_resource_card_img_wrap {
  background: #dbdbdb;
  display: block;
  overflow: hidden;
  position: relative;
  width: 100% !important;
  min-width: 100%;
  max-width: 100%;
  height: 0px !important;
  padding-bottom: 62% !important;

  border-radius: 8px !important;
  background-size: 60% 60% !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}

.aplp-resource-card.aplp_icon__document .aplp_resource_card_img_wrap {
  background: #63c8fe;
  background-image: url(images/svg/document-solo-icon.svg) !important;
}
.aplp-resource-card.aplp_icon__pdf .aplp_resource_card_img_wrap {
  background: #ef5d53;
  background-size: 55% 55% !important;
  background-image: url(images/svg/pdf-solo-icon.svg) !important;
}
.aplp-resource-card.aplp_icon__video .aplp_resource_card_img_wrap {
  background: #9ecd39;
  background-image: url(images/svg/video-solo-icon.svg) !important;
}
.aplp-resource-card.aplp_icon__book .aplp_resource_card_img_wrap {
  background: #aaeef9;
  background-image: url(images/svg/book-solo-icon.svg) !important;
}
.aplp-resource-card.aplp_icon__website .aplp_resource_card_img_wrap {
  background: #fcdddd;
  background-image: url(images/svg/website-solo-icon.svg) !important;
}
.aplp-resource-card.aplp_icon__image .aplp_resource_card_img_wrap {
  background: #fdd545;
  background-image: url(images/svg/image-solo-icon.svg) !important;
}

.aplp_resource_card_img_wrap img {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  object-fit: cover;
  object-position: top center;
}

.aplp-book-cover-wrap {
  position: absolute;
  width: auto;
  height: 90%;
  display: block;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);

  -webkit-box-shadow: 7px 26px 20px 5px rgba(0,0,0,0.2);
  box-shadow: 7px 26px 20px 5px rgba(0,0,0,0.2);
}

.aplp_resource_card_img_wrap .aplp-book-cover-wrap img {
  width: auto;
  max-width: none !important;
  height: 100%;
  float: left;
  position: relative;
  display: block;
  border-radius: 2px 3px 2px 3px;
  object-fit: fill;
}

.aplp-book-cover-wrap:after {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: url(images/cover-shadow.webp);
  background-size: 100% 100%;
  background-position: 0 0;
  background-repeat: no-repeat;
  border-radius: 2px 3px 2px 3px;
}

.aplp_resource_card_img_bg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  background: rgba(0, 0, 0, .15);
  opacity: 0;
}

.aplp-resource-card .aplp_resource_card_img_wrap:hover .aplp_resource_card_img_bg {
  opacity: 1;
}

.aplp-resource-card .aplp_resource_card_img_wrap:after {
  content: "";
  width: 100%;
  height: 75px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
}

.aplp-resource-card.aplp_icon__book .aplp_resource_card_img_wrap:after {
  opacity: .25 !important;
}

.aplp-resource-card.aplp_icon__website .aplp-resource-container.no-thumb .aplp_resource_card_img_wrap:after {
  opacity: .35 !important;
}

.aplp-resource-top-wrap {
  position: relative;
  padding: 8px 8px 0 8px;
  background: #f0f4f9;
  border-radius: 10px 10px 0 0 !important;
}

.aplp_resource_card_content_wrap {
  position: relative;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  padding: 23px 15px 15px 15px;
  background-color: #f0f4f9;
  flex-grow: 1;
  border-radius: 0 0 8px 8px !important;
  display: flex;
  flex-direction: column;
}

.aplp-resource-title-link {
  margin-top: 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.aplp-resource-title-link:hover {
  text-decoration: underline !important;
}

.aplp-filters {
  margin-top: auto;
  padding-top: 12px;
  width: calc(100% + 10px);
  border-top: 0.5px solid #ccc;
  margin-left: -5px;
  padding-left: 5px;
}

.aplp-resource-card .aplp-resource-card-filters-wrap {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.aplp-resource-card .aplp-resource-card-filters-wrap a {
  font-size: 12px;
  line-height: 1.1;
  font-weight: 600;
}

.aplp-resource-card .aplp-resource-card-filters-wrap a:hover {
  text-decoration: underline !important;
}

.aplp-resource-card .aplp-resource-card-filters-wrap a:hover {
  text-decoration: underline !important;
}

.aplp-resource-card-filters-wrap a.taxonomy-resource_type {
  color: #63c8fe; /* blue */
}

.aplp-resource-card-filters-wrap a.taxonomy-resource_format {
  color: #ef5d53; /* red */
}

.aplp-resource-card-filters-wrap a.taxonomy-who_type {
  color: #efbb18; /* yellow */
}

.aplp-resource-card-filters-wrap a.taxonomy-pillar {
  color: #9ecd39; /* green */
}

.aplp-resource-card-filters-wrap a.taxonomy-practice {
  color: #8155aa; /* purple */
}

.aplp-resource-card-filters-wrap a.taxonomy-6c {
  color: #ed891b; /* orange */
}

.aplp-resource-card-round-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  display: block;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  border: 2.5px solid #222;
  border-radius: 50% !important;
}

.aplp-resource-card-round-icon:after {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(images/svg/document-icon.svg);
  background-size: 90% 90% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.aplp-resource-card-round-icon.resource-icon-document {
  border-color: #518ff3;
}
.aplp-resource-card-round-icon.resource-icon-document:after {
  background-image: url(images/svg/document-icon.svg) !important;
}

.aplp-resource-card-round-icon.resource-icon-pdf {
  border-color: #ef5d53;
}
.aplp-resource-card-round-icon.resource-icon-pdf:after {
  background-image: url(images/svg/pdf-icon.svg) !important;
}

.aplp-resource-card-round-icon.resource-icon-video {
  border-color: #9ecd39;
}
.aplp-resource-card-round-icon.resource-icon-video:after {
  background-image: url(images/svg/video-icon.svg) !important;
  background-size: 82% 82% !important;
  background-position: center center !important;
}

.aplp-resource-card-round-icon.resource-icon-book {
  border-color: #aaeef9;
}
.aplp-resource-card-round-icon.resource-icon-book:after {
  background-image: url(images/svg/book-icon.svg) !important;
}

.aplp-resource-card-round-icon.resource-icon-website {
  border-color: #f4aeae;
}
.aplp-resource-card-round-icon.resource-icon-website:after {
  background-image: url(images/svg/website-icon.svg) !important;
}

.aplp-resource-card-round-icon.resource-icon-image {
  border-color: #fdd545;
}
.aplp-resource-card-round-icon.resource-icon-image:after {
  background-image: url(images/svg/image-icon.svg) !important;
}

.aplp-resource-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13.5px;
  color: #666;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 19px;
}

.aplp-readmore {
  margin-top: 4px;
  position: relative;
  margin-top: -19px;
  margin-bottom: 19px;
}

.readmore-link {
  font-size: 13px;
  color: #ef5d53;
  text-decoration: underline;
  cursor: pointer;
}

.readmore-tooltip {
  display: none;
  position: absolute;
  top: 22px;
  left: 0;
  z-index: 10;
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px 12px;
  width: 280px;
  font-size: 13px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.readmore-tooltip a {
  color: #ef5d53;
  text-decoration: underline !important;
  font-weight: bold;
}

.readmore-tooltip.visible {
  display: block;
}

/* Manual-excerpt readmores should always show */
.aplp-readmore.always-show {
  display: block !important;
}


/* Keep it open on hover */
.aplp-readmore:hover .readmore-tooltip,
.aplp-readmore .readmore-tooltip:hover {
  display: block;
}








/* END NEW RESOURCE SCREEN STYLING */



/* Accordions */

.aplp-accordion {
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 20px;
  width: calc(100% - 30px);
  margin-right: 30px;
  border-radius: 8px !important;
}

.aplp-accordion .facetwp-facet {
  margin-bottom: 0;
}

.aplp-accordion-header {
  width: 100% !important;
  text-align: left;
  padding: 12px 16px !important;
  font-weight: 500 !important;
  letter-spacing: -0.25px !important;
  font-size: 15px !important;
  line-height: 14px !important;
  border: none !important;
  outline: none !important;
  border-color: transparent !important;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #E0F4FF !important;
  color: #2fb8f4 !important;
  position: relative;
  text-align: left !important;
  line-height: 1.1 !important;
}

.aplp-accordion .facetwp-checkbox:before,
.aplp-accordion .facetwp-checkbox:after {
  content: "";
  width: 12px;
  height: 12px;
  overflow: hidden;
  background-image: url(images/checkbox-blue.webp);
  background-repeat: no-repeat !important;
  background-size: 100% 200% !important;
  background-position: 0 0 !important;
  display: block;
  position: absolute;
  top: 3px;
  left: 0;
}

.aplp-accordion .facetwp-checkbox:after {
  background-image: url(images/svg/check-icon.svg);
  background-repeat: no-repeat !important;
  background-size: 85% 85% !important;
  background-position: center center !important;
  opacity: 0;
}

.aplp-accordion .facetwp-checkbox.checked:before,
.aplp-accordion.aplp-accordion-blue .facetwp-checkbox.checked:before,
.aplp-accordion.aplp-accordion-red .facetwp-checkbox.checked:before,
.aplp-accordion.aplp-accordion-yellow .facetwp-checkbox.checked:before,
.aplp-accordion.aplp-accordion-green .facetwp-checkbox.checked:before,
.aplp-accordion.aplp-accordion-purple .facetwp-checkbox.checked:before,
.aplp-accordion.aplp-accordion-orange .facetwp-checkbox.checked:before {
  background-position: 0 100% !important;
}

.aplp-accordion .facetwp-checkbox.checked:after {
  opacity: 1;
}

.aplp-accordion-header:before {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: #000;
  opacity: 0;
}

.aplp-accordion-header:hover:before {
  opacity: .15;
}

.aplp-accordion-blue .aplp-accordion-header {
  /* background: #E0F4FF !important;
  color: #2fb8f4 !important; */
  background: #2fb8f4 !important;
  color: #fff !important;
}
.aplp-accordion.aplp-accordion-blue .facetwp-checkbox:before {
  background-image: url(images/checkbox-blue.webp) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 200% !important;
  background-position: 0 0 !important;
}
.aplp-accordion-blue .aplp-accordion-header:before {
  background: #2fb8f4 !important;
}

.aplp-accordion-red .aplp-accordion-header {
  /* background: #FCDDDD !important;
  color: #ef5d53 !important; */
  background: #ef5d53 !important;
  color: #fff !important;
}
.aplp-accordion.aplp-accordion-red .facetwp-checkbox:before {
  background-image: url(images/checkbox-red.webp) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 200% !important;
  background-position: 0 0 !important;
}
.aplp-accordion-red .aplp-accordion-header:before {
  background: #ef5d53 !important;
}

.aplp-accordion-yellow .aplp-accordion-header {
  /* background: #FFF7DA !important;
  color: #eab50c !important; */
  background: #fdd545 !important;
  color: #fff !important;
}
.aplp-accordion.aplp-accordion-yellow .facetwp-checkbox:before {
  background-image: url(images/checkbox-yellow.webp) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 200% !important;
  background-position: 0 0 !important;
}
.aplp-accordion-yellow .aplp-accordion-header:before {
  background: #eab50c !important;
}

.aplp-accordion-green .aplp-accordion-header {
  /* background: #ECF5D7 !important;
  color: #9ecd39 !important; */
  background: #9ecd39 !important;
  color: #fff !important;
}
.aplp-accordion.aplp-accordion-green .facetwp-checkbox:before {
  background-image: url(images/checkbox-green.webp) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 200% !important;
  background-position: 0 0 !important;
}
.aplp-accordion-green .aplp-accordion-header:before {
  background: #9ecd39 !important;
}

.aplp-accordion-purple .aplp-accordion-header {
  /* background: #F1E8F7 !important;
  color: #8155aa !important; */
  background: #8155aa !important;
  color: #fff !important;
}
.aplp-accordion.aplp-accordion-purple .facetwp-checkbox:before {
  background-image: url(images/checkbox-purple.webp) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 200% !important;
  background-position: 0 0 !important;
}
.aplp-accordion-purple .aplp-accordion-header:before {
  background: #8155aa !important;
}

.aplp-accordion-orange .aplp-accordion-header {
  /* background: #ffefe6 !important;
  color: #ed891b !important; */
  background: #ef9c48 !important;
  color: #fff !important;
}
.aplp-accordion.aplp-accordion-orange .facetwp-checkbox:before {
  background-image: url(images/checkbox-orange.webp) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 200% !important;
  background-position: 0 0 !important;
}
.aplp-accordion-orange .aplp-accordion-header:before {
  background: #ed891b !important;
}

.aplp-accordion-toggle {
  font-size: 18px !important;
  line-height: 14px !important;
  line-height: 1;
}

.aplp-accordion-content {
  padding: 15px 15px 10px 15px;
  float: left;
  width: 100%;
  box-sizing: border-box;
}

.facetwp-display-value,
.facetwp-counter {
  font-size: 14px;
  letter-spacing: -0.15px;
  line-height: 18px !important;
  float: left;
}

.facetwp-counter {
  font-size: 13px;
  line-height: 19px !important;
}

.aplp-accordion:not(.open) .aplp-accordion-content {
  display: none;
}

.aplp-accordion:not(.open) .aplp-accordion-toggle {
  content: '+';
}

.aplp-accordion .facetwp-checkbox {
  /* background-image: url(images/checkbox-blue.webp);
  background-size: 40px 40px; */
  background-image: none !important;
  position: relative;
  float: left;
  clear: both;
  display: block;
}

/* End Accordions */



/* Facet Toggle */


/* Wrapper: so FacetWP label sits above */
.facetwp-facet-resource_new {
    margin-bottom: 20px;
}

/* Hide the default checkbox */
.facetwp-facet-resource_new input[type="checkbox"] {
    display: none;
}

/* Toggle container */
.facetwp-facet-resource_new .facetwp-checkbox {
    position: relative;
    padding-left: 50px;
    cursor: pointer;
    font-size: 15px;
    line-height: 24px;
}

/* Slider background */
.facetwp-facet-resource_new .facetwp-checkbox:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 40px;
    height: 22px;
    background: #ccc;
    border-radius: 30px;
    transition: all 0.3s ease;
}

/* Slider knob */
.facetwp-facet-resource_new .facetwp-checkbox:after {
    content: "";
    position: absolute;
    left: 2px;
    top: 4px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* ON state (active) */
.facetwp-facet-resource_new .facetwp-checkbox.checked:before {
    background: #9ecd39;
}

.facetwp-facet-resource_new .facetwp-checkbox.checked:after {
    transform: translateX(18px);
}

.facetwp-facet.facetwp-facet-resource_new {
  margin-bottom: 50px;
}

.facetwp-facet-resource_new .facetwp-display-value,
.facetwp-facet-resource_new .facetwp-counter {
    margin-top: 3px;
}

.facetwp-facet-resource_new .facetwp-display-value {
  font-size: 0 !important; /* hide original */
}

.facetwp-facet-resource_new .facetwp-display-value::after {
    content: "Show new only";
    float: left;
    display: inline-block;
    font-size: 14px;
}



/* END Facet Toggle */


/* New Badge */

.aplp-new-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: #9ecd39;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 13px;
  padding: 6px 12px;
  border-radius: 40px;
}

/* END New Badge */



/* TO BE DELETED
-----------------------------
---------Temp Resource card stying
-----------------------------
----------------------------- */

/* .aplp-resource-card a:hover .aplp-resource-card_content_wrap {
  background: #ededed;
} */

/* .aplp-resource-card .aplp-resource-card_content_wrap {
  border-radius: 0 0 8px 8px !important;
} */

/* .aplp-resource-card .aplp-resource-card_content_wrap .brxe-post-excerpt p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;
} */

/* .aplp-resource-card .aplp_resource_card_img_wrap {
  background: #efefef;
  border-radius: 8px 8px 0 0 !important;
  background-size: 60% 60% !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
} */
/* .aplp_resource_card.aplp_icon__document .aplp_resource_card_img_wrap {
  background: #63c8fe;
  background-image: url(images/svg/document-solo-icon.svg) !important;
}
.aplp_resource_card.aplp_icon__pdf .aplp_resource_card_img_wrap {
  background: #ef5d53;
  background-size: 55% 55% !important;
  background-image: url(images/svg/pdf-solo-icon.svg) !important;
}
.aplp_resource_card.aplp_icon__video .aplp_resource_card_img_wrap {
  background: #9ecd39;
  background-image: url(images/svg/video-solo-icon.svg) !important;
}
.aplp_resource_card.aplp_icon__image .aplp_resource_card_img_wrap {
  background: #fdd545;
  background-image: url(images/svg/image-solo-icon.svg) !important;
} */

/* .aplp_resource_card .aplp_resource_card_img_wrap:after {
  content: "";
  width: 100%;
  height: 75px;
  background: linear-gradient(180deg,rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
} */

/* .aplp-resource-title-link:hover {
  text-decoration: underline !important;
} */

/* .aplp_resource_card_img_bg {
  background: rgba(0,0,0,.15);
  opacity: 0;
} */

/* .aplp_resource_card .aplp_resource_card_img_wrap:hover .aplp_resource_card_img_bg {
  opacity: 1;
} */

/* .aplp_resource_card .aplp-resource-card-filters-wrap {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.aplp_resource_card .aplp-resource-card-filters-wrap a {
  font-size: 12px;
  line-height: 1.1;
  font-weight: 600;
}

.aplp_resource_card .aplp-resource-card-filters-wrap a:hover {
  text-decoration: underline !important;
}

.aplp-resource-card-filters-wrap a.taxonomy-resource_type {
  color: #ef5d53;
}

.aplp-resource-card-filters-wrap a.taxonomy-resource_format {
  color: #63c8fe;
}

.aplp-resource-card-filters-wrap a.taxonomy-who_type {
  color: #efbb18;
}

.aplp-resource-card-filters-wrap a.taxonomy-pillar {
  color: #9ecd39;
}

.aplp-resource-card-filters-wrap a.taxonomy-6c {
  color: #8155aa;
}

.aplp-resource-card-filters-wrap a.taxonomy-practice {
  color: #ed891b;
}

.aplp-resource-card-round-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  display: block;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  border: 2.5px solid #222;
  border-radius: 50% !important;
}

.aplp-resource-card-round-icon:after {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(images/svg/document-icon.svg);
  background-size: 90% 90% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.aplp-resource-card-round-icon.resource-icon-document {
  border-color: #518ff3;
}
.aplp-resource-card-round-icon.resource-icon-document:after {
  background-image: url(images/svg/document-icon.svg) !important;
}

.aplp-resource-card-round-icon.resource-icon-pdf {
  border-color: #ef5d53;
}
.aplp-resource-card-round-icon.resource-icon-pdf:after {
  background-image: url(images/svg/pdf-icon.svg) !important;
}

.aplp-resource-card-round-icon.resource-icon-video {
  border-color: #9ecd39;
}
.aplp-resource-card-round-icon.resource-icon-video:after {
  background-image: url(images/svg/video-icon.svg) !important;
  background-size: 82% 82% !important;
  background-position: center center !important;
}

.aplp-resource-card-round-icon.resource-icon-image {
  border-color: #fdd545;
}
.aplp-resource-card-round-icon.resource-icon-image:after {
  background-image: url(images/svg/image-icon.svg) !important;
} */

/* Video Lightbox */

/* ===== Custom Video Lightbox ===== */

.custom-video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.custom-video-lightbox.visible {
  display: flex;
  opacity: 1;
}

/* ✅ Clickable translucent overlay */
.custom-video-lightbox .lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

/* ✅ Centered video container */
.custom-video-lightbox .lightbox-content {
  position: relative;
  z-index: 2;
  width: 80vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.custom-video-lightbox.visible .lightbox-content {
  transform: scale(1);
}

/* ✅ Responsive iframe */
.custom-video-lightbox iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ✅ Close button */
.custom-video-lightbox .lightbox-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  font-size: 1.8rem;
  line-height: 1;
  color: white;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease;
  text-align: center;
}

.custom-video-lightbox .lightbox-close:hover {
  background: rgba(0,0,0,0.9);
}


/* ------------------
---------------------
---------------------
--- Search ----------
---------------------
---------------------
---------------------
------------------ */

/* --- Search Wrapper --- */
.aplp-search-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  display: flex;
}

.aplp-search-wrap:before {
  content: "";
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background: #f5f5f7;
  border: 1px solid #f5f5f7;
  border-radius: 40px;
}

/* --- Input Field --- */
#aplp-search-input {
  width: 100%;
  padding: 12px 24px 12px 44px;
  border-top: 1px solid #f5f5f7;
  border-right: none;
  border-bottom: 1px solid #f5f5f7;
  border-left: 1px solid #f5f5f7;
  border-radius: 40px 0 0 40px;
  font-size: 16px;
  line-height: 1.4;
  background: #f5f5f7;
  transition: border-color 0.2s ease;
  flex: 1;
  position: relative;
  letter-spacing: -.25px;
  background-image: url(images/svg/search-icon.svg);
  background-repeat: no-repeat;
  background-size: 30px 30px;
  background-position: 11px 9px;
}

#aplp-search-input::placeholder {
  color: #666;
}

#aplp-search-input:focus {
  border-color: #0073aa; /* WP blue */
  outline: none;
}

/* --- Suggestion Box --- */
#aplp-search-suggestions {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 9999;
  overflow: hidden;
}

/* --- Suggestion Items --- */
#aplp-search-suggestions .suggestion-item {
  padding: 10px 12px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease;
}

#aplp-search-suggestions .suggestion-item:hover {
  background: #f4f4f4;
}

/* --- Optional: Make text never wrap weirdly --- */
#aplp-search-suggestions .suggestion-item {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Suggestions container already exists, now add thumbnail-specific styling */

#aplp-search-suggestions .suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f3f3f3;
}

#aplp-search-suggestions .suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-thumb-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suggestion-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggestion-text {
  font-size: 14px;
  line-height: 1.3;
}

#aplp-search-btn {
  white-space: nowrap;
  padding: 12px 24px !important;
  border: 1px solid #ef5d53 !important;
  border-radius: 40px !important;
  background: #ef5d53 !important;
  font-size: 16px !important;
  color: #fff !important;
  font-weight: 500 !important;
  cursor: pointer;
  position: relative;
}

#aplp-search-btn:hover {
  background: #ddd !important;
  border-color: #ddd !important;
}


/* --- For mobile friendliness (optional) --- */
@media (max-width: 480px) {
  .aplp-search-wrap {
    max-width: 100%;
  }
}


/* ------------------
---------------------
---------------------
--- END Search ------
---------------------
---------------------
---------------------
------------------ */



/* Filters and Clear Filters */

#aplp-active-filters {
    margin-bottom: 15px;
    display: block;
    width: 100%;
    float: left;
}

.aplp-filter-chip {
    display: inline-block;
    float: left;
    background: transparent;
    padding: 4.5px 26px 4.5px 10px;
    border-radius: 20px;
    font-size: 13px;
    line-height: 13px !important;
    border: 1px solid #999;
    position: relative;
    margin: 0 7px 5px 0 !important;
}

.aplp-filter-chip[data-facet="resource_type"] {
  border: 1px solid #63c8fe;
  color: #63c8fe;
}
.aplp-filter-chip[data-facet="format"] {
  border: 1px solid #ef5d53;
  color: #ef5d53;
}
.aplp-filter-chip[data-facet="who_students_are"] {
  border: 1px solid #f8c716;
  color: #f8c716;
}
.aplp-filter-chip[data-facet="the_pillars"],
.aplp-filter-chip[data-facet="resource_new"] {
  border: 1px solid #9ecd39;
  color: #9ecd39;
}
.aplp-filter-chip[data-facet="the_practices"] {
  border: 1px solid #8155aa;
  color: #8155aa;
}
.aplp-filter-chip[data-facet="the_practices"] {
  border: 1px solid #8155aa;
  color: #8155aa;
}
.aplp-filter-chip[data-facet="the_6cs"] {
  border: 1px solid #ef9c48;
  color: #ef9c48;
}



.aplp-filter-chip button {
  background: transparent !important;
  border: none !important;
  font-size: 19px !important;
  line-height: 13px !important;
  cursor: pointer;
  color: inherit !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}

body.group-coaches .aplp-filter-chip button,
body.group-staff .aplp-filter-chip button {
  right: 8px;
}

.aplp-filter-chip button:hover,
.aplp-filter-chip button:focus {
  background: transparent !important;
  opacity: .5;
}

/* .aplp-clear-all {
    background: #d9534f;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
} */

.aplp-resources-aside-heading {
  display: flex;
  flex-direction: row;
  margin-right: 30px;
  align-items: center;
}

.aplp-resources-aside-heading h3 {
  margin: 0 0 15px 0 !important;
  font-size: 22px;
}

#aplp-clear-all-sidebar,
.aplp-clear-all {
  margin-left: auto !important;
  margin-bottom: 10px !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  color: #999 !important;
  font-size: 13px !important;
  text-decoration: underline !important;
  visibility: hidden;
}

#aplp-clear-all-sidebar.aplp-visible,
.aplp-clear-all {
  visibility: visible;
}

.aplp-clear-all {
  margin-left: 5px !important;
  padding: 5px 0 0 0 !important;
  float: left !important;
}

#aplp-clear-all-sidebar:hover,
.aplp-clear-all:hover {
  color: #333 !important;
}

.aplp-aside-mobile-toggle {
  display: none;
  min-width: 40px;
  height: 40px;
  display: none;
  background: #63c8fe;
  border-radius: 0 12px 12px 0 !important;
  position: absolute;
  top: 0;
  left: 100%;
  padding: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
body.group-coaches .aplp-aside-mobile-toggle {
  background: #ef5d53;
}
body.group-staff .aplp-aside-mobile-toggle {
  background: #9ecd39;
}

.aplp-aside-mobile-toggle span {
  float: left;
  display: block;
  position: relative;
  padding-left: 30px;
}

.aplp-aside-mobile-toggle span:before {
  content: "";
  width: 20px;
  height: 20px;
  background: url(images/svg/filters.svg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  position: absolute;
  top: 0;
  left: 0;
}




/* Forum Updates */

#bbpress-forums #subscription-toggle a.subscription-toggle,
#bbp_topic_submit {
  position: relative;
  float: right;
  padding: 3px 20px 5px 35px;
  border-radius: 40px;
  border: 1px solid #ef5d53;
  background: #ef5d53;
  color: #fff;
  line-height: 25px;
  font-weight: 600;
  margin-bottom: 18px;
}

#bbpress-forums #subscription-toggle a.subscription-toggle {
  margin-top: -60px;
}

body.group-teachers #bbpress-forums #subscription-toggle a.subscription-toggle,
body.group-teachers #bbp_topic_submit {
  background: #63c8fe;
  border: 1px solid #63c8fe;
}

.bbp-pagination{
  color: #999;
  margin-top: 60px;
  float: left;
  width: 100%;
  display: block;
  border-top: 1px solid #999;
}

#subscription-toggle {
  color: transparent;
}

body.group-coaches.forum.single-item #bbpress-forums > h2:after {
  display: none;
}

body.group-coaches.forum #bbpress-forums > h2 {
    color: #ef5d53;
}

.bbpress-wrapper {
  overflow: visible !important;
}

/* #subscription-toggle span,
#subscription-toggle span a,
#subscription-toggle a {
  opacity: 1;
} */

#bbp_topic_submit {
  padding: 3px 20px 5px 20px;
}

#bbpress-forums #subscription-toggle a.subscription-toggle:hover {
  opacity: .6;
}

#bbpress-forums #subscription-toggle a.subscription-toggle:before {
  content: "";
  width: 20px;
  height: 20px;
  display: block;
  position: absolute;
  top: 6px;
  left: 12px;
  background-color: #fff;
  opacity: .5;
  -webkit-mask-image: url(images/svg/bell.svg) !important;
  mask-image: url(images/svg/bell.svg) !important;
}


#bbpress-forums #subscription-toggle .is-subscribed a.subscription-toggle:before {
  width: 16px;
  height: 16px;
  top: 8px;
  left: 14px;
  -webkit-mask-image: url(images/svg/close.svg) !important;
  mask-image: url(images/svg/close.svg) !important;
  background-color: #fff !important;
}

.bbp-forums {
  display: none !important;
}

#bbpress-forums {
    display: flex;
    flex-direction: column;
}

#bbpress-forums .bbp-topic-form {
    order: -1;
}

#bbpress-forums #subscription-toggle {
    order: -1;
}

#bbpress-forums .teachers-forum-message {
    order: -1;
}

.teachers-forum-message {
    background: rgba(99, 200, 254, .2);
    border: 1px solid #63c8fe;
    border-radius: 9px !important;
    padding: 10px;
    margin: 10px auto 30px auto;
    font-size: 14px;
    line-height: 1.4;
}

/* Hide new topic form initially */
/* #new-topic-0,
.bbp-topic-form {
    display: none;
} */

.bbp-topic-form {
  height: 45px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  width: 100%;
  width: 100%;
  padding: 0 0 40px 60px !important;
  margin-bottom: 0;
}

#bbpress-forums .bbp-template-notice.info {
  display: none !important;
}

.bbp-topic-form:before {
  content: "";
  width: calc(100% - 60px);
  height: 100%;
  position: absolute;
  top: 0;
  left: 60px;
  background: #fff;
  border: 1px solid #ef5d53;
  border-radius: 8px;
}

body.forum.group-teachers .bbp-topic-form:before {
  border: 1px solid #63c8fe;
}

body.forum.group-teachers .aplp_start_discussion_icon {
  background: #63c8fe;
}

body.group-staff #group-primary-nav #nav-forum-groups-li {
  display: none !important;
}

.bbp-topic-form form {
  /* border: 1px solid #ef5d53;
  border-radius: 8px; */
}

.aplp-new-discussion-avatar-wrap img.avatar {
  width: 45px;
  height: 45px;
  position: absolute;
  top: 0;
  left: 0;
  cursor: default !important;
}

/* .bbp-topic-form .bbp-form {
  height: 0;
  overflow: hidden;
  transition: all 0.4s linear;
} */

.bbp-topic-form.aplp-open .bbp-form {
  height: auto;
  padding: 0 30px 30px 30px !important;
  margin: 2px !important;
  position: relative;
  border: none !important;
}

.bbp-topic-form .bbp-form legend {
  display: none !important;
}

.bbp-topic-form input[type="checkbox"] {
  margin: 8px 5px 8px 0 !important;
}

.bbp-topic-form .checkbox-inline {
  margin-right: 8px !important;
}

/* Toggle container styling */
.bbp-new-topic-toggle {
    /* margin-bottom: 10px; */
    cursor: pointer;
    height: 50px;
    position: relative;
}

.bbp-toggle-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bbp-toggle-button {
    color: #fff;
    color: #000 !important;
    display: block !important;
    width: 100% !important;
    line-height: 16px !important;
    padding: 15px 10px 15px 40px !important;
    float: left !important;
    display: block !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border: none !important;
    cursor: pointer !important;
    text-align: left !important;
    background: transparent !important;
    cursor: text !important;
}

.bbp-toggle-button:after {
  content: "";
  width: 25px;
  height: 25px;
  background: url(images/svg/close.svg);
  background-size: 70% 70%;
  background-repeat: no-repeat;
  background-position: center center;
  display: none;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  opacity: .6;
}

.bbp-topic-form.aplp-open .bbp-toggle-button:after {
  display: block;
}

.bbp-toggle-avatar {
    border-radius: 50%;
}

.aplp_start_discussion_icon {
  width: 22px;
  height: 22px;
  display: block;
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef5d53;
  -webkit-mask-image: url(images/svg/edit.svg) !important;
  mask-image: url(images/svg/edit.svg) !important;
}

#bbpress-forums li.bbp-body ul.topic {
  margin-bottom: 15px;
  border: 1px solid #e5e5e5 !important;
  border-radius: 9px 9px 9px 9px;
  overflow: hidden;
  -webkit-box-shadow: 2px 5px 12px 0px rgba(0, 0, 0, 0.1) !important;
  -moz-box-shadow: 2px 5px 12px 0px rgba(0,0,0,0.1) !important;
  box-shadow: 2px 5px 12px 0px rgba(0, 0, 0, 0.1) !important;
  padding: 20px;
}

.bbp-topics {
  border: none !important;
  background: transparent !important;
}

.bbp-header {
  margin-bottom: 10px !important;
  border-radius: 9px !important;
}

.bbp-topic-title {
  font-size: 18px !important;
  font-weight: 600 !important;
}

.bbp-topic-avatar-wrap {
  margin: 0 10px 0 0;
  display: none !important;
}

.bbp-topic-form .bbp-topic-avatar-wrap {
  display: block !important;
}

#bbpress-forums li.bbp-body ul.topic .bbp-topic-avatar-wrap {
  display: inline-block !important;
}

.bbp-topic-avatar-wrap img {
  border-radius: 50% !important;
}





/* TO BE DELETED
-----------------------------
---------END Resource card stying
-----------------------------
----------------------------- */


/* ✅ Larger screens adjustments */
/* @media (max-width: 1150px) {

  nav.main-navs.bp-navs ul,
  .aplp-bp-branch-wrapper .bp-branch-subnav ul,
  #aplp-content-wrap,
  .aplp-resources-screen {
    width: 1100px;
  }

} */


@media (max-width: 1425px) {

  .facetwp-template[data-name="resources_template"],
  .facetwp-template[data-name="posters_template"] {
    grid-template-columns: repeat(3, 1fr);
  }

  .aplp-resources-screen-aside {
    width: calc(25% - 50px);
    max-width: calc(25% - 50px);
  }

  .aplp-resources-screen-main {
    width: 75%;
    max-width: 75%;
  }

}


@media (max-width: 1150px) {

  .facetwp-template[data-name="resources_template"],
  .facetwp-template[data-name="posters_template"] {
    grid-template-columns: repeat(2, 1fr);
  }

}



/* ✅ Mobile adjustments */
@media (max-width: 992px) {
  body.buddypress.directory.groups .bp-list {
    flex-direction: column;
  }
  body.buddypress.directory.groups .bp-list > li {
    width: calc(100% - 48px);
    margin-bottom: 40px;
  }
  body.buddypress.directory.groups h1:after {
    width: 90%;
    margin: 20px 5%;
    white-space: normal;
  }
  .aplp-mobile-context-icon {
    display: block;
    order: -1;
    top: 0;
  }
  nav.main-navs.bp-navs ul,
  .aplp-bp-branch-wrapper .bp-branch-subnav ul {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: 70px !important;
    padding: 70px 0 0 0 !important;
  }
  nav.main-navs.bp-navs ul:before,
  .aplp-bp-branch-wrapper .bp-branch-subnav ul:before {
    left: 30px;
  }
  nav.main-navs.bp-navs ul li,
  .aplp-bp-branch-wrapper .bp-branch-subnav ul li,
  nav.main-navs.bp-navs li.bp-groups-tab {
    padding: 0 !important;
    display: none !important;
    border-bottom: 1px solid rgba(255,255,255,.5);
    background: rgba(99, 200, 254, .15);
  }
  .buddypress-wrap .single-screen-navs li {
    border-bottom: 1px solid rgba(255,255,255,.5);
  }
  body.group-coaches nav.main-navs.bp-navs ul li,
  body.group-coaches .aplp-bp-branch-wrapper .bp-branch-subnav ul li {
    background: rgba(239, 93, 83, .15);
  }
  body.group-staff nav.main-navs.bp-navs ul li,
  body.group-staff .aplp-bp-branch-wrapper .bp-branch-subnav ul li {
    background: rgba(158, 205, 57, .15);
  }
  nav.main-navs.bp-navs ul.aplp-open li,
  .aplp-bp-branch-wrapper .bp-branch-subnav ul.aplp-open li {
    display: inline-block !important;
  }
  nav.main-navs.bp-navs li.bp-groups-tab a,
  .aplp-bp-branch-wrapper .bp-branch-subnav ul li a {
    padding: 20px 30px;
    width: 100%;
    border-radius: 0;
  }
  #aplp-header > .brxe-container {
    width: 100%;
    max-width: 100%;
    padding-left: 30px;
    padding-right: 30px;
  }
  #aplp-active-cover {
    content: "";
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0,0,0,.7);
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s linear;
  }
  .aplp-resources-screen.aplp-open #aplp-active-cover {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  .aplp-resources-screen-aside {
    z-index: 10000;
    position: absolute;
    top: -15px;
    left: 0;
    padding: 30px;
    margin: 0;
    width: calc(100% - 100px);
    max-width: calc(100% - 100px);
    background: #efefef;
    transform: translateX(-100%);

    transition: all 0.3s ease;
  }
  .aplp-resources-screen.aplp-open .aplp-resources-screen-aside {
    transform: translateX(0);
  }
  .aplp-resources-screen-main {
    width: calc(100% - 60px);
    max-width: calc(100% - 60px);
    margin: 50px auto auto auto;
    border-radius: 12px 12px 0 0 !important;
    padding: 30px 30px 60px 30px;
  }
  .aplp-resources-screen.aplp-posters-screen {
    width: calc(100% - 60px);
    max-width: calc(100% - 60px);
  }
  .aplp-posters-wrap {
    padding: 30px 30px 60px 30px;
  }
  .aplp-aside-mobile-toggle {
    display: block;
  }

}



/* ✅ Mobile adjustments */
@media (max-width: 600px) {

  .aplp-resources-screen-main {
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
    padding: 20px 20px 60px 20px;

  }

  .facetwp-template[data-name="resources_template"],
  .facetwp-template[data-name="posters_template"] {
    grid-template-columns: repeat(1, 1fr);
  }

  .aplp-resources-screen.aplp-posters-screen {
    width: calc(100% - 40px);
    max-width: calc(100% - 40px);
  }
  .aplp-posters-wrap {
    padding: 20px 20px 60px 20px;
  }

}
