﻿﻿﻿ /* MASTER REFUGE CSS — matched to Grefuge.html head structure */
/* =========================
   RESET & BASE
========================= */


html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    background-color: #0A1428;
    background-image: radial-gradient( circle at top center, rgba(45, 70, 140, 0.65) 0%, rgba(25, 45, 95, 0.35) 45%, rgba(10, 20, 45, 0.05) 85% ), linear-gradient( to bottom, #0A1428 0%, #0B1730 40%, #0A1428 100% );
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

header {
    padding-top: 30px;
}
header img {
    max-width: 780px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
        border: 5px solid #b29408;
    border-radius: 1px;
}


/* =========================
   TYPOGRAPHY
========================= */
h1 {
    color: #8b5a3c;
    text-align: center;
    font-size: 16px;
    margin: 20px 0 24px;
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", serif;
    text-transform: uppercase;
}

h2 {
    font-size: 14px;
    color: #5A2F1A;
    text-align: center;
    margin: 16px 0 8px;
}

h3 {
    font-size: 1.15rem;
    color: #5A2F1A;
    text-align: center;
    margin: 12px 0;
}

p {
    font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
    margin: 10px 0 0.8em;
    color: #000;
    line-height: 1.05;
    font-size: 14px;
}

/* =========================
   LINKS
========================= */
a {
    color: #5A2F1A;
    text-decoration: none;
}

    a:hover {
        color: #d7ac6d;
        text-decoration: underline;
    }

ul {
    margin: 10px 0;
    padding-left: 22px;
    list-style: disc;
}

li {
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", serif;
    font-size: 14px;
    line-height: 1.3;
    margin: 6px 0;
}

ul.no-bullets {
    list-style: none;
    padding-left: 10px;
}






/* =========================
   SIMPLE GRID
========================= */
.poem, .blog-post {
    width: 100%;
    max-width: 650px;
    margin: 20px auto;
    padding: 20px;
    border: 5px solid #3a0000;
    border-radius: 8px;
    background-color: #fcf3d1;
    box-shadow: 1px 1px 10px #000;
}

.topic {
 
    max-width: 650px;
    margin: 20px auto;
    padding: 20px;
    border: 5px solid #3a0000;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 1px 1px 10px #000;
}

.post-item {
    width: 100%;
    max-width: 650px;
    margin: 20px auto;
    padding: 20px;
    border: 5px solid #3a0000;
    border-radius: 8px;
    background-color: #f6ecc5;
    box-shadow: 1px 1px 10px #000;
}


.quote-call, .blockquote, .blog-highlight {
    padding: 15px 18px;
    margin: 25px 0;
    border-left: 4px solid #b3986e;
    background-color: #fdf7d8;
    font-style: italic;
}

.simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 22px;
    justify-content: center;
    padding: 0 10px;
    max-width: 1000px;
    margin: 20px auto;
}

.grid-box {
    background-color: #f2e2c2;
    padding: 5px;
    text-align: center;
    transition: transform 0.2s;
    width: 100%;
}


    .grid-box a {
        font-size: 14px;
        color: #000;
        text-decoration: none;
    }


    /* IMPORTANT: no fake photo frame */
    .grid-box img {
        width: 100%;
        max-width: 350px;
        height: auto;
        display: block;
        margin: 1px auto 1px;
        padding: 1px;
        border: 5px solid #b29408;
        border-radius: 1px;
        box-shadow: none;
        background: none;
    }

.truth-title {
    text-align: center;
    color: #d7b56d;
    font-size: 2rem;
    margin: 30px 0 20px;
    font-family: "Palatino Linotype", serif;
}

.intro-passage {
    max-width: 700px;
    margin: 30px auto;
    padding: 28px;
    text-align: center;
    background-color: #f4ecd8;
    color: #2b1d12;
    border: 2px solid rgba(178, 148, 8, 0.35);
    border-radius: 10px;
    line-height: 1.6;
}

.blogs-menu-box {
    max-width: 500px;
    margin: 20px auto;
    padding: 18px;
    text-align: center;
    background-color: #d8c06b;
    border: 2px solid #8b6a2b;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

    .blogs-menu-box h2 {
        margin: 0;
        font-size: 2rem;
    }

    .blogs-menu-box a {
        color: #4a2414;
        text-decoration: none;
        font-weight: bold;
    }

@media (max-width: 600px) {
    .intro-passage {
        padding: 18px 16px;
        max-width: 92%;
        font-size: 13px;
        line-height: 1.45;
    }
}
/* =========================
   BUTTONS (shared site style)
========================= */
.button-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px auto;
    padding: 0 10px;
}

.portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 52px;
    padding: 8px 10px;
    font-size: 12.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    color: #fff;
    background: #000;
    border: 2px solid rgba(73, 45, 32, 0.5);
    border-radius: 12px;
    text-decoration: none;
}
/* =========================
   LAYOUT / CONTENT WRAPPERS
========================= */
.main-content {
    margin-left: 50px;
    padding: 10px;
    transition: margin-left 0.3s;
}

.content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* general “boxed” content */
.content-box {
    max-width: 700px;
    margin: 10px auto;
    padding: 14px 16px;
    border: 6px solid rgba(172, 95, 3, 0.5);
    box-shadow: 1px 1px 10px #000;
    background-color: #fcf3d1;
    font-size: 16px;
    line-height: 1.3;
    border-radius: 8px;
}

/* =========================
   MOBILE
========================= */



/* ---------- Tablets + Mobile ---------- */
@media (max-width: 768px) {

    .main-content {
        margin-left: 0 !important;
        padding: 10px;
    }

    .portal-button {
        min-width: 100px;
        height: 48px;
        font-size: 12px;
    }

    .content,
    .content-box,
    .topic,
    .poem,
    .blog-post,
    .post-item,
    .blockquote {
        width: 100%;
        max-width: 100%;
        margin: 12px auto;
        padding: 14px;
    }

    ul {
        padding-left: 14px;
        margin-left: 0;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    h1 {
        font-size: 1.4rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}


/* ---------- Grid collapse for phones ---------- */
@media (max-width: 600px) {

    .simple-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 8px;
        margin: 16px auto;
    }

    .grid-box {
        max-width: 100%;
        margin: 0 auto;
    }

        .grid-box img {
            width: auto;
            max-width: 100%;
            height: auto;
            margin: 8px auto 12px;
            display: block;
        }

    h1 {
        font-size: 1.4rem;
    }
}


/* ---------- iPhone + very small screens ---------- */
@media (max-width: 480px) {

    .button-row {
        gap: 8px;
        padding: 0 5px;
    }

    .portal-button {
        min-width: 98px;
        height: 46px;
        font-size: 11.5px;
    }

    .floating-menu {
        width: 150px;
        left: 8px;
        top: 70px;
    }

    .simple-grid {
        padding: 0 6px;
    }
}

/* =====================
   STACKED MOBILE TABLES
   ===================== */
@media (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

        thead tr {
            display: none;
        }

    tr {
        margin-bottom: 18px;
        border: 2px solid #3a0000;
        border-radius: 8px;
        background-color: #fcf3d1;
        box-shadow: 1px 1px 8px rgba(0,0,0,0.15);
        padding: 8px;
    }

    td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 12px;
        border-bottom: 1px solid #d4b88a;
        font-size: 14px;
    }

        td:last-child {
            border-bottom: none;
        }

        td:before {
            content: attr(data-label);
            font-weight: bold;
            color: #5A2F1A;
            width: 48%;
            flex-shrink: 0;
        }
}
