/* =========================================================
   GLOBAL PAGE SETUP
========================================================= */
html {
    margin: 0;
    padding: 0;
    background: #21233b url(images/gradient.gif) repeat-x top center;
    /* smooth scrolling */
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    display: table;
    color: #21233b;

    background:
        url(images/The-True-World-Order.jpg) no-repeat center top;
}

.padded-table td {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 60px;
    padding-right: 60px;
    background-color: #ffffff;
}

/* =========================================================
   HEADER / TOP NAVIGATION BAR
========================================================= */
/* Top Nav Stripes */
#image1 {
    height: 35px;
    position: relative;
    z-index: 1;

    background:
        repeating-linear-gradient(
            135deg,
            #7563b9 0px,
            #7563b9 2px,
            #6e5bb4 2px,
            #6e5bb4 4px
        );
}

/* =========================================================
   TOP NAVIGATION BUTTONS
========================================================= */

#first ul {
    list-style-type: none;
    margin: 0;
    padding: 3px 5px;
    overflow: hidden;
    text-align: center; /* center the buttons */
}

#first li {
    float: none;            /* remove left alignment */
    display: inline-block;  /* keep buttons horizontal */
}

#first a {
    display: block;
    margin: 2px 4px;          /* tighter spacing between buttons */
    padding: 4px 20px;        /* slightly taller, slightly narrower */
    text-align: center;
    text-decoration: none;
    background-color: #6555a8;
    color: #e8e2fe;
    border-radius: 2px;       /* sharper corners */
    font-size: 0.85em;        /* slightly smaller, cleaner */
    font-weight: bold;

    /* new shadow-box */
    box-shadow: 1px 1px 3px #4e2aaf; /* strong purple shadow */
}

#first a:hover {
    background-color: #8c7acc;
    color: #ffffff;
}

#first a.current-page {
    background-color: #574991 !important;
    color: #ffffff !important;
}

/* =========================================================
   SIDE NAVIGATION — AREA
========================================================= */

/* OUTER STRIPED FRAME (150px column) */
#side-frame {
    width: 150px;
    box-sizing: border-box;
    background:
        repeating-linear-gradient(
            45deg,
            #635ba2 0px,
            #635ba2 2px,
            #5c5399 2px,
            #5c5399 4px
        );
    border: 1px solid #5d34d4;
    border-radius: 3px;
    padding: 6px 12px 6px 12px; /* top right bottom left */
    box-sizing: border-box;
    text-align: center;
    margin-top: 75px;
}

/* INNER PURPLE PANEL — shrink‑wrap around buttons */
#side-nav {
    display: inline-block;
    background-color: #846ad6;
    border: 1px solid #5d34d4;
    border-radius: 2px;
    padding: 8px;              /* EXACT 8px purple border */
    box-sizing: content-box;
}

/* LIST RESET */
#side-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* BUTTON SPACING */
#side-nav li {
    margin-bottom: 3px;
}

/* remove extra bottom space */
#side-nav li:last-child {
    margin-bottom: 0;
}

/* BUTTONS — fixed width so purple can size correctly */
#side-nav a {
    display: block;
    height: 20px;
    padding: 2px;
    width: 105px;
    text-align: center;
    box-sizing: border-box;
    /* NEW — bold shadow */
 /* Strong purple shadow, down + right */
    box-shadow: 1px 2px 1px 1px #4e2aaf; /* x-offset, y-offset, blur, color */
}

/* =========================================================
   LINK STYLES (MENU BUTTON LOOKS)
========================================================= */

.class1 a:link,
.class1 a:visited {
    text-decoration: none;
    color: #e8e2fe;
    background-color: #6555a8;
    font-size: 0.875em;
    font-weight: bold;
    text-align: center;
}

.class1 a:hover,
.class1 a:active {
    color: #ffffff;
    background-color: #8c7acc;
}

.class2 a:link,
.class2 a:visited {
    text-decoration: none;
    color: #485366;
    background-color: #ffffff;
    font-size: 0.875em;
    font-weight: bold;
}

.class2 a:hover,
.class2 a:active {
    color: #262c36;
    background-color: #ddb9ff;
}

.class3 a:link,
.class3 a:visited {
    text-decoration: none;
    color: #485366;
    background-color: #ede7f7;
    font-size: 0.875em;
    font-weight: bold;
}

.class3 a:hover,
.class3 a:active {
    color: #262c36;
    background-color: #ddb9ff;
}

.class4 a:link,
.class4 a:visited {
    text-decoration: none;
    color: #aaaaaa;
    background-color: #ffffff;
    font-size: 0.7em;
}

.class4 a:hover,
.class4 a:active {
    color: #485366;
    background-color: #ede7f7;
}

.class5 a:link,
.class5 a:visited {
    color: #aaaaaa;
    background-color: #ffffff;
    font-size: 0.7em;
}

.class5 a:hover,
.class5 a:active {
    color: #485366;
    background-color: #ede7f7;
}

.class6 a:link,
.class6 a:visited {
    color: #aaaaaa;
    background-color: #ffffff;
    font-size: 0.8em;
}

.class6 a:hover,
.class6 a:active {
    color: #485366;
    background-color: #ede7f7;
}
/* -----------------------------------------------------------
   SHARE ICON STYLING
   - Used for the small share.png icon placed before [SHARE PAGE]
   - Matches site’s gray theme (#aaaaaa text) but slightly darker (#888888)
   - Filter recolors black PNG icons without needing multiple image files
   - Height scales with surrounding text (em-based)
   - Vertical-align keeps icon centered with bracket text
----------------------------------------------------------- */
.share-icon {
    height: 1.2em;
    vertical-align: middle;
    margin-right: 4px;
    filter: invert(53%) sepia(0%) saturate(0%) hue-rotate(180deg)
            brightness(90%) contrast(85%);
}


/* =========================================================
   TEXT / CONTENT STYLES
========================================================= */

p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 115%;
    line-height: 1.7;
    text-indent: 30px;
}

p.para2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 115%;
    line-height: 1.7;
    text-indent: 0px;
}

p.copyright,
p.anchor {
    font-size: 95%;
    text-align: center;
    text-indent: 0;
    line-height: 1.7;
}

p.title-center {
    margin: 0;
    padding: 0;
    text-indent: 0;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 115%;
    line-height: 1.3;
}

p.author {
    text-align: center;
    text-indent: 0;
    margin: 0;
    padding: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: 115%;
    line-height: 1.3;
}

p.R2 {
    font-size: 115%;
    text-align: center;
    text-indent: 0;
    margin: 0;
    padding: 0;
    font-weight: 600;
    line-height: 1.3;
    font-family: Georgia, "Times New Roman", serif;
}

/* =========================================================
   "ul" and "li"for table of contents for Books
========================================================= */
ul.toc {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

ul.toc li {
    line-height: 3;
    font-family: Georgia, "Times New Roman", serif;
}

/* =========================================================
   HEADINGS
========================================================= */

h1 {
    font-size: 230%;
    color: #7365a0;
    font-weight: bold;
    letter-spacing: -0.05em;
    position: relative;
    margin: 0.7em 0;
    padding-top: 3px;
    width: 100%;
    font-family: "Times New Roman", Times, serif;
}

h2 {
    font-size: 115%;
    text-align: center;
    position: relative;
    margin: 0;
    padding: 0;
    font-weight: 500;
    line-height: 1.5;
    width: 100%;
    font-family: Georgia, "Times New Roman", serif;
}

h3 {
    font-size: 115%;
    text-align: center;
    position: relative;
    font-weight: 500;
    line-height: 1.5;
    font-family: Georgia, "Times New Roman", serif;
}

h4 {
    font-size: 130%;
    color: #7365a0;
    font-weight: bold;
    letter-spacing: -0.05em;
    position: relative;
    margin: 0.7em 0;
    padding-top: 3px;
    width: 100%;
}

/* =========================================================
   HEADING GRADIENT OVERLAY
========================================================= */

h1 span,
h4 span {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    background: url(images/gradient_1.png) repeat-x;
}

h1 span,
h3 span {
    background: url(images/gradient_2.png) repeat-x;
}

/* =========================================================
   PURPLE FADED UNDERLINE FOR HEADINGS
========================================================= */

h1::after,
h4::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    margin-top: 6px;

    background: linear-gradient(
        to right,
        #7365a0 0%,
        rgba(115, 101, 160, 0.45) 45%,
        rgba(115, 101, 160, 0) 100%
    );
}
/* =========================================================
   MOBILE ADJUSTMENTS
========================================================= */
@media (max-width: 768px) {

    body {
        font-size: 90%;
    }

    p,
    p.para2,
    p.title-center,
    p.R2,
    p.author {
        font-size: 105%;
        line-height: 1.6;
    }

    h1 { font-size: 220%; }
    h2 { font-size: 105%; }
    h3 { font-size: 170%; }
    h4 { font-size: 135%; }
}

/* =========================================================
   FOOTER + BOTTOM LINKS
========================================================= */

/* Main footer container */
.site-footer {
    text-align: center;
    margin-top: 15px;
    padding: 6px 10px;

    /* Soft visible gradient (Enhancement #9) */
    background: linear-gradient(to top, #f7f3ff, #e6dcfa);

    border-top: 3px solid #7365a0;
}

/* [BACK TO TOP] area */
.footer-backtop {
    text-align: center;
    margin-bottom: 5px;
}

/* Back-to-top link appearance */
.footer-backtop a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.85em;
    font-weight: bold;
    color: #485366;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.footer-backtop a:hover {
    background-color: #ddb9ff;
    color: #262c36;
}

.footer-backtop a:active {
    transform: translateY(1px);
}

/* Footer link rows */
.footer-row {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px; /* tighter spacing between links */
}

/* Add "|" separators between footer links */
.footer-row li + li::before {
    content: "|";
    color: #485366;
    margin: 0 4px; /* reduced spacing around the bar */
    font-weight: normal;
    opacity: 0.7; /* softer, more elegant */
}

/* Footer link appearance */
.footer-row a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.85em;
    font-weight: bold;
    color: #485366;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    position: relative; /* required for underline animation */
}

/* Elegant underline animation ONLY for footer links (Enhancement #10) */
.footer-row a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 1px;
    background-color: currentColor;
    transition: width 0.2s ease;
}

.footer-row a:hover::after {
    width: 100%;
}

.footer-row a:hover {
    background-color: #ddb9ff;
    color: #262c36;
}

.footer-row a:active {
    transform: translateY(1px);
}
/* Center‑out underline animation ONLY for footer links */
.footer-row a {
    position: relative;
}

.footer-row a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.footer-row a:hover::after {
    width: 100%;
}

/* =========================================================
   GLOBAL UI TRANSITIONS
========================================================= */

:root {
    --ui-transition: all 0.15s ease-in-out;
}

a,
#first a,
#second a,
.footer-row a,
.footer-backtop a,
.class1 a,
.class2 a,
.class3 a,
.class4 a,
.class5 a,
.class6 a,
h1,
h2,
h3,
h4,
a img {
    transition: var(--ui-transition);
}


/* =========================================================
   REFTAGGER LINK COLORS
========================================================= */
a.rtBibleRef {
    color: #5b9bd5 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

a.rtBibleRef:visited {
    color: #4472c4 !important;
}

a.rtBibleRef:hover {
    color: #7fb3e6 !important;
    text-decoration: none !important;
}

/* =========================================================
   FIGURE + CAPTION (auto‑match image width)
   Keeps per‑image customization intact
========================================================= */

figure {
    display: block;             /* allows width:80% to work */
    margin: 20px auto;          /* centers the figure */
    text-align: center;         /* centers caption text */
}

/* Image fills the figure width */
figure img {
    display: block;
    margin: 0 auto;             /* centers the image inside the figure */
    width: 100%;                /* matches figure width */
    height: auto;
}

/* Caption styling */
figcaption {
    margin-top: 8px;
    font-size: 0.9em;
    font-style: italic;
    color: #555;
    line-height: 1.5;
    max-width: 100%;
}

/* MOBILE */
@media (max-width: 600px) {
    figcaption {
        font-size: 0.8em;
        padding: 0 10px;
    }
}

/* =========================================================
   DAILY SCRIPTURE
========================================================= */

.scripture-card {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;

    /* Higher-contrast fade */
    background: linear-gradient(
        to bottom,
        #d8c9f0 0%,
        #f7f4fc 100%
    );

    padding: 25px;
    border-radius: 10px;
    box-sizing: border-box;
}

/* DATE — darker purple */
.daily-date {
    text-align: left;
    margin: 0 0 20px 0;
    font-style: italic;
    font-weight: 500;
    color: #3a2d6b;
}

.verse-box {
    background: #ffffff;
    border: 1px solid #d9d2ea;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: left;
}

/* Verse title */
.verse-reference {
    text-align: center;
    font-size: 130%;
    font-weight: bold;
    color: #4c3b86;
    text-decoration: underline;
    margin-bottom: 15px;
}

.daily-verse {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 115%;
    line-height: 1.8;
    text-align: left;
    margin: 0;
}

.context-box {
    background: #ffffff;
    border: 1px solid #d9d2ea;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

/* Context title */
.context-reference {
    text-align: center;
    font-size: 130%;
    font-weight: bold;
    color: #4c3b86;
    text-decoration: underline;
    margin-bottom: 15px;
}

.scripture-paragraph {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 115%;
    line-height: 1.8;
    text-align: left;
    margin: 0;
}

/* Restored superscript verse numbers */
.verse-number {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.65em;
    font-weight: bold;
    vertical-align: super;
    line-height: 1;
    margin-right: 2px;
    color: #7365a0;
}

/* =========================================================
   NAVIGATION LINKS — purple buttons with subtle shadow + lift
========================================================= */

.scripture-nav {
    margin: 30px 0;
    text-align: center;
}

.scripture-nav a {
    margin: 0 6px;
    text-decoration: none;
    font-weight: bold;

    color: #ffffff;
    background: #6a5aa8;
    padding: 6px 10px;
    border-radius: 6px;

    /* Subtle shadow */
    box-shadow: 0 2px 4px rgba(60, 20, 120, 0.25);

    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.scripture-nav a:hover {
    background: #7a6ac0;

    /* Hover lift */
    box-shadow: 0 4px 8px rgba(60, 20, 120, 0.35);
    transform: translateY(-2px);
}

/* =========================================================
   RELATED TEACHINGS
========================================================= */

.related-teachings {
    text-align: center;
    margin-top: 30px;

    background: #ffffff;
    border: 1px solid #d9d2ea;
    border-radius: 8px;
    padding: 20px;
}

.related-teachings h3 {
    margin: 0 0 6px 0;
    color: #4c3b86;
    font-weight: bold;
}

.related-list {
    display: inline-block;
    text-align: left;
    list-style: disc;
    padding-left: 25px;
    margin: 6px auto 0 auto;
}

.related-list li {
    margin: 10px 0;
    color: #5b9bd5;
}

.scripture-link {
    color: #5b9bd5;
    text-decoration: none;
    font-weight: bold;
}

.scripture-link:hover {
    color: #7fb3e6;
    text-decoration: underline;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
    .scripture-card {
        width: 100%;
        padding: 20px;
    }

    .verse-box,
    .context-box {
        padding: 15px;
    }

    .verse-reference,
    .context-reference {
        font-size: 120%;
    }

    .daily-verse,
    .scripture-paragraph {
        font-size: 105%;
        line-height: 1.7;
    }

    .related-teachings h3 {
        font-size: 110%;
    }

    .related-list {
        padding-left: 20px;
    }

    .scripture-nav a {
        display: inline-block;
        margin: 6px;
    }
}

/* =========================================================
   BRIDE FOOTER BANNER
========================================================= */

.footer-stripe {
    background:
        repeating-linear-gradient(
            135deg,
            #7563b9 0px,
            #7563b9 2px,
            #6e5bb4 2px,
            #6e5bb4 4px
        );
}

.footer-bride {
    background-color: #807ad0;
    text-align: center;
    vertical-align: middle;
    padding: 0;
}

.footer-bride img {
    display: block;
    margin: 0 auto;
    border: 0;
}

.scripture-btn {
    background: #4c3b86;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;

    box-shadow: 0 4px 0 #2a1a55; /* deep purple bar */
}

/* =========================================================
   COPYRIGHT BLOCK
========================================================= */
p.copyright {
    font-size: 95%;
    text-align: center;
    text-indent: 0;
    line-height: 1.7;
    color: #485366;
    letter-spacing: 0.3px;
    margin-top: 20px;
}

/* Make the link match the text */
a.copyright-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

a.copyright-link:hover {
    color: #7365a0; /* optional soft hover */
}
