body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #ffffff;
  color: #29333B;
}
/* Add bottom padding so content isn't hidden behind the fixed footer */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  padding-bottom: 100px; /* increased extra space for the footer */
}
header {
  text-align: center;
  padding: 20px 0;
}
h1 {
  font-size: 3em;
  margin: 0;
  color: #F65C33;
}
h2 {
  font-size: 1.5em;
  margin: 10px 0 40px;
}
/* Section Headings */
h3 {
  margin-bottom: 10px; /* reduced bottom margin */
}
/* Subheadings for each section */
h4 {
  font-size: 1.2em;
  margin: 5px 0 10px; /* reduced top and bottom margins */
  color: #29333B;
  font-weight: normal;
}
/* Section Styles */
section {
  margin-bottom: 10px;
  text-align: center;
  padding-bottom: 10px; /* reduced bottom padding */
}
/* Add a thin horizontal dotted line before the Join the Community section */
#join-community::before {
  content: '';
  display: block;
  border-top: 1px dotted #ccc;
  margin-bottom: 10px;
  width: 100%;
}

/* Add a thin horizontal dotted line before the Download Content section */
#downloadContent-section::before {
  content: '';
  display: block;
  border-top: 1px dotted #ccc;
  margin-bottom: 10px;
  width: 100%;
}
/* Add a thin horizontal dotted line after each section except the last */
section:not(:last-of-type)::after {
  content: '';
  display: block;
  border-bottom: 1px dotted #ccc;
  margin: 5px auto 0; /* reduced gap above the dotted line */
  width: 100%;
}
/* Reduce the top margin for the Subscribe and Insider headings */
#subscribe-podcast h3,
#ada-insider h3 {
  margin-top: 0;
}
/* Link Icon Styles */
.icon-link {
  display: inline-block;
  margin: 5px;  /* reduced from 10px to minimize gaps around images */
  transition: transform 0.2s;
}
.icon-link:hover {
  transform: scale(1.1);
}
/* Podcast links container – no extra vertical margin */
.podcast-links {
  margin: 0;
  padding: 0;
}
/* Form Styles */
form#subscribe-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
form#subscribe-form input[type="email"] {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 300px;
  max-width: 90%;
}
form#subscribe-form button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #F65C33;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 15px; /* Added margin to ensure button isn't covered */
}
form#content-form {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
form#content-form input[type="email"] {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 300px;
  max-width: 90%;
}

form#content-form button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #F65C33;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 15px; /* Added margin to ensure button isn't covered */
}

#message{
  color:#F65C33;
  font-weight: bold;
}

#content-message{
  color:#F65C33;
  font-weight: bold;
}

form#subscribe-form button:hover {
  opacity: 0.9;
}
form#content-form button:hover {
  opacity: 0.9;
}

/* Footer Styles */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}
/* Responsive adjustments */
@media (max-width: 600px) {
  form#subscribe-form {
    flex-direction: column;
  }
  form#subscribe-form input[type="email"],
  form#subscribe-form button {
    width: 90%;
  }
  
  form#content-form {
    flex-direction: column;
  }

  form#content-form input[type="email"],
  form#content-form button {
    width: 90%;
  }
  
  /* Add extra bottom padding to form sections on mobile to prevent footer overlap */
  #ada-insider, #downloadContent-section {
    margin-bottom: 60px;
    padding-bottom: 20px;
  }
  
  /* Add spacing for message elements */
  #message, #content-message {
    margin-bottom: 70px;
  }
  
  footer {
    flex-direction: column;
    gap: 10px;
  }
}

/* Spinner Style */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}

.main-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 4px solid rgba(246, 92, 51, 0.3); /* Semi-transparent border using your orange */
  border-radius: 50%;
  border-top-color: #F65C33; /* Your specified orange */
  animation: mainspin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes mainspin {
  to {
    transform: rotate(360deg);
  }
}

#loadingIndicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}
