/* ========================================================== */
/* FINAL CSS FIX: GUARANTEED VISIBLE BUTTONS & LAYOUT         */
/* ========================================================== */

/* ---------------------------------------------------------- */
/* 1. CORE VARIABLES & GLOBAL RESET                           */
/* ---------------------------------------------------------- */

:root {
    --color-background: #f4f4f4; /* Slightly off-white background */
    --color-surface: #ffffff;
    --color-text: #2c3e50;
    --color-primary: #3498db; 
    --color-border: #cccccc; /* Clearer border for buttons */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------------------------------------------------------- */
/* 2. CRITICAL FIXES: NO UNDERLINE, NO SQUISHING, NO BULLETS  */
/* ---------------------------------------------------------- */

/* FORCE removal of underlines and list bullets EVERYWHERE */
li { 
    list-style: none !important; 
}
a { 
    text-decoration: none !important; 
    color: var(--color-primary) !important; 
}

/* LAYOUT FIX: Ensure containers expand properly */
.main-layout {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--color-background);
}

.reading-container {
    /* Prevents squishing and gives content max space */
    width: 100%; 
    max-width: 1100px; 
    margin: 40px auto;
    padding: 0 20px;
}

/* ---------------------------------------------------------- */
/* 3. GUARANTEED BUTTON STYLING (The Book List)               */
/* ---------------------------------------------------------- */

/* The Grid Container */
.book-list-grid {
    padding: 0;
    list-style: none;
    display: grid;
    /* Forces at least 3 columns on most views, up to 6 on desktop */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

/* The Button Element */
.book-list-grid li a {
    display: block; 
    padding: 15px 10px;
    /* FIX: Set a distinct color for the button background */
    background-color: #e9e9e9; 
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Clear depth */
    transition: all 0.2s ease-in-out;
    color: var(--color-text); /* Dark text on light button */
    text-decoration: none !important; /* DOUBLE CHECK: No underline */
}

/* Hover State */
.book-list-grid li a:hover {
    background-color: var(--color-primary); /* Blue */
    color: #FFFFFF !important; /* White text on blue */
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* Section Headings (e.g., Old Testament) */
.book-list-grid .section-heading {
    grid-column: 1 / -1; 
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 10px;
}

/* ---------------------------------------------------------- */
/* 4. PRESERVED ORIGINAL STYLES (BookList/Sidebar)            */
/* ---------------------------------------------------------- */

div.bookList	{
    width: 13rem;
    padding: 15px;
    background:var(--color-surface);
    border-right: 1px solid var(--color-border);
    flex-shrink: 0;
}
@media (max-width: 768px) {
    div.bookList {
        display: none !important;
    }
}

/* (All other legacy styles like .cmenu, .p, .q, .tnav, etc. from my last post should be added below this point) */
