/*
 Theme Name:   GeneratePress - United Earth
 Theme URI:    https://generatepress.com
 Description:  GeneratePress child theme for United Earth sites
 Author:       KAA
 Author URI:   https://aakerro.no
 Template:     generatepress
 Version:      0.1
*/

/* Disable underline on links globally*/
a {
  text-decoration: none; /* Remove underline from links */
}

/* Fix style problem in off-canvas menu  */
.slideout-navigation button.slideout-exit,
.main-navigation .main-nav ul li,
.menu-toggle,
.main-navigation .menu-bar-item a {
  padding-left: 10px !important;
  padding-right: 10px !important;
  line-height: 30px !important;
}

/* Increase space between list items inside posts and pages only */
.entry-content ul li,
.entry-content ol li {
  margin-bottom: 10px; /* Adjust the bottom margin as needed */
}

/* Ensure consistent spacing above the first item in a nested list within content */
.entry-content ul li:first-child,
.entry-content ol li:first-child {
  margin-top: 10px; /* Adjust the top margin to match the bottom spacing */
}

/* create horizontal separator lines in the Off Canvas menu using "#" in the Custom Link */
#generate-slideout-menu .slideout-menu .menu-separator a {
  display: block;
  pointer-events: none;
  cursor: default;
  text-align: left;
  border-bottom: 1px solid #000;
  /* Adjust the color as needed */
  height: 0;
  color: transparent;
  /* Makes text invisible */
  font-size: 0;
  /* Alternative: sets the font size to zero */
  padding: 0px 0;
  /* Adjust padding as needed */
}

/* Show the menu item on desktop screens (min-width: 1025px and above) */
@media (min-width: 1025px) {
  .show-desktop {
    display: block;
  }
}

@media (max-width: 1024px) {
  .show-desktop {
    display: none;
  }
}

/* Show the menu item on tablet screens (between 769px and 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .show-tablet {
    display: block;
  }
}

@media (min-width: 1025px), (max-width: 768px) {
  .show-tablet {
    display: none;
  }
}

/* Show the menu item on mobile screens (max-width: 768px) */
@media (max-width: 768px) {
  .show-mobile {
    display: block;
  }
}

@media (min-width: 769px) {
  .show-mobile {
    display: none;
  }
}

/* WIDGET STYLES */

/* Basic widget list styling */
.widget ul li {
  list-style-type: none;
  position: relative;
  margin-bottom: 1em;  /* Increased from .5em to 1em for more spacing */
  font-size: 15px;
}

/* Recent Replies specific styling - for the author + timestamp format */
.widget ul li:has(+ .bbp-meta),
.widget ul li .bbp-author-name {
  font-size: 13px;
  line-height: 1.4;
}

.widget ul li .bbp-meta {
  font-size: 12px;
  color: var(--global-color-9);
  margin-left: 5px;
}

/* If avatars are present */
.widget ul li img.avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
