/*
    CANONICAL BIBLICAL STUDY STYLE

    Use this file for study/article pages under Biblical Studies.

    Required study-page includes:
    1. Biblical Studies/lesson-style.css
    2. /stars.css
    3. /stars.js
    4. <body class="lesson-lesson">

    Do not use the main site stylesheet (/style.css) for standalone study
    articles unless the page is a series/index page that needs the main
    navigation components. This keeps study pages on the shared dark,
    starry reading background instead of the homepage image background.
*/
body.lesson-lesson {
    background:
        radial-gradient(1200px 600px at 50% 10%, rgba(80, 150, 255, 0.18), transparent 60%),
        radial-gradient(900px 500px at 15% 25%, rgba(150, 120, 255, 0.10), transparent 55%),
        linear-gradient(180deg, #030818 0%, #06122a 55%, #020613 100%);
    color: #e0e0e0;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.7;
    position: relative;
    min-height: 100vh;
}

body.lesson-lesson > * {
    position: relative;
    z-index: 1;
}

body.lesson-lesson a,
body.lesson-lesson a:visited {
    color: #72dcff;
    text-decoration-color: rgba(114, 220, 255, 0.75);
    text-underline-offset: 0.16em;
}

body.lesson-lesson a:hover,
body.lesson-lesson a:focus-visible {
    color: #ffffff;
    text-decoration-color: #ffffff;
    text-shadow: 0 0 9px rgba(0, 212, 255, 0.8);
}

body.lesson-lesson .back-home,
body.lesson-lesson .back-home:visited {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
    display: inline-block;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid #72dcff;
    background: rgba(5, 20, 40, 0.96);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,0.45), 0 0 14px rgba(0, 198, 255, 0.38);
}

body.lesson-lesson .back-home:hover,
body.lesson-lesson .back-home:focus-visible {
    color: #ffffff;
    background: #0b4163;
    border-color: #ffffff;
    box-shadow: 0 7px 20px rgba(0,0,0,0.48), 0 0 20px rgba(0, 212, 255, 0.65);
}
.container {
    max-width: 850px;
    margin: auto;
    background: #0a1f35;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #1a3a5a;
}
.logo-container { text-align: center; margin-bottom: 30px; }
.logo-container img { width: clamp(130px, 24vw, 180px); height: clamp(130px, 24vw, 180px); border-radius: 50%; object-fit: cover; object-position: center; opacity: 0; pointer-events: none; }
.logo-container .logo-frame { width: clamp(130px, 24vw, 180px); height: clamp(130px, 24vw, 180px); margin: 0 auto; border-radius: 50%; overflow: hidden; background-image: url("../New%20Design/darkblue-FWlogo.png"); background-size: cover; background-position: center; background-repeat: no-repeat; box-shadow: 0 0 18px rgba(90, 190, 255, 0.35), 0 0 40px rgba(90, 190, 255, 0.25); }
h1, h2, h3, h4 { color: #ffffff; text-shadow: 0 0 15px rgba(100, 200, 255, 0.6); text-align: center; }
h1 { border-bottom: 1px solid #1a3a5a; padding-bottom: 20px; font-size: 2.2em; }
h2 { text-align: left; margin-top: 40px; color: #4fc3f7; border-left: 4px solid #4fc3f7; padding-left: 15px; }
h4 { text-align: left; margin: 1.5rem 0 0.65rem; color: #66d9ef; font-size: 1.1rem; }
.big-question { background: linear-gradient(145deg, #0d2a4a, #071c33); border-radius: 12px; padding: 25px; margin-bottom: 40px; border-left: 5px solid #00d4ff; box-shadow: inset 0 0 10px rgba(0,0,0,0.3); }
.scripture-box { background-color: #0d253f; border-radius: 8px; padding: 20px; margin: 25px 0; font-style: italic; color: #b0d4f1; border: 1px solid #1a3a5a; line-height: 1.8; }
.analogy-card { background: #112b48; padding: 20px; border-radius: 10px; margin: 20px 0; border: 1px solid #1a4a7a; }
.highlight { color: #00d4ff; font-weight: bold; }
.reflection-section { background-color: #071c33; border: 1px solid #00d4ff; padding: 30px; border-radius: 12px; margin-top: 50px; }
.quiz-container { background-color: #071c33; border: 2px solid #00d4ff; padding: 30px; border-radius: 12px; margin-top: 50px; }
.option { display: block; background: #112b48; border: 1px solid #1a4a7a; padding: 12px 15px; margin: 8px 0; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; }
.option:hover { background: #1a3a5a; border-color: #00d4ff; }
.feedback { display: none; margin-top: 10px; padding: 10px; border-radius: 5px; font-size: 0.95em; }
.correct { color: #40ffaa; background: rgba(64, 255, 170, 0.1); }
.incorrect { color: #ff6b6b; background: rgba(255, 107, 107, 0.1); }
.footer { text-align: center; margin-top: 50px; font-size: 0.85em; color: #5c7a99; border-top: 1px solid #1a3a5a; padding-top: 20px; }

/* Make body text high-contrast for readability */
body, p, li { color: #e6f1ff; }

.series-kicker {
    color: #00d4ff;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    margin: -10px 0 18px;
}

.study-article ul {
    margin: 1rem 0 1.25rem 1.25rem;
    padding-left: 1rem;
}

.study-article li {
    margin: 0.4rem 0;
}

.study-divider {
    border: 0;
    border-top: 1px solid #1a3a5a;
    margin: 2.5rem 0;
}

.intro-section,
.media-section,
.supplement-card {
    background: linear-gradient(145deg, #0d2a4a, #071c33);
    border-radius: 12px;
    padding: 25px;
    margin: 28px 0 40px;
    border-left: 5px solid #00d4ff;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.media-section {
    border: 1px solid #1a4a7a;
    border-left: 5px solid #00d4ff;
}

.study-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid #1a3a5a;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.image-note {
    margin-top: 12px;
    font-size: 0.95em;
    color: #b0d4f1;
}

.image-note a,
.supplement-card a,
.nav-links a,
.page-nav a,
.series-card {
    color: #72dcff;
}

.image-note a:visited,
.supplement-card a:visited,
.nav-links a:visited,
.page-nav a:visited,
.series-card:visited {
    color: #72dcff;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.series-grid-compact {
    gap: 0.75rem;
    margin: 1rem 0 0;
}

.series-card {
    display: block;
    min-height: 190px;
    padding: 1rem;
    border-radius: 10px;
    background: #112b48;
    border: 1px solid #1a4a7a;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.series-grid-compact .series-card {
    min-height: 0;
    padding: 0.85rem;
}

.series-card:hover {
    transform: translateY(-2px);
    border-color: #00d4ff;
    box-shadow: 0 10px 24px rgba(0,0,0,0.28);
}

.series-card span {
    color: #66d9ef;
    font-size: 0.85rem;
    font-weight: 700;
}

.series-card h3 {
    margin: 0.45rem 0 0.65rem;
    text-align: left;
    font-size: 1.2rem;
}

.series-grid-compact .series-card h3 {
    font-size: 1.02rem;
    margin: 0.3rem 0 0.45rem;
}

.series-card p {
    margin: 0 0 0.85rem;
}

.series-grid-compact .series-card p {
    font-size: 0.95rem;
    line-height: 1.45;
    margin-bottom: 0;
}

.series-card small {
    color: #b0d4f1;
    line-height: 1.5;
}

.comparison-card,
.supplement-card-link {
    border-color: rgba(0, 212, 255, 0.55);
}

.terms-note h2 {
    margin-top: 0;
}

.major-issue-note,
.study-callout {
    margin: 22px 0 28px;
    padding: 20px 22px;
    border-radius: 12px;
    color: #e7dcff;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.35), 0 0 16px rgba(179, 139, 255, 0.45);
}

.major-issue-note {
    background: linear-gradient(145deg, #1a1328, #120f1e);
    border: 1px solid #6e4bb7;
    border-left: 5px solid #b38bff;
}

.study-callout {
    background: linear-gradient(145deg, #102b3a, #0b1f2f);
    border: 1px solid #2a526f;
    border-left: 5px solid #ffb347;
    color: #d7e6f7;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.25);
}

.major-issue-label,
.study-callout-label {
    margin: 0 0 0.5rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 0.82em;
}

.major-issue-label {
    color: #e0d3ff;
}

.study-callout-label {
    color: #ffd28a;
}

.major-issue-note h3,
.study-callout h3 {
    margin: 0 0 0.75rem;
    text-align: left;
    font-size: 1.15em;
}

.major-issue-note h3 {
    color: #f0e7ff;
}

.study-callout h3 {
    color: #ffe0a6;
}

.major-issue-note p,
.study-callout p {
    margin-bottom: 0.85rem;
}

.major-issue-note p:last-child,
.study-callout p:last-child {
    margin-bottom: 0;
}

.major-issue-note a,
.study-callout a {
    color: #9ad0ff;
    text-decoration: underline;
}

.page-nav,
.nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin: 26px 0;
    padding-top: 20px;
    border-top: 1px solid #1a3a5a;
    text-align: center;
}

.page-nav a,
.nav-links a,
.supplement-card a {
    text-decoration: none;
    font-weight: 700;
}

.page-nav a:hover,
.nav-links a:hover,
.supplement-card a:hover {
    color: #4fc3f7;
    text-shadow: 0 0 8px rgba(0, 198, 255, 0.5);
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.scripture-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.scripture-table th,
.scripture-table td {
    border: 1px solid #1a4a7a;
    padding: 0.85rem;
    text-align: left;
    vertical-align: top;
}

.scripture-table th {
    color: #ffffff;
    background: #0d2a4a;
}

.scripture-table td {
    background: rgba(17, 43, 72, 0.75);
}

.report-issue {
    margin-top: 40px;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #1a3a5a;
    background: #112b48;
    box-shadow: inset 0 0 14px rgba(0,0,0,0.35);
}

.report-issue h2 {
    margin-top: 0;
    text-align: left;
    color: #4fc3f7;
    border-left: 4px solid #4fc3f7;
    padding-left: 15px;
    font-size: 1.6em;
}

.report-note {
    color: #b0d4f1;
    margin-bottom: 18px;
    font-size: 0.95em;
}

.report-issue form {
    display: grid;
    gap: 14px;
}

.report-issue label {
    font-weight: 600;
    color: #e6f1ff;
    font-size: 0.95em;
}

.report-issue select,
.report-issue input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #1a3a5a;
    background: #0a1f35;
    color: #e6f1ff;
    font-size: 0.95em;
    box-sizing: border-box;
}

.report-issue button {
    justify-self: start;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #00d4ff;
    background: transparent;
    color: #00d4ff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-issue button:hover {
    background: rgba(0, 212, 255, 0.12);
    color: #4fc3f7;
    border-color: #4fc3f7;
}

@media (max-width: 760px) {
    .container {
        padding: 28px 20px;
    }

    .series-grid {
        grid-template-columns: 1fr;
    }

    .page-nav,
    .nav-links {
        display: grid;
        justify-content: stretch;
    }
}
