/* WordPress Block Styles for Membership Page */
/* Custom CSS to fix the left cutoff */
body {
  /* Ensure a minimum of 1rem (16px) padding on the sides of the browser window */
  padding-left: 1rem !important; 
  padding-right: 1rem !important;
  
  /* Set a maximum width for all content and center it */
  max-width: 1400px;
  margin-left: auto !important; /* Centers the content block */
  margin-right: auto !important;
}

/* HEADER CONTAINER */
.header-bg {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 24px;
  background-color: #f7fdd3;
  border-radius: 50px;      /* Rounded rectangle */
  border: 1px solid #ddd;   /* subtle border */
  box-shadow: 0 6px 18px rgba(0,0,0,0.12); /* soft shadow */

  margin-top: 20px ;     
  margin-bottom: 20px ;       /* center on page with some top/bottom spacing */
}

/* LOGO + TITLE */
.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* LOGO */
.header-logo {
  height: 50px;
  width: 50px;
  border-radius: 50%;      /* keeps logo round */
}

/* SITE TITLE */
.site-title {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

/* NAVIGATION */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .header-bg {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .site-title {
    font-size: 20px;
  }

  .header-logo {
    height: 40px;
    width: 40px;
  }

  .header-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Ensure no negative margins from old WP styles push content off screen */
@media (min-width: 782px) {
.wp-block-group, .wp-block-columns {
  margin-left: 0.5em !important;
  margin-right: 0.5em !important;
  padding-left: 0.5em;
  padding-right: 0.5em;
}
}

/* Reset and base styles */
.set-page {
  max-width: 100vw;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* WordPress Block Group */
.wp-block-group {
  box-sizing: border-box;
}

.has-global-padding {
  padding: var(--wp--preset--spacing--30, 1.5rem);
}

.is-layout-constrained {
  max-width: 100%;
}

.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
}

.is-layout-flow {
  display: flow-root;
}

.wp-block-columns {
  display: flex;
  margin-bottom: 1.75em;
  box-sizing: border-box;
  flex-wrap: wrap !important;
  align-items: normal !important;
}

@media (min-width: 782px) {
  .wp-block-columns {
    flex-wrap: nowrap !important;
  }
}

.wp-block-column {
  flex-grow: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
}


@media (max-width: 782px) {

.wp-block-group, .wp-block-columns {
  margin-left: 0px !important;
  margin-right: 0px !important;
}
  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 0;
    flex-grow: 1;
  }
}

/* Background colors */
.has-tertiary-background-color {
  background-color: #F6F6F6;
}

.has-base-background-color {
  background-color: #ffffff;
}

.has-background {
  padding: 1.25em 2.375em;
}

/* Text alignment */
.has-text-align-center {
  text-align: center;
}

.has-text-align-right {
  text-align: right;
}

/* Font sizes */
.has-small-font-size {
  font-size: 0.875em;
}

.has-medium-font-size {
  font-size: 1.125em;
}

/* Colors */
.has-primary-color {
  color: #ff9c21;
}

.has-secondary-color {
  color: #345C00;
}

.has-text-color {
  color: inherit;
}

/* Alignment */
.alignfull {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.aligncenter {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Member Button */
.Memberbutton {
  text-align: center;
  margin: 2em 0;
}

.Memberbutton a {
  display: inline-block;
  padding: 1em 2em;
  background-color: #ff9c21;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
  font-size: 1.1em;
}

.Memberbutton a:hover {
  background-color: #e6891a;
  text-decoration: none;
}

/* Discount Card */
.discount-card {
  border-radius: 15px;
  padding: var(--wp--preset--spacing--30, 1.5rem);
  margin: 2em 0;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Offer Category Links */
.offer_cat {
  text-align: center;
  margin: 1em 0;
}

.offer_cat a {
  display: inline-block;
  padding: 0.75em 1.5em;
  background-color: #345C00;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  font-weight: 500;
}

.offer_cat a:hover {
  background-color: #2a4a00;
  text-decoration: none;
}

/* Images */
.wp-block-image {
  margin: 1em 0;
}

.wp-block-image img {
  height: auto;
  max-width: 100%;
  vertical-align: bottom;
}

.wp-block-image.aligncenter {
  text-align: center;
}

.wp-block-image.aligncenter img {
  display: block;
  margin: 0 auto;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  margin-top: 2em;
  margin-bottom: 1em;
  font-size: 1.5em;
}

h4 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-size: 1.25em;
}

h4.has-text-align-center {
  line-height: 2;
}

/* Lists */
ol, ul {
  margin: 1em 0;
  padding-left: 2em;
}

li {
  margin: 0.5em 0;
}

/* Paragraphs */
p {
  margin: 1em 0;
  line-height: 1.6;
}

/* Links */
a {
  color: #345C00;
  text-decoration: underline;
}

a:hover {
  color: #ff9c21;
  text-decoration: underline;
}

/* Links in buttons should not have underline */
.Memberbutton a,
.offer_cat a,
.discount-card a {
  text-decoration: none;
}

/* Spacing utilities */
.wp-block-spacer {
  clear: both;
}

/* Content justification */
.is-content-justification-center {
  justify-content: center;
}

/* Strong text */
strong {
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .membership-page {
    padding: 10px;
  }
  
  .has-global-padding {
    padding: 1rem;
  }
  
  .wp-block-columns {
    flex-direction: column;
  }
  
  .wp-block-column {
    flex-basis: 100% !important;
  }
  
  .discount-card {
    padding: 1rem;
  }
  
  .Memberbutton a {
    padding: 0.75em 1.5em;
    font-size: 1em;
  }
}

/* Figure styles */
figure {
  margin: 1em 0;
}

figure.wp-block-image {
  margin: 1em auto;
}

/* Superscript */
sup {
  font-size: 0.8em;
  vertical-align: super;
}

/*navbar*/
.navbar {
  padding: 12px 24px;
  position: sticky; /* optional: makes it stick to top */
  top: 0;
  z-index: 999;
}

/* LIST RESET */
.navbar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  
  display: flex;
  gap: 24px;           /* spacing between menu items */
  align-items: center;
}

/* MENU ITEM */
.navbar-item {
  margin: 0;
  padding: 0;
}

/* LINK STYLE */
.navbar-link {
  text-decoration: none;
  padding: 8px 4px;
  font-size: 16px;
  font-weight: 500;
  
  color: #333;
  transition: all 0.2s ease;
  position: relative;
}

.navbar-link:hover {
  text-decoration: none; /* ensure underline stays removed */
}

/* Underline hover (clean & classy) */
.navbar-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #4fa503;   /* your highlight color */
  transition: width 0.25s ease;
}

.navbar-link:hover::after {
  width: 100%;
}

/* ACTIVE LINK (optional if you set .IsCurrent) */
.navbar-link.active,
.navbar-link[aria-current="page"] {
  color: #0077cc;
  font-weight: 600;
}

/* RESPONSIVE MOBILE STACK */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 16px;
  }

  .navbar-list {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Only style the LinkTree menu item */
.navbar-link-external-link .navbar-link {
  padding: 8px 14px;
  border-radius: 8px;

  background: #0077cc;
  color: #ffffff !important;
  font-weight: 600;

  border: 2px solid #005fa3;
  box-shadow: 0 3px 8px rgba(0,0,0,0.10);

  transition: all 0.25s ease;
}

/* Hover effect */
.navbar-link-external-link .navbar-link:hover {
  background: #005fa3;
  border-color: #004c88;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

/* Optional tap effect */
.navbar-link-external-link .navbar-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
