/* Prevent layout shift when navigating between pages with/without vertical scrollbars */
html {
    overflow-y: scroll;
}

@supports (scrollbar-gutter: stable) {
    html {
        overflow-y: auto;
        scrollbar-gutter: stable;
    }
}

/* Global Page Styling */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #222;
}

/* Banner */
.banner {
    width: 100%;
    height: 35vh;
    object-fit: cover;
    display: block;
}

/* Under Construction Notice */
.notice {
    background: #fff3cd;
    padding: 15px;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px solid #e0c97f;
}

/* Navigation */
nav {
    background: linear-gradient(to right, #5c6e8c, #7a8ca9);
    padding: 12px 0;
    box-shadow: 0 2px 6px rgba(60, 80, 100, 0.3);
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

nav a {
    color: #e0e8f0;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Active nav link */
nav a.active {
    color: #ffffff;
    text-decoration: underline;
}

/* Section Layout */
section {
    padding: 40px 20px;
    max-width: 900px;
    margin: auto;
    line-height: 1.7;
}

.section-title {
    text-align: center;
    margin-bottom: 25px;
}

/* Verse of the Day Section */
#votd-wrapper {
    padding: 50px 20px;
    background: #fafafa;
}

#custom-votd {
    margin: auto;
    max-width: 750px;
    padding: 30px;
    background: white;
    border-radius: 10px;
    border: 2px solid #7a8ca9;
    box-shadow: 0 4px 18px rgba(70, 90, 110, 0.25);
    font-size: 1.25rem;
    line-height: 1.8;
}

#custom-votd blockquote {
    margin: 0 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid #7a8ca9;
    font-style: italic;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 20px;
    background: #eaeaea;
    text-align: center;
    font-size: 0.9rem;
}

/* ----------------------------- */
/*      TEACHINGS LAYOUT        */
/* ----------------------------- */

/* Flex wrapper for sidebar + content */
.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

/* Sidebar */
.sidebar {
    width: 220px;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 8px;
    border: 1px solid #ddd;
    flex-shrink: 0;
}

.sidebar h3 {
    margin-top: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 10px 0;
}

.sidebar a {
    text-decoration: none;
    color: #003366;
    font-weight: bold;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* Teaching Cards */
.teaching {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    background: #fafafa;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.teaching:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.teaching h4,
.teaching h3 {
    margin-top: 0;
}

.teaching a {
    display: inline-block;
    margin-top: 10px;
    color: #003366;
    font-weight: bold;
    text-decoration: none;
}

.teaching a:hover {
    text-decoration: underline;
}

/* Category Sections */
.category-section {
    margin-bottom: 50px;
}

.category-section h3 {
    margin-top: 40px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
    cursor: pointer;
    position: relative;
    padding-right: 22px;
    user-select: none;
}

.category-section h3::after {
    content: "▸";
    position: absolute;
    right: 0;
    top: 0;
    line-height: 1.2;
}

.category-section.open h3::after {
    content: "▾";
}

.category-section .teaching,
.category-section .back-to-top {
    display: none;
}

.category-section.open .teaching,
.category-section.open .back-to-top {
    display: block;
}

/* Back to top link */
.back-to-top {
    margin-top: 10px;
}

.back-to-top a {
    font-size: 0.9em;
    color: #555;
}

/* ----------------------------- */
/*        MOBILE FRIENDLY        */
/* ----------------------------- */

@media (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* ----------------------------- */
/*        CONTACT PAGE           */
/* ----------------------------- */

.email-link,
.note,
.youtube-text,
.youtube-link {
    text-align: center;
}

.email-link a,
.youtube-link a {
    font-size: 1.2rem;
    font-weight: bold;
    color: #003366;
    text-decoration: none;
}

.email-link a:hover,
.youtube-link a:hover {
    text-decoration: underline;
}

.note {
    margin-top: 10px;
    color: #666;
}

.divider {
    margin: 40px auto 25px auto;
    max-width: 300px;
    border-top: 1px solid #ccc;
}

.youtube-text {
    margin-bottom: 8px;
}

footer a {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}
/* ================================
   Salvation Page (simple + pastoral)
================================ */

/* Simple title header (NOT a hero) */
.salvation-page h1 {
  text-align: center;
  margin: 1.5rem 0 0.75rem;
  font-size: 2rem;
}

.salvation-page .opening-verse {
  text-align: center;
  font-style: italic;
  margin: 0 0 2.25rem;
  opacity: 0.85;
}

/* Headings */
.salvation-page h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.45rem;
}

.salvation-page h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
}

/* Paragraph rhythm */
.salvation-page p {
  margin: 0 0 1.1rem;
}

/* Verse styling */
.salvation-page .verse {
  font-style: italic;
  opacity: 0.9;
}

/* Prayer block */
.salvation-page blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.25rem;
  border-left: 4px solid currentColor;
  opacity: 0.95;
  line-height: 1.85;
}

/* Small pastoral note */
.salvation-page .note {
  text-align: left;
  font-style: italic;
  opacity: 0.85;
}

.scripture-ref {
  font-style: italic;
  opacity: 0.9;
}

/* Prevent flicker during partial injection */
#site-header,
#site-footer {
  visibility: hidden;
}

/* Reveal after JS injection */
#site-header.is-ready,
#site-footer.is-ready {
  visibility: visible;
}

/* Reduce layout shift from injected header */
#site-header {
  min-height: calc(35vh + 56px);
}

/* Footer shift is minor, but reserve a small amount */
#site-footer {
  min-height: 60px;
}

/* Isaiah 53 Teaching Page */
.teaching-page .teaching-hero,
.teaching-page .teaching-content {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

.teaching-page .teaching-hero {
  padding-bottom: 20px;
}

.teaching-page .teaching-content {
  padding-top: 10px;
}

.teaching-page h1 {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.teaching-page .teaching-subheading {
  text-align: center;
  font-style: italic;
  opacity: 0.85;
  margin: 0 0 1.5rem;
}

.teaching-page .teaching-hero p:last-child {
  margin-bottom: 0;
}

.teaching-page .teaching-content h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.45rem;
}

.teaching-page .teaching-content p {
  margin: 0 0 1.1rem;
}

blockquote.scripture {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid currentColor;
  background: #f6f6f6;
  border-radius: 4px;
}

blockquote.scripture p {
  margin: 0;
  font-style: italic;
}

blockquote.scripture cite {
  display: block;
  margin-top: 0.6rem;
  font-style: normal;
  font-weight: bold;
  opacity: 0.85;
}
/* Teaching page intro + table of contents */
.teaching-intro {
margin-top: 0.75rem;
}

.teaching-toc {
margin: 1.25rem 0;
padding: 1rem 1.25rem;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
}

.teaching-toc .toc-title {
margin: 0 0 0.75rem 0;
font-size: 1.15rem;
}

.teaching-toc ul {
margin: 0;
padding-left: 1.1rem;
}

.teaching-toc li {
margin: 0.4rem 0;
}
