/* Parchment background and decorative border */
body {
  margin: 0;
  font-family: var(--font);
  background: url('../images/parchment-texture.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--body-color);
}
h1 {
  font-family: 'MedievalSharp', serif;
  font-size: 3rem;        /* tweak size as needed */
  letter-spacing: 0.05em; /* a little breathing room */
  color: var(--heading-color);
}

.section-nav {
  background: var(--hero-banner-bg);
  padding: 1rem 0;
}
.section-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.section-nav li + li {
  margin-left: 2rem;
}
.section-nav a {
  color: var(--white);
  text-transform: uppercase;
  font-family: var(--font);
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.section-nav a:hover {
  opacity: 0.7;
}
.hero {
  text-align: center;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  /* ensure full-bleed border */
  padding: 4rem 1rem;
  border:  40px solid transparent;
  border-image-source: url('../images/floral-border.png');
  border-image-slice: 210;
  border-image-repeat: round;
}
.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: bold;
  color: var(--heading-color);
}
.hero-content .dates {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
}

.actions .btn {
  margin: 0 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.actions .btn-primary {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border: none;
}

.actions .btn-secondary {
  background-color: var(--zones-teaser-bg) !important; /* or another accent var */
  color: var(--body-color) !important;
  border: none;
}

.realms {
  margin: 4rem 0;
}
.realm-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* enlarge the icon to roughly 3× the old size, up to 300 px wide */
.realm-card img {
  width: 100%;
  max-width: 300px;   /* or whatever fixed px you prefer */
  height: auto;
  margin-bottom: 1rem;
}

.realm-card h3 {
  font-family: 'Cinzel Decorative', serif;
  margin-top: 0.5rem;
  color: var(--heading-color);
}

/* Join-the-Faire block */
.join-us {
  /* use one of your defined variables instead of --dark-color */
  background: var(--footer-bg);
  color: var(--white);
}

.join-us h2 {
  margin-bottom: 1rem;
  color: var(--white);
}
.join-us .btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.5rem 1.25rem;
}

.more-info {
  /* keep your existing padding/background here */
  padding: 3rem 1rem;
  background: var(--about-background);
  text-align: center;
}

.more-info-img {
  display: block;
  width: auto;
  max-width: 100%;        /* never exceed its container */
  height: auto;           /* maintain aspect ratio */
  margin: 2rem auto 1rem; /* 2rem above, 1rem below */
  /* you can also add box-shadow or border-radius here if you like */
}

.sponsors {
  padding: 3rem 1rem;
  background: var(--vendor-callout-bg);
}

/* Sponsors section title */
.sponsors h2 {
  background-color: var(--zones-teaser-bg);  /* golden accent */
  color: var(--body-color);                  /* dark text for contrast */
  display: inline-block;                     /* shrink-wrap to text */
  padding: 0.5rem 1rem;                      /* breathing room inside */
  border-radius: 0.25rem;                    /* optional soft corners */
  margin-bottom: 2rem;                       /* separate from the grid */
}
/* Sponsor tiers */
.sponsor-tier {
  margin: 3rem 0;
}

.sponsor-tier .tier-title {
  font-family: 'Cinzel Decorative', serif;
  background-color: var(--zones-teaser-bg);  /* golden accent */
  color: var(--highlight-color);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sponsors h2 {
  font-family: var(--font);
  color: var(--heading-color);
  margin-bottom: 2rem;
  font-size: 2rem;
}
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}
.sponsors-grid a {
  display: block;
  max-width: 200px; /* or whatever max you prefer */
}
.sponsors-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%); /* optional, for unified look */
  transition: filter 0.3s ease;
}
.sponsors-grid img:hover {
  filter: none; /* optional hover effect to restore full color */
}

.site-footer {
  background: var(--footer-bg);
  color: var(--navigation-font);
  padding: 2rem 1rem;
  text-align: center;
}
.site-footer a {
  color: var(--navigation-font);
  margin: 0 0.5rem;
  font-size: 1.5rem;
}

/* FlexSlider arrows (left/right) */
.flex-direction-nav a {
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.4);
  text-indent: -9999px;
  position: absolute;
  top: 50%;
  margin-top: -20px;
  z-index: 9999;
  cursor: pointer;
  border-radius: 50%;
}
.flex-direction-nav a:before {
  font-family: FontAwesome;
  font-size: 20px;
  color: white;
  text-indent: 0;
  line-height: 40px;
}
.flex-direction-nav a.flex-prev:before {
  content: "\f104";  /* left arrow */
}
.flex-direction-nav a.flex-next:before {
  content: "\f105";  /* right arrow */
}
.flexslider img {
  max-width: 100%;
  max-height: 60vh;  /* shrink to 60% of viewport height */
  object-fit: contain;
}

.carousel-overlay-content {
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  color: white;
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
  border-radius: 8px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  overflow-wrap: break-word;
  word-break: break-word;
}

.carousel-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.carousel-description {
  font-size: 1rem;
  line-height: 1.4;
  margin-top: 0.25rem;
  white-space: pre-line;
}

.credits-wrapper {
  background-color: black;
  color: white;
  overflow: hidden;
  height: 300px; /* or whatever height you want */
  position: relative;
}

.credits-inner {
  display: flex;
  flex-direction: column;
  animation: scrollCredits 20s linear infinite;
}

.credit-line {
  font-size: 1.2rem;
  padding: 0.5rem 0;
  text-align: center;
}

/* scrolling animation */
@keyframes scrollCredits {
  0% {
    transform: translateY(100%);
  }
  100% {
    transform: translateY(-100%);
  }
}


/* Dots at bottom */
.flex-control-nav {
  text-align: center;
  position: absolute;
  bottom: 15px;
  width: 100%;
}
.flex-control-nav li {
  display: inline-block;
  margin: 0 5px;
}
.flex-control-nav li a {
  display: block;
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
}
.flex-control-nav li a.flex-active {
  background: rgba(255,255,255,1.0);
}


@media (max-width: 600px) {
  /* 1) Hero container: full-width with side padding, centered */
  .hero {
    width: calc(100% - 2rem);   /* leave 1rem padding on each side */
    margin: 1rem auto;          /* center and add some top/bottom breathing room */
    padding: 2rem 1rem;         /* reduce padding for mobile */
    border-width: 20px;         /* scale down the floral border thickness if needed */
    border-image-slice: 210;    /* keep same slice—but half the visible thickness */
  }
  
  
  /* 2) Shrink headline font and center it */
  .hero-content h1 {
    font-size: 2rem;       /* smaller than desktop 3rem */
    line-height: 1.2;
    margin-bottom: 0.5rem; /* give a little space below the title */
    text-align: center;    /* ensure it’s centered */
  }

  .hero-content .dates {
    font-size: 1rem;       /* shrink from 1.25rem */
    margin-bottom: 1rem;   /* a bit of breathing room before buttons */
    text-align: center;
  }

  /* 3) Button container: stack vertically, full-width (up to a max) */
  .actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;          /* spacing between buttons */
    margin-top: 1rem;
  }

  .actions .btn {
    width: 100%;           /* make each button fill the container */
    max-width: 220px;      /* but never exceed ~220px so it doesn’t get too wide */
    padding: 0.75rem 1rem; /* keep a comfortable tappable area */
    font-size: 1rem;       /* maintain legible text */
  }

  /* 4) Optional: reduce margin below the floral border so subsequent content moves up */
  /* This targets the bottom border overlap issue you saw. */
  .hero {
    margin-bottom: 0.5rem;
  }

  /* 5) Center the section navigation labels (if they wrap) */
  .section-nav ul {
    flex-direction: column;   /* stack nav links vertically on very narrow screens */
  }

  .section-nav li + li {
    margin-left: 0;           /* cancel horizontal spacing */
    margin-top: 0.5rem;       /* add vertical gap between nav items */
  }

  /* 6) Tweak sponsor and “Join the Faire” text to center and shrink if needed */
  .join-us h2,
  .sponsors h2 {
    font-size: 1.5rem;        /* smaller heading on mobile */
  }

  .join-us p,
  .sponsors p,
  .sponsor-tier .tier-title {
    font-size: 0.9rem;        /* ensure paragraphs & subheads don’t overflow */
  }
}