/* ---------------------------------------------------------
   Modern Pastor’s Version (MPV Bible)
   Global Stylesheet — Palette A
   --------------------------------------------------------- */

/* Color palette (Palette A) */
:root {
    --mpv-primary-blue:  #1E4D8F;
    --mpv-deep-blue:     #0F2E5C;
    --mpv-light-blue:    #E6EEF8;

    --mpv-cool-grey:     #F2F4F7;
    --mpv-dark-grey:     #33373D;

    --mpv-accent-green:  #5E9A63;
    --mpv-soft-brown:    #A47C59;
    --mpv-highlight-gold:#D9A441;
}

/* ---------------------------------------------------------
   GLOBAL
--------------------------------------------------------- */

html, body {
    height: 100%;
}

body {
    background-color: #ffffff;
    color: var(--mpv-dark-grey);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--mpv-primary-blue);
    text-decoration: none;
}

a:hover {
    color: var(--mpv-deep-blue);
    text-decoration: underline;
}

.mpv-main {
    min-height: 70vh;
}

/* Limit super-wide text lines on big screens (reading comfort) */
.mpv-reading-text,
.mpv-main .container {
    max-width: 980px;
}

/* On full-width sections we still want content centered */
.hero-section > .container,
section > .container {
    max-width: 1120px;
}

/* Remove underline from all links */
a,
a:visited {
    text-decoration: none !important;
}

/* Optional: add underline on hover only (looks good with navbars) */
a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   NAVBAR
--------------------------------------------------------- */

.navbar-mpv {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0px 1px 6px rgba(0,0,0,0.05);
}

.navbar-brand {
    font-weight: 700;
    color: var(--mpv-deep-blue);
}

.navbar-brand:hover {
    color: var(--mpv-primary-blue);
}

.nav-link {
    font-weight: 500;
    color: var(--mpv-dark-grey) !important;
}

.nav-link.active,
.nav-link:hover {
    color: var(--mpv-primary-blue) !important;
}

.mpv-logo {
    height: 40px;
    width: auto;
}

/* Slightly reduce navbar visual weight on small screens */
.navbar-toggler {
    border: none;
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.btn-mpv-primary {
    background-color: var(--mpv-primary-blue);
    border-color: var(--mpv-primary-blue);
    color: #ffffff;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.55rem 1.5rem;
}

.btn-mpv-primary:hover {
    background-color: var(--mpv-deep-blue);
    border-color: var(--mpv-deep-blue);
    color: #ffffff;
}

.btn-mpv-outline {
    background-color: transparent;
    border: 2px solid var(--mpv-primary-blue);
    border-radius: 999px;
    font-weight: 600;
    color: var(--mpv-primary-blue);
    padding: 0.55rem 1.5rem;
}

.btn-mpv-outline:hover {
    background-color: var(--mpv-light-blue);
    color: var(--mpv-deep-blue);
}

/* ---------------------------------------------------------
   HERO SECTIONS (Compact)
--------------------------------------------------------- */

/* ===== FINAL COMPACT + STYLED HERO ===== */

.hero-section {
    padding-top: 1.25rem !important;
    padding-bottom: 1.75rem !important;
    background: radial-gradient(circle at top left,
        rgba(30,77,143,0.09),
        transparent 60%),
        radial-gradient(circle at bottom right,
        rgba(94,154,99,0.08),
        transparent 55%);
}

.hero-section .container,
.hero-section .container-fluid {
    padding-top: 0.25rem !important;
    padding-bottom: 0 !important;
}

/* restore style + keep compact */
.hero-title {
    font-size: clamp(1.9rem, 2.5vw, 2.6rem) !important; /* still "hero", but smaller */
    font-weight: 800 !important;                       /* restore bold */
    color: var(--mpv-deep-blue) !important;            /* restore blue */
    margin-top: 0 !important;
    margin-bottom: 0.35rem !important;
}

/* restore style + compact spacing */
.hero-subtitle {
    font-size: 1.05rem !important;         /* restore original sizing */
    color: #4b5563 !important;             /* restore gray text */
    max-width: 640px;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;     /* spacing before the main card */
}


/* ---------------------------------------------------------
   BADGES & PILLS
--------------------------------------------------------- */

.mpv-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background-color: var(--mpv-cool-grey);
    color: #4b5563;
    font-size: 0.8rem;
}

.mpv-pill span.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--mpv-accent-green);
}

/* ---------------------------------------------------------
   CARDS
--------------------------------------------------------- */

.mpv-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.04);
}

.mpv-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--mpv-light-blue);
    color: var(--mpv-deep-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

/* ---------------------------------------------------------
   SECTIONS & TITLES
--------------------------------------------------------- */

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--mpv-deep-blue);
    margin-bottom: 0.75rem;
}

.section-muted {
    color: #6b7280;
}

/* Add a bit of vertical rhythm */
section {
    scroll-margin-top: 4.5rem; /* anchor links scroll offset */
}

/* ---------------------------------------------------------
   VERSES / READER
--------------------------------------------------------- */

.scripture-verse {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.scripture-verse .number {
    font-weight: bold;
    color: var(--mpv-primary-blue);
    margin-right: 0.4rem;
}

/* Reading paragraphs inside MPV reading text */
.mpv-reading-text p {
    margin-bottom: 1rem;
    font-size: 1.02rem;
}

/* Slight indent for paragraphs can be added if desired */
/* .mpv-reading-text p + p { text-indent: 1.5em; } */

/* ---------------------------------------------------------
   LICENSE / CODE BLOCKS
--------------------------------------------------------- */

pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* On small screens, allow horizontal scroll instead of squishing text */
pre {
    overflow-x: auto;
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.mpv-footer {
    font-size: 0.9rem;
    color: #6b7280;
}

.footer-link:hover {
    color: var(--mpv-primary-blue) !important;
}

/* ---------------------------------------------------------
   MISC UTILITIES
--------------------------------------------------------- */

.bg-mpv-blue      { background-color: var(--mpv-primary-blue); }
.bg-mpv-deep      { background-color: var(--mpv-deep-blue); }
.bg-mpv-light     { background-color: var(--mpv-light-blue); }
.bg-mpv-coolgrey  { background-color: var(--mpv-cool-grey); }
.bg-mpv-green     { background-color: var(--mpv-accent-green); }
.bg-mpv-brown     { background-color: var(--mpv-soft-brown); }
.bg-mpv-gold      { background-color: var(--mpv-highlight-gold); }

.text-mpv-blue    { color: var(--mpv-primary-blue); }
.text-mpv-deep    { color: var(--mpv-deep-blue); }
.text-mpv-green   { color: var(--mpv-accent-green); }
.text-mpv-brown   { color: var(--mpv-soft-brown); }
.text-mpv-gold    { color: var(--mpv-highlight-gold); }

/* ---------------------------------------------------------
   RESPONSIVE TWEAKS
--------------------------------------------------------- */

/* Small screens (phones) */
@media (max-width: 575.98px) {

    .hero-section {
        padding: 2.75rem 0 2.25rem;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 0.98rem;
    }

    .mpv-card {
        padding: 1.25rem;
    }

    .navbar-mpv .navbar-brand span {
        font-size: 0.95rem;
    }

    .btn-mpv-primary,
    .btn-mpv-outline {
        width: 100%;
        justify-content: center;
    }

    /* Make columns in compare/read pages feel less cramped */
    .scripture-verse {
        font-size: 1rem;
    }

    .mpv-reading-text {
        font-size: 1rem;
    }
}

/* Medium screens (tablets) */
@media (min-width: 576px) and (max-width: 991.98px) {

    .hero-section {
        padding: 3.25rem 0;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1.02rem;
    }

    .mpv-card {
        padding: 1.4rem;
    }
}

/* Large screens (desktops) */
@media (min-width: 992px) {
    .hero-section {
        padding: 4.5rem 0;
    }

    .hero-title {
        font-size: 2.4rem;
    }
}

/* ------------------------------------------------
   GLOBAL MPV BUTTON STYLES
   Make all buttons match the homepage buttons
--------------------------------------------------*/

:root {
    --mpv-blue: #0d47a1;
    --mpv-blue-dark: #09367a;
    --mpv-blue-light: #e7f0ff;
    --mpv-grey: #f5f7fa;
}

/* Keep hero heading + subtitle nicely centered */
.hero-section .hero-title,
.hero-section .hero-subtitle {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* Center the hero card content under the title */
.hero-section .mpv-card {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* Center the main reading text column on Read page (and similar pages) */
.mpv-reading-text {
    max-width: 960px;     /* or 720px if you want a more “book-like” narrow column */
    margin-left: auto;
    margin-right: auto;
}

/* If you have any previous rule giving these a left margin, override it */
.hero-section,
.mpv-reading-text,
.mpv-card {
    /* remove any stray left-offsetting that might exist elsewhere */
    margin-left: auto !important;
}


/* Primary button (filled blue) */
.btn-mpv-primary,
.btn.btn-primary {
    background-color: var(--mpv-blue) !important;
    border-color: var(--mpv-blue) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    transition: 0.2s ease-in-out;
}

.btn-mpv-primary:hover,
.btn.btn-primary:hover {
    background-color: var(--mpv-blue-dark) !important;
    border-color: var(--mpv-blue-dark) !important;
}

/* Outline button */
.btn-mpv-outline,
.btn.btn-outline-primary {
    background-color: transparent !important;
    border: 2px solid var(--mpv-blue) !important;
    color: var(--mpv-blue) !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    transition: 0.2s ease-in-out;
}

.btn-mpv-outline:hover,
.btn.btn-outline-primary:hover {
    background-color: var(--mpv-blue) !important;
    color: #fff !important;
}

/* Make button groups and small buttons match too */
.btn,
button {
    border-radius: 8px !important;
    font-weight: 500;
}

/* Restore proper appearance for Bootstrap button groups */
.btn-group > .btn {
    border-radius: 0 !important;           /* flatten all by default */
    margin-right: 0;
}

.btn-group > .btn:first-child {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.btn-group > .btn:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.btn-group > .btn:not(:first-child):not(:last-child) {
    border-radius: 0 !important;           /* middle buttons stay square */
}

/* Dropdown hover + active styling using MPV theme variables */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: var(--mpv-blue-light);   /* soft light blue */
    color: var(--mpv-blue-dark);               /* dark blue text */
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background-color: var(--mpv-blue);         /* main brand blue */
    color: #fff;
}

.content-editor-wide {
    max-width: 95%;
    margin: 0 auto;
}

/* Highlight the Admin dropdown */
.nav-admin > a.nav-link {
    color: #D38A22 !important;   /* Orange */
    font-weight: 600;
}

/* Hover + focus */
.nav-admin > a.nav-link:hover,
.nav-admin > a.nav-link:focus {
    color: #B0721C !important;   /* Darker orange */
}

/* Highlight when the dropdown is open */
.nav-admin.show > a.nav-link {
    color: #B0721C !important;
}

/* Living Story Bible button (green theme) */
.btn-lsb {
    background-color: #3c7f4a;     /* strong green */
    border-color: #3c7f4a;
    color: #fff;
}

.btn-lsb:hover {
    background-color: #355f40;     /* darker green */
    border-color: #355f40;
    color: #fff;
}

.btn-lsb-outline {
    background-color: transparent;
    border: 2px solid #3c7f4a;
    color: #3c7f4a;
}

.btn-lsb-outline:hover {
    background-color: #3c7f4a;
    color: #fff;
}

/* Living Story Bible dropdown item (green highlight) */
.dropdown-item-lsb {
    color: #2f6b3e !important;       /* forest green text */
    font-weight: 600;
}

.dropdown-item-lsb:hover,
.dropdown-item-lsb:focus {
    background-color: #e4f3e9 !important; /* soft green background */
    color: #2a5e35 !important;            /* darker green text */
}

/* Let the Living Story hero title go green when needed */
.hero-section .hero-title.lsb-accent {
    color: #2f6b3e !important;
}

/* Let the Admin hero title go orange when needed */
.hero-section .hero-title.admin-accent {
    color: #d35400 !important;
}

/* ---------------------------------------------------------
   Living Story — Sync Scroll Switch (Green Theme)
--------------------------------------------------------- */

/* Track (off state) */
.form-check-input {
    border-color: #3c7f4a !important;
    background-color: #dfeee3 !important; /* light green */
}

/* Track (on state) */
.form-check-input:checked {
    background-color: #3c7f4a !important;  /* main green */
    border-color: #3c7f4a !important;
}

/* Improve the focus state */
.form-check-input:focus {
    border-color: #2f6b3e !important;
    box-shadow: 0 0 0 0.2rem rgba(60,127,74,0.25) !important;
}

/* ============================================================
   ADMIN DROPDOWN — MPV ORANGE THEME
   ============================================================ */

/* Admin dropdown trigger (text) */
.nav-admin > a.nav-link {
    color: #d35400 !important;   /* MPV orange */
    font-weight: 600;
}

/* Hover / expanded */
.nav-admin > a.nav-link:hover,
.nav-admin > a.nav-link:focus,
.nav-admin.show > a.nav-link {
    color: #e67e22 !important;
}

/* Dropdown menu background */
.nav-admin .dropdown-menu {
    background-color: #FFFDFC; /* subtle warm orange-tint */
    border: 1px solid #f5c29f;
}

/* Dropdown links */
.nav-admin .dropdown-item {
    color: #d35400 !important;
    font-weight: 400;
}

/* Hover effect for dropdown items */
.nav-admin .dropdown-item:hover {
    background-color: #ffe5d0 !important;
    color: #a84300 !important;
}

/* Divider styling */
.nav-admin .dropdown-divider {
    border-top: 1px solid #f1c6a8;
}
/* ---------------------------------------------------------
   Living Story – Green navbar link
--------------------------------------------------------- */

.navbar-mpv .nav-link.nav-lsb {
    color: #2f6b3e !important;      /* forest green */
    font-weight: 600;
}

.navbar-mpv .nav-link.nav-lsb:hover,
.navbar-mpv .nav-link.nav-lsb:focus,
.navbar-mpv .nav-link.nav-lsb.active {
    color: #2a5e35 !important;      /* darker green on hover/active */
}

/* ---------------------------------------------------------
   Living Story – Black default, green when active
--------------------------------------------------------- */

.navbar-mpv .nav-link.nav-lsb {
    color: #000 !important;      /* Default = black */
    font-weight: 500;
}

.navbar-mpv .nav-link.nav-lsb:hover,
.navbar-mpv .nav-link.nav-lsb:focus {
    color: #2f6b3e !important;   /* Hover = green */
}

/* Active page = green */
.navbar-mpv .nav-link.nav-lsb.active {
    color: #2f6b3e !important;   /* forest green */
    font-weight: 600;            /* make it stand out */
}

/* MPV reading page paragraph style (read.php) */
.mpv-reading-text p {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    text-indent: 1.5em;
}




