/*
Theme Name: Woffice Child
Description: Child theme for Woffice
Author: Alkaweb Team
Template: woffice
*/


/*
 * prevent content from being to large on big screens
 */

#content {
  max-width: 1600px;
}


/*
 * default styles for titles
 */

h2, h3, h4, h5, h6 {
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

.page-template-default h2,
.page-template-default h3,
.page-template-default h4,
.page-template-default h5,
.page-template-default h6,
.post-template-default h2,
.post-template-default h3,
.post-template-default h4,
.post-template-default h5,
.post-template-default h6 {
  font-weight: 300;
}


/*
 * default styles for forms
 */

.wpforms-form input[type=text],
.wpforms-form input[type=email],
.wpforms-form textarea {
  border-width: 1px !important;
}

.wpforms-form label {
  font-weight: 600 !important;
}


/*
 * post grid default
 */

.rt-detail {
  background-color: transparent !important;
}

.rt-pagination .pagination > .active > a,
.rt-pagination .pagination > .active > span, .rt-pagination .pagination > .active > a:hover,
.rt-pagination .pagination > .active > span:hover,
.rt-pagination .pagination > .active > a:focus,
.rt-pagination .pagination > .active > span:focus {
  background-color: #a88430;
  border-color: #a88430;
}


/*
 * vertical align banner
 */

@media only screen and (min-width: 993px) {
  #featuredbox .featured-background {
    background-attachment: scroll;
  }
}


/*
 * vertical align thumbnail
 */

.blog-item > .intern-thumbnail > a,
article > .intern-thumbnail {
  display: flex;
  align-items: center;
}

article > .intern-thumbnail {
  height: auto !important;
  max-height: 350px;
}

article > .intern-thumbnail picture {
  width: 100%;
}


/*
 * settings for success / error messages
 */

/* wp-forms */
.wpforms-confirmation-container-full.wpforms-confirmation-scroll {
  background-color: #3cb371;
}

.wpforms-confirmation-container-full.wpforms-confirmation-scroll > p{
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
}

/* buddypress */
body.bp-user.my-account #woffice-alerts-wrapper .woffice-main-alert {
  display: none;
}

.bp-feedback.bp-messages.bp-template-notice.success span.bp-icon {
  background-color: #3cb371;
}

.bp-feedback.bp-messages.bp-template-notice.success p {
  font-weight: 600 !important;
  color: #3cb371;
}

.bp-feedback.bp-messages.bp-template-notice.error span.bp-icon {
  background-color: #ff7f50;
}

.bp-feedback.bp-messages.bp-template-notice.error p {
  font-weight: 600 !important;
  color: #ff7f50;
}


/*
 * artificially hide some buddypress options !! should be done with remove filter
 */

li#settings-personal-li {
  display: none !important;
}

#profile-edit-form p.field-visibility-settings-notoggle {
  display: none;
}


/*
 * buddypress profile sidebar links
 */

.member-header-actions {
  padding: 0 1em;
}


/*
 * buddypress profile sidebar email
 */

#item-header-email > p {
  font-size: 0.85em;
}


/*
 * buddypress tabs for edit profile
 */

#main-content #buddypress ul.button-nav li a {
  border: 2px solid #a88430;
}

#main-content #buddypress ul.button-nav li:not(.current) a {
  background-color: #ffffff !important;
  color: #a88430;
}


/*
 * force break word on long strings on profile
 */

.profile .bp-widget .profile-fields {
  word-break: break-word;
}


/*
 * default styles for events calendar
 */

/* remove extra padding around calendar */
.tribe-events-l-container {
  padding: 0 !important;
}

/*  */
a.tribe-events-c-ical__link:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* hide view type choice because only one is enabled */
.tribe-events-c-events-bar {
  display: none !important;
}

/* show alert when day has event */
em.tribe-events-calendar-month__mobile-events-icon--event {
  position: absolute;
  top: 20px;
}

/* align link nav on button nav for months */
.tribe-events a.tribe-events-c-top-bar__nav-link {
  padding: 10px 18px;
  margin: 15px 0;
}

/* remove blue border bottom under events calendar links */
.tribe-events a {
  border: none !important;
}

/* custom style for widget view more link */
.tribe-events-widget-events-list__view-more {
  text-align: center;
}

.tribe-events-widget .tribe-events-widget-events-list__view-more-link {
  text-transform: none !important;
}


/*
 * artificially hide drag icon for preventing from reordering tasks in project
 */

.woffice-task .drag-handle {
  display: none;
}


/*
 * adapt some specific filtering and searching elements
 */

/* prevent text from being cut */
select#woffice-project-date-filter,
select#members-order-by,
input#dir-members-search,
button#dir-members-search-submit {
  height: 50px !important;
}

/* remove effects on hover */
.buddypress-wrap form#dir-members-search-form:hover {
  border: 1px solid #eee !important;
}

.buddypress-wrap .select-wrap:hover {
    border-color: #eee !important;
}

/* arrange search and filter for buddypress */
#main-content #buddypress .subnav-filters {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.buddypress-wrap .subnav-filters:after,
.buddypress-wrap .subnav-filters:before {
  content: none;
}

.buddypress-wrap .subnav-filters .component-filters {
  flex: 1 0 auto;
}

#main-content #buddypress .subnav-filters .bp-search form {
    min-width: unset;
}

#main-content #buddypress .subnav-filters .bp-search input[type=search] {
  width: 220px !important;
}

#main-content #buddypress .subnav-filters .bp-search button[type=submit] {
  width: 60px;
}

.buddypress-wrap .subnav-filters .component-filters,
.buddypress-wrap .subnav-filters .last {
  float: none !important;
}

#main-content #buddypress .select-wrap select {
  margin-left: auto;
}


/*
 * adapt buttons for password reset
 */

.lostpassword-submit,
.resetpass-submit {
  margin-left: -5px;
}

.lostpassword-submit > input[type=submit],
.resetpass-submit > input[type=submit] {
  width: 100%;
}
