/* 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: 1200px;
  margin-left: auto; /* Centers the content block */
  margin-right: auto;
}

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

/* Reset and base styles */
.membership-page {
  max-width: 1200px;
  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;
}

/* 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;
}
