* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #fff;
  color: #1c1c1e;
}

main {
  padding-top: 5rem;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ===============================
   Fixed Top Navigation
================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height:5rem;
  background-color: #071124;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

header h1 a {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  background: linear-gradient(90deg, #ff9900, #ffcc00, #ffaa33);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.15);
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

header nav a {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: bold;
}

header nav a:hover {
  color: #f90;
}

nav ul li.dropdown {
  position: relative;
}

header nav ul li a {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  padding: 0.5rem 0;
  height: 2rem;
  line-height: 2rem;
}

nav ul li.dropdown > a i {
  font-size: 0.7rem;
  transform: rotate(90deg);
  line-height: 1;
  vertical-align: middle;
  margin-top: 1px;
}

nav ul li.dropdown:hover .dropdown-menu,
nav ul li.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -25px;
  background-color: #071124;
  width: 290px;
  padding: 5px;
  z-index: 1000;
  border-radius: 0 0 8px 8px;
}

.dropdown-menu li {
  display: block;
  padding:5px;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  color: white;
  font-size: 0.85rem;
  text-transform: none;
  font-weight: normal;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #112244;
  color: #f90;
}

.dropdown-menu li a img, ul.podcast-mobile-menu li a img {
  height: 32px;
  width: 32px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

button.hamburger {
  display: none;
  position:fixed;
  top:1rem;
  right:10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

button.hamburger i {
  font-size: 2.2rem; /* adjust this size as needed */
  display: inline-block;
  background: linear-gradient(90deg, #ff9900, #ffcc00, #ffaa33);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.15);
  line-height: 1;
}

/* Hide the entire mobile nav container initially */
.mobile-nav {
  display: none;
}

/* Style for the nav container when visible */
.mobile-nav {
  background-color: #071124;
  border-top: 2px solid #444;
  padding: 1rem;
  position: absolute;
  top: 5rem;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.mobile-nav ul, .mobile-nav li {
    list-style: none;
}

ul.podcast-mobile-menu {
  margin-left:30px;
}

.happy-title {
  width:100%;
  text-align: center;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(
    90deg,
    #0a1124 0%,
    #0d162e 30%,
    #08101f 60%,
    #03060c 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 2rem auto;
  padding: 0.5rem 1rem;
  display: inline-block;
  line-height: 1.2;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.55),  
    0 0 2px rgba(255, 255, 255, 0.05);
}

.featured-podcasts {
  padding: 3rem 2rem;
  background: linear-gradient(to right, #f5f7fa, #ffffff);
  text-align: center;
  margin-bottom:25px;
}

.featured-podcast-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.featured-podcast-logo-link {
  display: inline-block;
  transition: transform 0.2s ease;
}

.featured-podcast-logo-link:hover {
  transform: scale(1.05);
}

.featured-podcast-logo {
  width: 120px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.latest-blog-feature {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  background: linear-gradient(to right, #fff8f0, #fffce6);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.blog-feature-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.blog-feature-image img {
  width: 300px;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.blog-feature-content {
  flex: 1;
  min-width: 250px;
}

.blog-feature-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #071124;
}

.blog-feature-title a, span.author-name a, .post-meta a {
  color: #071124;
  text-decoration: none;
}

.blog-feature-title a:hover, span.author-name a:hover, .post-meta a:hover {
  color: #ff9900;
}

.blog-feature-date {
  font-size: 0.95rem;
  color: #888;
  margin-bottom: 1rem;
}

.blog-feature-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.blog-feature-snippet {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-feature-readmore {
  display: inline-block;
  background-color: #071124;
  color: white;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
}

.blog-feature-readmore:hover {
  background-color: #0d1d44;
  color: #ff9900;
}

/* ===============================
   Latest Episodes (front page)
================================== */
.latest-podcast-episodes {
  width:100%;
  margin:0px;
  padding-left:150px;
  padding-right:150px;
}

.episode-grid-container {
  width:100%;
  display:flex;
  justify-content:center;
}

.latest-episodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.episode-card {
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.episode-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.episode-logo-small {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
}

/* Hover state: visual cue that images are links */
a:hover img.episode-logo-small {
    cursor: pointer;
    transform: translateY(-1px);
    box-shadow: 0 0.4rem 0.9rem rgba(0, 0, 0, 0.25);
    opacity: 0.9;
}

/* Make sure episode titles also behave nicely as links */
.episode-top a {
    color: inherit;
    text-decoration: none;
}

.episode-top a:hover h3 {
    text-decoration: underline;
    cursor: pointer;
}

.episode-title {
  font-size: 0.85rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  height: 4.8em;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.episode-snippet {
  font-size: 0.9rem;
  color: #444;
  text-align: center;
  margin-bottom: 1rem;
}

.episode-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
}

/*Blog Posts*/

.blog-two-column {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: flex-start;
}

.blog-post-stream {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-snippet {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.post-snippet:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Top section: image + title + author info */
.post-header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}


.post-image img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.post-meta {
  flex: 1;
  min-width: 200px;
}

.meta-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.75rem;
}

/* Author image + name */
.post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-headshot {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.author-name {
  font-weight: bold;
  color: #1c1c1e;
  font-style: italic;
  font-size: 1rem;
}

/* Main body snippet */
.post-snippet-body {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.post-snippet-body p {
  margin: 0;
}

/* Right-aligned sidebar */
.blog-sidebar {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blog-sidebar h2 {
  font-size: 1.2rem;
  color: #071124;
  margin-bottom: 1rem;
}

.blog-sidebar a {
  color: #005bbb;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.podcast-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.podcast-links li {
  margin-bottom: 1rem;
}

/* 🔗 Modern Link Styling */
a {
  color: #005bbb;
  text-decoration: none;
  transition: color 0.2s ease;
}


/* Restore progress bar default width */
.episode-card .plyr__progress {
  flex: 1 1 auto;
}

/* Ensure buttons and layout stay sane */
.episode-card .plyr__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Keep play, mute, etc. from stretching */
.episode-card .plyr__controls > button {
  flex: 0 0 auto;
}

/* Contain the volume section tightly */
.episode-card .plyr__volume {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide volume slider by default */
.episode-card .plyr__volume input[type='range'] {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: rotate(-90deg) translateX(-50px) translateY(-35px);
  transform-origin: center center;
  appearance: none;
  background:#1c1c1e;
  border-radius: 3px;
  z-index: 2;
  padding:5px;
}

/* Show on hover */
.episode-card .plyr__volume:hover input[type='range'] {
  display: block;
}

/* ===============================
   Podcast Hero and Metadata
================================== */
.podcast-hero {
  text-align: center;
  margin-bottom: 3rem;
}

.podcast-banner {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  display: block;
  margin-bottom: 2rem;
}

.podcast-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: flex-start;
}

.podcast-logo, .podcast-sidebar-logo {
  width: 160px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.podcast-sidebar-logo {
  margin:0 auto;
}

.podcast-sidebar-logo:hover {
  border:1px solid #f5f5d5;
}

.podcast-description {
  flex: 1;
  min-width: 250px;
  max-width: 600px;
  text-align: left;
}

.podcast-description h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.podcast-description p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
}

.podcast-description ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0;
  margin: 1rem 0;
}

.podcast-description ul li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #071124;
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.podcast-description ul li a:hover {
  background-color: #0d1d44;
  color: #f90;
}

.podcast-description ul li a img {
  height: 20px;
  width: 20px;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ===============================
   Episodes
================================== */
.episode-list-container {
  max-width: 960px;
  margin: 4rem auto;
  padding: 0 1rem;
  margin-bottom: 6rem;
}

.episode {
  display: flex;
  flex-direction:column;
  gap: 1.5rem;
  align-items: flex-start;
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.episode-top {
  display:flex;
}

.episode:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.episode-logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.episode-content {
  flex: 1;
  text-align: left;
}

.episode h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  margin-left:15px;
  margin-top:25px;
  color: #071124;
}

/* Container for spacing and vibe */
.plyr--audio {
  margin: 1.5rem 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f111a, #1e2333);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  padding: 0.5rem 1rem;
}

/* Container for spacing*/
.plyr--audio {
  margin: 1rem 0;
  border-radius: 10px;
  background: #6e7586;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  padding: 0.4rem;
  max-width: 800px;
}

/* Control bar */
.plyr__controls {
  background-color: transparent;
  color: #f5f5f5;
  font-family: 'Segoe UI', sans-serif;
}

/* Buttons */
.plyr__controls button {
  color: #ddd;
  transition: color 0.2s ease, transform 0.2s ease;
}

.plyr__controls button:hover {
  color: #ff9900;
  transform: scale(1.12);
}

/* Time, progress, tooltip */
.plyr__time,
.plyr__progress--played,
.plyr__tooltip {
  color: #f90 !important;
}

/* Progress bar*/
.plyr__progress input[type='range'] {
  background: linear-gradient(to right, #ff9900 0%, #ffaa33 100%);
  height: 5px;
  border-radius: 4px;
}

/* Volume */
.plyr__volume input[type='range'] {
  background: linear-gradient(to right, #55ddff 0%, #0088cc 100%);
  height: 4px;
  border-radius: 4px;
}

/* Active focus ring */
.plyr--full-ui input[type='range']:focus {
  box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.3);
  outline: none;
}

.episode-content p {
  width: 100%;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.episode-content p a {
  display: inline;
  color: #005bbb;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.episode-content p em {
  display: block;
  font-size: 0.9rem;
  color: #888;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
  font-size: 1rem;
  font-weight: bold;
}

.pagination a {
  background-color: #071124;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.pagination a:hover {
  background-color: #0d1d44;
  color: #ff9900;
}

.author-details {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.author-headshot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ccc;
}

.post-header-image {
  width: 100%;
  margin: 1.5rem 0;
  border-radius: 12px;
}

.post-body {
  font-size: 1.1rem;
  line-height: 1.75;
}

.episode-people {
  margin-top: 0.5em;
  margin-bottom: 1em;
}

.episode-people span.author-name {
    font-size:80%;
}

.episode-people img.author-headshot {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.5em;
}

.episode-people .author-name {
  font-size: 0.95em;
  display: inline-block;
  vertical-align: middle;
}

.person-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.person-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.person-headshot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1);
}

.person-details {
  flex: 1;
}

.person-name {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.person-role {
  font-size: 1.1rem;
  color: #666;
}

.person-bio {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  padding: 1rem 0;
}

.person-links,
.person-links-section,
.person-socials {
  padding: 1rem 0;
}

.person-links-section, h3,
.person-socials h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.person-links-section, ul {
  list-style: none;
  padding-left: 0;
}

.person-links-section, li {
  margin: 0.5rem 0;
}

.person-links-section a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.person-links-section a:hover {
  color: #004a99;
  text-decoration: underline;
}

/* Person socials: modern pill-style list with icons */
.person-socials-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.person-social-item {
  margin-bottom: 0.5rem;
}

.person-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  background-color: #ffffff;
  color: #005bbb;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease,
    color 0.15s ease;
}

.person-social-link:hover,
.person-social-link:focus-visible {
  background-color: #f7f7f7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
  color: #003f7a;
}

.person-social-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Service-specific icons – point these to your actual icon asset URLs */
.person-social-icon--linkedin {
  background-image: url('/images/logos/linkedin.png');
}

.person-social-icon--bluesky {
  background-image: url('/images/logos/bluesky.png');
}

.person-social-icon--x {
  background-image: url('/images/logos/x.png');
}

.person-social-icon--facebook {
  background-image: url('/images/logos/facebook.png');
}

.person-social-icon--mastodon {
  background-image: url('/images/logos/mastodon.png');
}

.person-social-icon--reddit {
  background-image: url('/images/logos/reddit.png');
}

.person-social-icon--instagram {
  background-image: url('/images/logos/instagram.png');
}

.person-social-icon--patreon {
  background-image: url('/images/logos/patreon-modern.png');
}

.person-social-label {
  white-space: nowrap;
}

/* ===============================
   Person Profile Sidebar
================================== */

.person-profile .person-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.person-main .person-card {
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px solid #ddd;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.person-sidebar {
  background: linear-gradient(to bottom, #f7f7fb, #ffffff);
  border-radius: 16px;
  border: 1px solid #ddd;
  padding: 1.75rem 1.75rem 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

h2.person-sidebar-heading {
  margin-bottom: 2.0rem;
}

.person-sidebar-intro {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.25rem;
}

.person-episodes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.person-episode-card {
  border-radius: 12px;
  background-color: #fafafa;
  border: 1px solid #e1e1e6;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.person-episode-podcast {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.15rem;
}

.person-episode-podcast-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.person-episode-podcast-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #071124;
}

.person-episode-title-link {
  text-decoration: none;
}

.person-episode-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #005bbb;
  line-height: 1.4;
}

.person-episode-title-link:hover .person-episode-title {
  color: #ff9900;
}

.person-episode-meta {
  font-size: 0.8rem;
  color: #888;
} font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.contact-alert-success {
  background-color: #e6f6ea;
  color: #256c3a;
  border: 1px solid #b7e3c2;
}

.contact-alert-error {
  background-color: #fff4f2;
  color: #a63b2b;
  border: 1px solid #f2c1b9;
}

.contact-field {
  margin-bottom: 1.25rem;
}

.contact-field-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #071124;
  margin-bottom: 0.25rem;
}

.contact-field .required {
  color: #d22;
  font-weight: 700;
}

.contact-field input,
.contact-field textarea,
.contact-field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1c1c1e;
  background-color: #fafafa;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.contact-field textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  outline: none;
  border-color: #ff9900;
  box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.25);
  background-color: #ffffff;
}

.contact-field input.invalid,
.contact-field textarea.invalid,
.contact-field select.invalid {
  border-color: #cc3a3a;
  box-shadow: 0 0 0 1px rgba(204, 58, 58, 0.35);
  background-color: #fff7f7;
}

.field-error {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #cc3a3a;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.field-error.active {
  opacity: 1;
}

.contact-smallprint {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.contact-actions {
  margin-top: 1.5rem;
  text-align: right;
}

.contact-submit-button {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  background-color: #071124;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.contact-submit-button:hover {
  background-color: #0d1d44;
  color: #ff9900;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
}

.contact-submit-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Utility for JS-controlled sections */
.is-hidden {
  display: none !important;
}

/* ===============================
   Footer and Newsletter
================================== */
footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
}

footer a {
  color: #f90;
  text-decoration: none;
}

footer .container,
footer .stackcontainer {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.socials {
  display: flex;
  margin-top: 20px;
  justify-content: center;
  text-align: center;
}

.socials img {
  margin: 0 10px;
  height: 50px;
}

.socials img:hover {
  transform: scale(1.1);
}

.site-footer h3 {
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.05rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: #bbb;
  margin-top: 2rem;
}

.newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.newsletter div {
  display: flex;
}

.newsletter input[type="email"] {
  line-height: 1.2;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  width: 100%;
  max-width: 320px;
  background-color: #fff;
  color: #222;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s ease;
}

.newsletter input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.4);
}

.newsletter button {
  line-height: 1.2;
  padding: 0.75rem 1rem;
  background-color: #f90;
  color: white;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.newsletter button:hover {
  background-color: #e08000;
  transform: translateY(-1px);
}

/* ===============================
   Captcha Modal
================================== */

.captcha-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 36, 0.75); /* #071124 with transparency */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.captcha-modal-overlay.is-open {
  display: flex;
}

.captcha-modal {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 2rem 2.25rem;
  max-width: 720px;
  width: 90%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  position: relative;
}

.captcha-modal-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  color: #071124;
}

.captcha-modal-intro {
  margin: 0 0 1.5rem 0;
  font-size: 0.98rem;
  color: #333;
}

.captcha-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #888;
}

.captcha-modal-close:hover {
  color: #ff9900;
}

.captcha-modal-body {
  margin-top: 0.5rem;
}

.captcha-modal-actions {
  margin-top: 1.75rem;
  display: flex;
  justify-content: flex-end;
}

.captcha-loading,
.captcha-error {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.95rem;
  color: #555;
}

.captcha-error {
  color: #b00020;
}

/* ===============================
   Captcha Grid + Selection
================================== */

.captcha-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Each cell wraps: <label><input type="checkbox"><img></label> */
.captcha-grid label.captcha-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 12px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

/* Hide the actual checkbox but keep it focusable/clickable */
.captcha-grid label.captcha-cell input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* The image itself */
.captcha-grid label.captcha-cell img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, outline-color 0.18s ease;
}

/* Hover effect */
.captcha-grid label.captcha-cell:hover img {
  transform: scale(1.02);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Selected state: when checkbox is checked, style the image */
.captcha-grid label.captcha-cell input[type="checkbox"]:checked + img {
  outline: 3px solid #ff9900;
  outline-offset: 0;
  box-shadow: 0 0 10px rgba(255, 153, 0, 0.6);
  transform: scale(1.03);
}

/* Optional: slightly change the cell border on selection too */
.captcha-grid label.captcha-cell input[type="checkbox"]:checked + img {
  /* border on label is subtle; image outline is primary cue */
}

b.prompt {
    font-size:200%;
}

.captcha-status {
    font-size:110%;
    color:red;
    font-weight:bold;
}

/* ===============================
   Responsive tweaks
================================== */

@media (max-width: 768px) {
  .captcha-modal {
    padding: 1.5rem 1.5rem;
  }

  .captcha-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Responsive tweaks */
@media (max-width: 768px) {
  .captcha-modal {
    padding: 1.5rem 1.5rem;
  }

  .captcha-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===============================
   Responsive Tweaks
================================== */

@media (max-width: 1124px) {
  .latest-episodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .episode-card {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  header nav.header {
    display: none;
    flex-direction: column;
    background-color: #071124;
    padding: 1rem 2rem;
    position: absolute;
    top: 5rem;
    left: 0;
    right: 0;
    z-index: 999;
  }

  site-nav.open {
    display: flex;
  }

  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  header nav ul li {
    width: 100%;
  }

  header nav a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  button.hamburger { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
  }

  .dropdown-menu {
    display: none !important;
  }

  .dropdown-menu {
    position: relative;
    display: none;
    width: 100%;
    padding: 0;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: block;
  }

  .dropdown-menu li {
    width: 100%;
  }

  .dropdown-menu a {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  .episode-card {
    max-width: 100%;
  }


  .podcast-meta {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .podcast-description {
    text-align: center;
  }

  .podcast-description ul {
    justify-content: center;
  }

  .episode {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .episode-content {
    text-align: left;
    width: 100%;
  }

  .episode-logo {
    margin-bottom: 1rem;
  }

  .blog-sidebar {
    display:none;
  }

  .blog-two-column {
    display:flex;
  }

  .newsletter input[type="email"],
  .newsletter button {
    width: 100%;
    max-width: 400px;
    border-radius: 4px;
    margin: 0.25rem 0;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .site-footer .socials {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .latest-podcast-episodes {
    padding:0px;
  }
  .latest-episodes-grid {
    grid-template-columns: 1fr;
  }

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

}

/* Responsive tweaks for contact page */
@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .contact-field-group {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 1.5rem 1.25rem;
  }

  .contact-actions {
    text-align: center;
  }

  .contact-submit-button {
    width: 100%;
    max-width: 260px;
  }
}
