/* === Fonts === */
@font-face {
  font-family: 'Black Ground';
  src: url('/assets/fonts/BlackGround.woff') format('woff'),
       url('/assets/fonts/BlackGround.ttf') format('truetype'),
       url('/assets/fonts/BlackGround.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}


/* === Base Styles === */
body {
  font-family: "Apple Symbols", sans-serif;
  background-color: #060608;
  color: #747373;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: 1rem; /* 1rem = browser default (usually 16px) */
}

p, li, span, div, main, section {
  font-size: 1.0625rem; /* ≈ 17px, scalable */
}


h1, h2, h3, h4, h5, h6 {
  font-family: 'Black Ground', sans-serif;
  color: #a31232;
  text-align: left;
}

a {
  color: #a31232;
  text-decoration: underline;
}

/* === Navigation === */
nav {
  background-color: #060608;
  display: flex;
  flex-direction: column;
  align-items: center; /* center nav items on desktop */
  padding: 1rem 2rem;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
}

.nav-links a {
  font-family: 'Black Ground', sans-serif;
  color: #a31232;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #747373;
}

/* === Homepage Container === */
.homepage {
  max-width: 800px;
  margin: 2rem auto;
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(163, 18, 50, 0.5);
  text-align: left;
}

/* === Logo Section === */
.logo-banner {
  background-color: #f0f0f0;
  text-align: center;
  padding: 1rem;
}

.logo-wrapper {
  background-color: #e0e0e0;
  display: block;
  padding: 2rem;
  border-radius: 8px;
  margin: 0 auto 1.5rem auto;
  max-width: 100%;
  width: fit-content;
}

.logo-img {
  width: 100%;
  height: auto;
  max-width: 400px;
}

/* === Center images/videos === */
main img {
  display: block;
  margin: 2rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(163, 18, 50, 0.5);
}


/* === Format form buttons on Talk to Us page === */
form button {
  background-color: #a31232;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  font-family: 'Black Ground', sans-serif;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #741021; /* darker red on hover */
}

/* === Podcast Layout === */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.episode-card > img {
  display: block;
  margin: 0 auto 0.75rem auto;
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.episode-card h4 {
  color: #a31232;
  font-family: 'Black Ground', sans-serif;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.episode-card audio {
  width: 100%;
  margin: 0.75rem 0;
  border-radius: 4px;
  border: 1px solid #a31232;
}

.featured-episode img {
  display: block;
  margin: 0 auto 0.75rem auto;
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


@media (max-width: 768px) {
  .episode-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.episode-card:hover {
  box-shadow: 0 0 12px rgba(163, 18, 50, 0.5);
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
}


/* === Videos === */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(163, 18, 50, 0.5);
  background-color: #1a1a1a;
}

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

html {
  scroll-behavior: smooth;
}

.nav-toggle {
  display: none;
}

nav.open .nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  nav.open #close-menu {
    display: block;
  }

  #close-menu {
    display: none;
  }
}


/* === Responsive nav toggle === */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: #a31232;
    cursor: pointer;
    margin-bottom: 0.5rem;
    align-self: flex-end; /* Align right */
  }

  .nav-toggle:hover {
    color: #747373;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  nav.open .nav-links {
    display: flex;
  }

  nav.open #close-menu {
    display: block;
  }

  nav {
    align-items: stretch; /* Allows .nav-toggle to align right */
  }
}

#close-menu {
  display: none;
}

@media (max-width: 768px) {
  nav.open #close-menu {
    display: block;
  }
}
