/*
Theme Name: Wildfern
Theme URI: https://flythemes.net/wordpress-themes/wildfern-fse-wordpress-theme/
Author: Flythemes
Author URI: https://flythemes.net
Description: Wildfern is a modern, responsive full site editing WordPress theme.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0.2
License: GNU General Public License
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
Text Domain: wildfern
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

.is-style-wf-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.is-style-wf-card {
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 24px;
}

.wp-site-blocks > header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--wp--preset--color--background);
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.wp-block-query .wp-block-post-featured-image img {
  border-radius: 8px;
}

@media (max-width: 782px) {
  .is-style-wf-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

.bs-hero .wp-block-cover__inner-container {
  padding-top: 80px;
  padding-bottom: 80px;
}

.bs-cards > .wp-block-column > .wp-block-group.bs-card,
.bs-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bs-cards > .wp-block-column > .wp-block-group.bs-card:hover,
.bs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 39, 72, 0.12);
}

/* Card readability: keep text high contrast on light cards */
.bs-card {
  color: var(--wp--preset--color--text) !important;
  background-color: #ffffff;
}

.bs-card h1,
.bs-card h2,
.bs-card h3,
.bs-card h4,
.bs-card h5,
.bs-card h6,
.bs-card p,
.bs-card li,
.bs-card span {
  color: var(--wp--preset--color--text) !important;
}

.bs-card .has-muted-text-color {
  color: #4b5563 !important;
}

.bs-card .has-primary-color {
  color: var(--wp--preset--color--primary) !important;
}

.bs-card a,
.bs-card a:visited {
  color: var(--wp--preset--color--primary) !important;
  text-decoration: underline;
}

.bs-card a:hover {
  color: #236865 !important;
}

/* Card button readability on Events/Get Involved pages */
.bs-card .wp-block-button .wp-block-button__link,
.bs-cards .wp-block-button .wp-block-button__link {
  color: #ffffff !important;
}

.bs-card .wp-block-button .wp-block-button__link:visited,
.bs-cards .wp-block-button .wp-block-button__link:visited {
  color: #ffffff !important;
}

.bs-card .wp-block-button.is-style-outline .wp-block-button__link,
.bs-cards .wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--wp--preset--color--primary) !important;
  border-color: var(--wp--preset--color--primary) !important;
  background: #ffffff !important;
}

.bs-card .wp-block-button.is-style-outline .wp-block-button__link:hover,
.bs-cards .wp-block-button.is-style-outline .wp-block-button__link:hover {
  color: #ffffff !important;
  background: var(--wp--preset--color--primary) !important;
}

.bs-quote {
  border-left: 4px solid var(--wp--preset--color--primary);
  padding-left: 18px;
}

.bs-site-header .wp-block-site-title a,
.bs-site-header .wp-block-navigation-item__content,
.bs-site-footer a {
  color: #ffffff;
}

.bs-site-header .wp-block-navigation-item__content:hover,
.bs-site-footer a:hover {
  color: var(--wp--preset--color--accent);
}

.bs-site-header .wp-block-navigation__submenu-container {
  background: #0f2748;
  border-top: 2px solid var(--wp--preset--color--accent);
}

.bs-site-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}

/* Header dropdown readability fallback for saved template-part variants */
header .wp-block-navigation .wp-block-navigation__submenu-container,
.wp-site-blocks > header .wp-block-navigation .wp-block-navigation__submenu-container {
  background-color: #0f2748 !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:visited,
.wp-site-blocks > header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.wp-site-blocks > header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:visited {
  color: #ffffff !important;
  opacity: 1 !important;
}

header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.wp-site-blocks > header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--accent) !important;
}

.bs-site-footer ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

/* Improve legibility on image heroes across all updated pages */
.bs-hero .wp-block-cover__background {
  opacity: 0.66 !important;
}

.bs-hero h1,
.bs-hero h2,
.bs-hero h3,
.bs-hero h4,
.bs-hero p {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

/* Make outline buttons readable on dark hero backgrounds */
.bs-hero .wp-block-button.is-style-outline .wp-block-button__link {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.bs-hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
}

/* Footer readability: force clear link and heading contrast */
.bs-site-footer,
.bs-site-footer p,
.bs-site-footer li,
.bs-site-footer h1,
.bs-site-footer h2,
.bs-site-footer h3,
.bs-site-footer h4,
.bs-site-footer h5,
.bs-site-footer h6 {
  color: #ffffff;
}

.bs-site-footer {
  background: #0f2748 !important;
}

.bs-site-footer * {
  opacity: 1 !important;
}

.bs-site-footer .wp-block-navigation-item__content,
.bs-site-footer .wp-block-navigation-item__content:visited,
.bs-site-footer .wp-block-list a,
.bs-site-footer .wp-block-list a:visited,
.bs-site-footer .wp-block-social-link-anchor,
.bs-site-footer a,
.bs-site-footer a:visited {
  color: #ffffff !important;
  text-decoration: none;
}

.bs-site-footer a {
  border-bottom: 1px solid transparent;
}

.bs-site-footer .wp-block-navigation-item__content:hover,
.bs-site-footer .wp-block-list a:hover,
.bs-site-footer a:hover {
  color: var(--wp--preset--color--accent) !important;
  border-bottom-color: var(--wp--preset--color--accent);
}

.bs-site-footer .wp-block-site-title a {
  color: #ffffff !important;
}

/* Fallback: ensure any footer variant stays readable */
footer,
footer .wp-block-group {
  color: #ffffff;
}

footer .has-text-color,
footer .has-muted-text-color,
footer .wp-block-heading,
footer .wp-block-site-title,
footer .wp-block-site-title a,
footer p,
footer li,
footer span {
  color: #ffffff !important;
}

footer a,
footer a:visited,
footer .wp-block-navigation-item__content,
footer .wp-block-navigation-item__content:visited {
  color: #ffffff !important;
}

footer .wp-block-separator {
  border-color: rgba(255, 255, 255, 0.35) !important;
  background-color: rgba(255, 255, 255, 0.35) !important;
}

footer a:hover,
footer .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--accent) !important;
}

.bs-discount-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 18px;
}

.bs-discount-filter {
  border: 1px solid #b8bec6;
  border-radius: 999px;
  background: #ffffff;
  color: #102a43;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  padding: 10px 14px;
}

.bs-discount-filter.is-active,
.bs-discount-filter:hover {
  background: #9f2241;
  border-color: #9f2241;
  color: #ffffff;
}

.bs-discount-table-wrap {
  overflow-x: auto;
}

.bs-discount-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.bs-discount-table th,
.bs-discount-table td {
  border: 1px solid #d3d7dd;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.bs-discount-table th {
  background: #f5f7fa;
  color: #102a43;
  font-size: 0.9rem;
}

.bs-discount-table td {
  color: #243b53;
  font-size: 0.95rem;
}

.bs-anchor-offset {
  display: block;
  position: relative;
  top: -96px;
  visibility: hidden;
}