/* === Base Typography Setup === */
html {
  font-size: 100%; /* 1rem = 16px */
}

body {
  margin: 0;
  font-size: 1.25rem; /* 1 rem*/
  line-height: 1.5;
  font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
}

.outer-frame {
  margin: auto;
}

h1 {
  font-size: 2.5rem; /* 3rem;*/
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem; /* 2.441rem;*/
  margin-bottom: 0.875rem;
}

h3 {
  font-size: 1.75rem; /* 1.953rem;*/
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.5rem; /* 1.563rem;*/
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.25rem;
  text-align: left;
}

/* === Layout & Component Styling === */
header {
  background-color: #28156E;
  color: white;
  display: inline;
  justify-content: space-between;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

header img {
  margin-top: -1.25rem; /* -20px */
}

header h1 {
  color: #EFBC00;
}

header nav {
  font-weight: 600;
  text-align: right;
  background-color: #EFBC00;
  padding-left: 2rem;
  margin-left: -3rem;
  margin-right: -3rem;

}

nav a {
  color: #28156E;
  margin-left: 1.5rem;
  text-decoration: none;
}

nav a:hover {
  color: #0391DD;
}

.hero {
  background: white;
  padding: 3rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #28156E;
  margin: auto;
}

.hero p {
  margin-top: 1rem;
  color: black;
}

p {
  color: black;
}

.button {
  display: inline-block;
  background-color: #EFBC00;
  color: #28156E;
  padding: 0.75rem 1.5rem;
  border: none;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}

.section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-top: 2rem;
  margin: auto;
  text-align: center;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.card h3 {
  color: #28156E;
}

.newsletter {
  color: #28156E;
  text-align: center;
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.newsletter button {
  font-size: 1.25rem;
}

.newsletter input {
  font-size: 1.25rem;
}

.newsletter p {
  text-align: center;
}

.contact-us p {
  text-align: left;
}

footer {
  background-color: #28156E;
  color: white;
  padding: 2rem;
  display: flex;
}

.footer {
  padding: 2rem 1rem;
}

footer p {
  margin-left: auto;
  margin-right: auto;
  color: white;
}

input[type="email"] {
  padding: 0.75rem;
  border-radius: 0.3125rem; /* 5px */
  border: none;
  margin-right: 0.5rem;
  width: 15.625rem; /* 250px */
}

#socials {
  background-color: #EFBC00;
  padding: 2rem 1rem;
  text-align: center;
  max-width: 100%;
}

#socials h3 {
  margin: 0 0 1.5rem;
}

#socials nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#socials nav a {
  display: inline-flex;
  align-items: center;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

#socials nav a i {
  margin-right: 0.5em;
}

#socials nav a:hover {
  color: #0391DD;
  transform: scale(1.05);
  text-decoration: underline;
}

.social-wrapper {
  max-width: 100%;
  display: flex;
  justify-content: center;
}

/*.social-media {
  padding-top: 1rem;
}*/

.home a.discrete-link {
/*   text-decoration: none; */
  color: inherit;
  cursor: default;
  pointer-events: none;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 0.625rem; /* 10px */
}

.card .social-wrapper nav a {
  color: #28156E;
}

button#load-more {
  font-size: 1.25rem;
}

.blurb-container {
  display: flex;
  align-items: center; /* This centers items vertically */
  justify-content: space-between;
  gap: 2rem; /* optional: space between text and image */
}

.blurb-text {
  flex: 3;
  padding-right: 2rem;
}

.blurb-image {
  flex: 1.2;
  display: flex;
  justify-content: center; /* optional, for horizontal center in its own space */
  align-items: center;     /* makes sure the image centers vertically */
}

.blurb-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.blurb-heading h4 {
  font-style: italic;
}

.hero a.button {
  margin-top: 2rem;
}

.button {
  border-radius: 1rem;
}

.card img {
  max-width: 100%;
  height: auto;
  display: block; /* This is the key! */
  margin-left: auto;
  margin-right: auto;
}

button#excerptBtn {
  font-size: 1.25rem;
  margin-top: 2rem;
}

.excerpt-text {
  background-color: #f8f5ff; /* soft lavender */
  border-left: 6px solid #2c1170; /* your purple */
  padding: 2rem;
  margin: 3rem auto;
  max-width: 70%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-family: Georgia, serif;
  color: #333;
}

.excerpt-text h3 {
  color: #2c1170;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-align: center;
}

.excerpt-body p {
  text-align: justify;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

.video-section {
  text-align: center;
  padding: 2rem 1rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  margin-bottom: 2rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

hr {
  margin: 3em;
  border: none;
  height: 3px;
  background-color: #28156E;
}

.blurb-left img {
  max-width: 240px; /* 50%;*/
  height: auto;
  border-radius: 0;
}

.blurb-right h4 {
  margin: 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  align-items: center;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  text-decoration: none;
  display: inline-flex; /* block */
  align-items: center;
  gap: 0.25rem; /* spacing between text and arrow */
  white-space: nowrap;
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #EFBC00;
}

.main-nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #EFBC00;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

.main-nav .submenu li a {
  padding-left: 0rem;
  padding-right:1.75rem;
  white-space: nowrap;
}

.has-submenu:hover .submenu {
  display: block;
}

img.img-outlined {
  border: 1px solid black;
  border-radius: 0;
}

.nav-link-with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link-with-arrow .arrow {
  font-size: 0.75em;
  transform: translateY(1px); /* fine-tune this as needed */
}

button#signupBtn {
  font-size: 1.25rem;
  margin-top: 2rem;
  line-height: 1.5;
}

.signup-form {
  background-color: #f8f5ff; /* soft lavender */
  border-left: 6px solid #2c1170; /* your purple */
  padding: 2rem;
  margin: 3rem auto;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-family: Georgia, serif;
}

.newsletter iframe {
  width: 100%;
  max-width: 100%;
  height: 800px; /* Adjust this height based on form length */
  border: none;
}

.iframe-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#rss-posts a {
  color: #28156E;
}

#rss-posts a:hover {
/*  color: #EFBC00;*/
  color: #0391DD;
}

#rss-posts {
  text-align: left;
}

#rss-posts h3 {
  margin-bottom: 0;
}

#rss-posts h4 {
  margin: 0.25rem;
}

.homepage-layout {
  max-width: 85%;
  margin: auto;
  background-color: #28156E;
  padding: 3rem;
}

/*.header-frame {
  padding-bottom: 1rem;
}*/

.header-div {
  background-color: #28156E;
  max-width: 85%;
  margin: auto;
  padding-left: 3rem;
  padding-right: 3rem;
}

.header-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 1rem;
}

.site-title{
  color: #EFBC00;
  margin-top: -1rem;
  margin-bottom: -2rem;
}

.card .button {
  display: block;
  margin: 3rem auto 2rem;
  width: fit-content;  /* Prevent it from stretching full-width */
}


@media (max-width: 1024px) {
  .outer-frame {
    max-width: 100%;
  }

  .site-title {
    margin: 0;
  }

  h4 {
    font-size: 1.25rem;
  }

  .homepage-layout {
    max-width: 98%;
    padding: 1rem;
  }

  /* Make blurb content stack */
  .blurb-container {
    flex-direction: column;
    text-align: left;
    align-items: center;
    padding: 0.5rem;
  }

  .blurb-text,
  .blurb-image {
    padding: 0;
    max-width: 100%;
  }

  .blurb-image img {
    max-width: 90%;
  }

  /* Stack cards in one column */
  .section {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    max-width: 100%;
  }

  .card {
    padding: 1.5rem;
  }

  .card img {
    max-width: 90%;
    margin: auto;
    padding: 0.5rem;
  }

  .button {
      margin: 3rem auto 2rem;
  }

  header {
    flex-direction: column;
    text-align: center;
  }

  header img {
    margin: 0 auto 1rem;
  }

  .header-div {
    max-width: 100%;
  }

  footer {
    flex-direction: column;
    text-align: center;
  }

  footer p {
    margin: 0 auto;
  }

  #socials .social-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .header-nav {
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: 1rem;
  }

  .main-nav a {
    display: block;
    padding: 0.6rem 0;
  }

  .section {
    gap: 1rem;
  }

  .newsletter {
    padding-bottom: 0;
  }
}
