/* General */
body {
  font-family: "Arial", sans-serif;
  background-color: #f9fafb;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Header */
header {
  text-align: center;
  background-color: #0b4f3a;
  color: white;
  padding: 2rem 1rem;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  font-style: italic;
}

/* Sections */
section {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

h2 {
  color: #0b4f3a;
  border-bottom: 2px solid #0b4f3a;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Links */
a {
  color: #0b4f3a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #e0e0e0;
  color: #333;
}

/* Chapter page navigation buttons */
/* Fixed bottom navigation for chapter pages */
.chapter-nav {
    position: fixed;        /* stick to screen */
    bottom: 0;              /* at the bottom */
    left: 0;
    width: 100%;            /* span full width */
    background-color: #ffffff;  /* match your page background */
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1); /* subtle shadow on top */
    text-align: center;
    padding: 0.8rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    z-index: 1000;          /* stay above content */
}

/* Make sure buttons inside the nav scale nicely */
.chapter-nav .btn {
    flex: 0 0 auto;         /* prevents buttons from stretching weirdly */
    margin: 0 0.5rem;       /* adds little space between them */
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  line-height: 1;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #0b4f3a;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(11,118,239,0.15);
  transition: transform .09s ease, box-shadow .12s ease, opacity .12s ease;
  user-select: none;
}

.btn:hover { 
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(11,118,239,0.18);
}

.btn:active {
  transform: translateY(-1px) scale(.99);
  box-shadow: 0 6px 16px rgba(11,118,239,0.12);
}

.btn.secondary {
  background: #f4f4f6;
  color: #111;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* better focus styles for accessibility */
.btn:focus {
  outline: 3px solid rgba(11,118,239,0.16);
  outline-offset: 3px;
}

/* Responsive: buttons stack or shrink on small screens */
@media (max-width: 480px) {
  .chapter-nav { gap: 0.5rem; padding: 0 0.5rem; }
  .btn { flex: 1 1 44%; font-size: 0.95rem; padding: 0.6rem 0.8rem; }
}

/* Responsive YouTube video embed */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.5rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
    object-fit: cover;
}

/* Add extra space at the bottom so footer isn't hidden behind fixed buttons */
main, article {
    padding-bottom: 5rem;
}

.post-article {
  max-width: 700px;
  margin: 0 auto;
  text-align: justify;
  padding: 1rem;
}