body {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.06em; /* subtle spread across all text */
    background-color: rgba(215, 171, 107);
   margin: 0;
}

html {
    font-size: 16px; /* base font size; 1rem = 16px */
}
/* ===== HEADINGS ===== */
h1 {
    font-family: 'Palatino Linotype', serif;
    text-align: center;
    font-size: 20px;
    text-transform: uppercase;
    color: gold;
    line-height: 1.2;
    margin-top: 18px;
    margin-bottom: 0.5em;
}

h2 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-align: center;
    font-size: 18px;
    color: #7c4727;
    line-height: 1.2;
    margin-top: 1.1em;
    margin-bottom: 14px;
}
h3 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-align: center;
    font-size: 16px;
    color: #8b5a3c;
    line-height: 1.2;
    margin-top: 1.2em;
    margin-bottom: 14px;
}
h4 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 14px;
    color: #a8792a;
    margin-top: 16px;
}

h5 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 12px;
    color: #a8792a;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.2);
    margin-top: 16px;
}
/* ===== BUTTON MENU ===== */

.button-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(8px, 1vw, 14px);
    flex-wrap: nowrap; /* desktop: one line */
    overflow-x: auto; /* phones: swipe if needed */
    -webkit-overflow-scrolling: touch;
    padding: 0 8px;
    white-space: nowrap;
}
/* ===== BUTTON MENU (fixed: chocolate/umber, no neon) ===== */

.button-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 50px;
    font-size: 12px;
    color: #F4E3C1; /* parchment text */
    background-color: #8b5a3c; /* dark chocolate / umber */
    border: 1px solid #6B3f28; /* warm edge */
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    text-align: center;
    line-height: 1.1;
    text-wrap: balance;
    padding: 10px;
    box-sizing: border-box;
}

    .portal-button:hover {
        color: #F4E3C1;
        background-color: #7A4A2E; /* warm hover, not bright */
        border-color: rgba(201, 162, 74, 0.55); /* muted gold accent */
        transform: translateY(-1px);
        box-shadow: 0 10px 18px rgba(0, 0, 0, 0.45);
    }

/* Tablet/phone: keep your sizing behavior but preserve fixed height */
@media (max-width: 900px) {
    .portal-button {
        font-size: 12px;
        padding: 10px;
        width: 110px; /* was min-width; use width to match your fixed button shape */
        height: 50px;
    }
}

@media (max-width: 600px) {
    .portal-button {
        font-size: 12px;
        padding: 10px;
        width: 100px;
        height: 50px;
    }
}

/* Optional: slightly shrink the longest label only */
.portal-button[href="writings.html"] {
    font-size: 11px;
    letter-spacing: 0.4px;
}

/* ===== PARAGRAPHS ===== */
p {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin-top: 10px;
    margin-bottom: 0.8em;
    color: #000;
}
ul {
    list-style: none; /* removes bullets */
    margin: 0 0 8px 0; /* only bottom space */
    padding: 0; /* no extra indent */
}

li {
    font-family: "Franklin Gothic", Arial, sans-serif;
    font-size: 14px;
    color: #000;
    line-height: 1.4; /* breathing room without looking airy */
    margin-bottom: 4px; /* small gap between items */
}
/* ===== LINKS ===== */
a {
    color: #007acc;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ===== IMAGES ===== */
header img {
    max-width:75%;
    height: auto;
    display: block;
    object-fit: contain;
    padding-block: 20px; /* already there: top & bottom */
    margin-inline: auto; /* ⬅️ NEW: centers the image horizontally */
    padding-inline: 10px; /* ⬅️ Optional: adds breathing room on sides */
}
/*Boxes and tables and topics*/
/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    border: none;
    padding: 4px;
    text-align: left;
    font-family: 'Gabriola', 'Palatino Linotype', 'Georgia', serif;
    font-weight: normal;
    letter-spacing: 0.5px;
    color: #000;
    font-size: 14px;
    letter-spacing: 0.1em; /* small spread */
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.15);
}

tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.45);
}
/* ===== TOPIC BOX STYLES ===== */

.content-box {
    max-width: 600px;
    margin: 20px auto;
    padding: 10px;
    border-left: 3px solid #121657;
    
    background-color:rgba(239, 220, 182);
    font-family: 'Gabriola', 'Palatino Linotype', 'Georgia', serif;
    font-size: 14px;
    color: #000;
    line-height: 1.5;
}
.content-intro {
    max-width: 800px;
    margin: 20px auto;
    padding: 10px;
    border-left: 3px solid #121657;
    background-color:#f2cc82;
    font-family: 'Gabriola', 'Palatino Linotype', 'Georgia', serif;
    font-size: 14px;
    font-style:italic;
    color: #121657;
    line-height: 1.5;
}
.topic {
    margin: 1.2rem auto; /* top/bottom 1rem, left/right auto = centered */
    max-width: 650px; /* text never stretches wider than 800px */
    padding: 20px;
    background-color: #F2CC82;
    border-left: 1px solid #a8792a;
    font-family: 'Gabriola', 'Palatino Linotype', 'Georgia', serif;
    color: #2b2b2b;
    font-size:18px;
    letter-spacing: 0.05em; /* small spread */
    line-height: 1.2em;
    border-radius: 8px; /* keep topic as one block */
    break-inside: avoid; /* modern browsers */
    page-break-inside: avoid; /* printing */
    -webkit-column-break-inside: avoid; /* Safari/Chrome old syntax */
}


    .topic h1 {
        font-family: 'Gabriola', 'Palatino Linotype', 'Georgia', serif;
        color: #121657;
        text-shadow: 1px 1px 0 #FFD166;
        font-size: 18px;
        letter-spacing: 0.05em; /* small spread */
        margin-top: 0;
        text-transform: uppercase;
        padding-bottom: 10px;
    }
    .topic h3 {
        font-family: 'Gabriola', 'Palatino Linotype', 'Georgia', serif;
        color: #8b5a3c;
        text-shadow: 1px 1px 0 #FFD166;
        font-size: 18px;
        letter-spacing: 0.05em; /* small spread */
        margin-top: 0;
        text-transform: uppercase;
        padding-bottom: 10px;
    }

    .topic p {
        max-width: 85ch; /* great for readability */
        margin-inline: auto; /* centers each child */
        margin-top: 0;
        font-size: 28px;
        color: #000;
        line-height: 1.4;
    }

.topic-thin {
    max-width: 65ch; /* great for readability */
    margin-inline: auto; /* centers each child */
    padding: 50px;
    margin-top: 30px;
    background: rgba(242, 204, 130, 0.2);
    border-left: 1px solid #7b5e7b;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #000;
    letter-spacing: 0.05em; /* small spread */
    box-shadow: 0 0 8px rgba(123, 94, 123, 0.15);
    border-radius: 8px;
}


    .topic-thin h3 {
        font-size: 16px;
        color: #8b5a3c;
        margin-top: 0;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .topic-thin p {
        font-size: 12px;
        color: #070849;
    }
.topic-thin .stanza {
    max-width: 65ch; /* great for readability */
    margin-inline: auto; /* centers each child */
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: red;
    letter-spacing: 0.05em; /* small spread */
    font-size: 12px;
    margin-bottom: 0;
    color: #000;
    white-space: pre-line;
}
.topic-thin poem {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #000;
    letter-spacing: 0.05em; /* small spread */
    font-size: 12px;
    max-width: 300px;
    margin: 30px auto;
    padding: 20px;
    line-height: 1.2;
    white-space: pre-line;
    text-align: center;
    background-color: rgba(255, 223, 112, 0.2);
    border-left: 4px solid #999;
    border-radius: 4px;
}
/* ===== TRIBUTE & QUOTE ===== */
.tribute-box {
    margin: 1.8rem auto; /* top/bottom 1rem, left/right auto = centered */
    max-width: 650px; /* text never stretches wider than 800px */
    padding: 20px;
    border-left: 3px solid #a8792a;
    background-color: rgba(255, 255, 248, 0.5);
    padding: 12px 20px;
    margin: 20px 0;
    font-family: 'Gabriola', 'Palatino Linotype', 'Georgia', serif;
    color: #000;
    letter-spacing: 0.05em; /* small spread */
    border-radius: 8px;
}

.blockquote {
    font-style: italic;
    background-color: #fdf7d8;
    border-left: 3px solid #a8792a;
    padding: 12px 20px;
    margin: 20px 0;
    color: #444;
}
/*GITA CODING*/

.content-gita {
    max-width: 800px;
    margin: 20px auto;
    padding: 0px;
    border-left: 0px solid #999;
    background-color: rgba(246, 234, 251, 0.5);
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", serif;
    font-size: 14px;
    color: #1d1d52;
    line-height: 1.1em; /* compact but readable */
    text-align: left;
}

.content-gita {
    break-inside: avoid; /* don’t cut the div between columns */
    page-break-inside: avoid; /* for print/PDF */
}


    .content-gita ul {
        list-style-position: inside;
        list-style-type: none;
        margin: 0;
        padding-left: 10px;
    }

    .content-gita li {
        font-family: "Palatino Linotype", Palatino, "Book Antiqua", serif;
        font-size: 13px;
        color: #000;
        line-height: 1.1em; /* just a touch above font size */
        margin-bottom: 2px; /* keep it tiny, or set to 0 if you want */
        padding-left: 2px;
    }

    .content-gita ul {
        list-style: none;
        padding-left: 2px;
    }

    .content-gita li::before {
        content: "ॐ "; /* or "॥ " */
        color: #671313; /* same as your Gita text color */
        font-size: 10px;
        margin-left: 6px;
    }

    .content-gita ul ul li::before {
        content: "• "; /* simple bullet for sub-list */
        color: #444;
        font-size: 12px;
        margin-left: 10px;
    }

.gita-conclusion {
    font-family: "Palatino Linotype", Palatino, "Book Antiqua", serif;
    font-size: 16px;
    color: #422bca;
    background-color: rgba(255, 235, 180, 0.5); /* pale saffron/gold wash */
    border-left: 4px solid #c49a28; /* strong golden line */
    padding: 6px 10px;
    margin: 12px 0;
    font-style: italic;
}

.gita-intro {
    font-family: 'Lora', serif;
    font-size: 20px;
    line-height: 1.4;
    color: #000;
    background-color: rgba(255, 235, 180, 0.5); /* pale saffron/gold wash */
    border-left: 4px solid #c49a28; /* strong golden line */
    padding: 6px 10px;
    margin: 12px 0;
}
/*POEM STYLE*/
.poem {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #000;
    letter-spacing: 0.05em; /* small spread */
    font-size: 12px;
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    line-height: 1.2;
    white-space: pre-line;
    text-align: center;
    background-color: rgba(255, 223, 112, 0.2);
    border-left: 1px solid #999;
    border-radius: 4px;
}

.stanza {
    max-width: 65ch; /* great for readability */
    margin-inline: auto; /* centers each child */
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #000;
    letter-spacing: 0.05em; /* small spread */
    font-size: 12px;
    margin-bottom: 0;
    color: #000;
    white-space: pre-line;
}

.poem-mono {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #000;
    letter-spacing: 0.05em; /* small spread */
    font-size: 12px;
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    line-height: 1.6;
    white-space: pre;
    background-color: #f9f9f9;
    border-left: 4px solid #999;
    border-radius: 4px;
    text-align: left;
}
/* ===== NEWSPAPER / ESSAY LAYOUT ===== */
.codex-column {
    column-count: 2;
    column-gap: 40px;
    column-rule: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #000;
    letter-spacing: 0.05em; /* small spread */
    font-size: 12px;
    line-height: 1.2;
    text-align: justify;
}

.column-break {
    break-inside: avoid;
    page-break-inside: avoid; /* for print compatibility */
    display: block;
    margin-top: 2em;
}



.codex-columns {
    column-count: 2;
    column-gap: 0px;
}

    /* keep each block intact (topic, content-box, content-gita, etc.) */
    .codex-columns > .topic,
    .codex-columns > .topic-thin,
    .codex-columns > .content-box,
    .codex-columns > .content-gita {
        break-inside: avoid; /* modern */
        break-inside: avoid-column; /* WebKit/Safari quirk */
        -webkit-column-break-inside: avoid; /* old WebKit/Chromium */
        page-break-inside: avoid; /* for print */
    }

    /* Prevent splitting of inner blocks */
    .codex-columns > .topic,
    .codex-columns > .content-box,
    .codex-columns > .content-gita {
        break-inside: avoid;
        page-break-inside: avoid; /* for print */
        -webkit-column-break-inside: avoid; /* Safari/Chrome old prefix */
    }

.codex-column .book-excerpt {
    font-family: "Palatino Linotype", Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.2;
    text-indent: 1.5em;
    margin-bottom: 1.2em;
    margin-top: 0;
    color: black;
    column-count: 2;
    column-gap: 2em;
}
    /* Paragraphs inside book excerpt */
    .codex-column .book-excerpt p {
        margin-bottom: 1.2em;
        margin-top: 0;
    }
/* Container for the entire footnotes block */
.footnotes {
    margin-top: 1em;
    border-top: 1px solid #ccc;
    padding-top: 1em;
    align-content: center;
    font-size: 0.7em;
    color: #444;
    max-width: 500px;
}

    /* Individual footnote number style */
    .footnotes sup {
        font-weight: bold;
        color: #555;
    }

    /* Style for each footnote item */
    .footnotes li {
        margin-bottom: 0.6em;
        list-style: decimal inside;
        line-height: 1.5;
    }

    /* Optional: make links in footnotes stand out slightly */
    .footnotes a {
        color: #336699;
        text-decoration: underline;
    }

/* ===== RESPONSIVE DESIGN FOR BUTTONS & TOPIC ===== */
@media screen and (max-width: 600px) {
    .topic, .topic-gold, .topic-dark {
        padding: 20px;
        margin: 20px 10px;
        font-size: 15px;
    }

        .topic table, .topic-gold table, .topic-dark table {
            font-size: 14px;
        }

        .topic h2, .topic-gold h2, .topic-dark h2 {
            font-size: 20px;
        }

    .portal-button {
        padding: 15px 25px;
        font-size: 16px;
    }
}

/* stays outside media as in your snippet */
.acknowledgment-box {
    font-family: 'Georgia', serif;
    font-size: 14px;
    color: #333;
    background-color: #f9f6f2;
    border-left: 4px solid #a48b6c;
    padding: 12px 20px;
    margin-top: 30px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    line-height: 1.5;
}

.pre {
    font-family: "Palatino Linotype", Georgia, serif;
    font-size: 1rem;
    line-height: 1.2;
    color: black;
    background-color: transparent;
    padding: 1em;
    white-space: pre-wrap;
    word-break: break-word;
    border: none;
    margin: 1em 0;
}

/* ===== Single-column book excerpt under 800px ===== */
@media (max-width: 800px) {
    .codex-column .book-excerpt {
        column-count: 1;
        padding-left: 1em;
        padding-right: 1em;
    }
}

/* ===== CODEx COLUMN: Mobile-Friendly Layout (≤768px) ===== */
@media only screen and (max-width: 768px) {
    .codex-column {
        column-count: 1;
        column-gap: 0;
        padding: 16px 5vw;
        font-size: 16px;
        line-height: 1.6;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        text-align: justify;
    }

        .codex-column p {
            margin-bottom: 1em;
        }

    .column-break {
        break-inside: avoid;
        page-break-inside: avoid;
        display: block;
        margin-top: 2em;
    }
}

/* ===== SOCIAL MEDIA ICONS (base) ===== */
.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
    margin: 1.5em 0;
}

.social-icon {
    width: 40px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.2s ease-in-out;
    vertical-align: middle;
}

    .social-icon:hover {
        transform: scale(1.1);
    }

/* ===== MOBILE FIX FOR BUTTONS & SOCIAL ICONS (≤600px) ===== */
@media (max-width: 600px) {
    .button-row {
        flex-direction: column;
        align-items: center;
    }

    .portal-button {
        width: 80%;
        text-align: center;
        padding: 15px 25px;
        font-size: 16px;
    }

    .social-icons {
        flex-direction: row !important;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.8em;
    }

    .social-icon {
        width: 36px;
    }
}

/* ===== Global compact paragraph/list spacing (as given) ===== */
p, ul, ol, blockquote {
    margin-top: 0.5em !important;
    margin-bottom: 0.5em !important;
}
