/*
  Global styles for the interactive Bible study platform.
  The palette uses high contrast colours and ample spacing to aid readability for SEND users.
*/

:root {
  --primary-color: #2a75bb;    /* deep blue for headings */
  --secondary-color: #ef7f1a;  /* warm orange accent */
  --bg-color: #ffffff;         /* white background for maximum contrast */
  --text-color: #1a1a1a;       /* dark text for legibility */
  --link-color: #2a75bb;
  --link-hover-color: #174a7d;
  --border-radius: 4px;
  --font-size-base: 18px;
  --line-height-base: 1.6;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

a {
  color: var(--link-color);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

.main-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem;
  text-align: center;
}

.main-header h1 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}
.main-header p {
  margin: 0 auto;
  max-width: 800px;
  font-size: 1rem;
}

nav ul.session-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto;
  max-width: 800px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul.session-list li {
  margin: 0.5rem;
  flex: 1 1 300px;
}

nav ul.session-list a {
  display: block;
  padding: 0.8rem 1rem;
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: bold;
}
nav ul.session-list a:hover {
  background-color: #d56f13;
}

main {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

section {
  margin-bottom: 2rem;
}

h2 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  margin-top: 0;
}
h3 {
  color: var(--secondary-color);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover,
.btn:focus {
  background-color: var(--link-hover-color);
  outline: none;
}

/* Interactive placeholder styling */
.interactive-placeholder {
  border: 2px dashed var(--secondary-color);
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
  color: var(--secondary-color);
  background-color: #fff7ef;
}

/* Audio toggle styling */
.audio-toggle {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.audio-toggle input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.3);
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .main-header h1 {
    font-size: 1.5rem;
  }
  nav ul.session-list li {
    flex: 1 1 100%;
  }
  nav ul.session-list a {
    font-size: 0.9rem;
  }
  body {
    font-size: 16px;
  }
}