/* Mobile Responsive Styles for Book List */
@media screen and (max-width: 768px) {
    /* Force table elements to display as block */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    /* Hide the Table Header completely */
    thead {
        display: none;
    }

    /* Style each table row (tr) as a Card */
    tbody tr {
        border: 1px solid var(--accent-gold);
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
        background-color: var(--bg-panel);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    /* Center the Book Cover image at the top of the card */
    .col-cover {
        text-align: center;
        margin-bottom: 15px;
        width: 100% !important;
    }

    .book-thumb {
        margin: 0 auto;
        display: block;
        border-color: var(--accent-gold);
    }

    /* Make the Title and Author font sizes larger */
    .col-title {
        font-size: 20px !important;
        margin-bottom: 8px;
        text-align: center;
        color: var(--text-light) !important;
        font-family: 'Georgia', serif;
    }

    .col-author {
        font-size: 16px !important;
        margin-bottom: 15px;
        text-align: center;
        color: #ddd !important;
        font-style: italic;
    }

    /* Ensure the Description text is readable and not squished */
    .col-desc {
        font-size: 15px;
        line-height: 1.6;
        color: #eee;
        padding: 15px 0;
        width: 100% !important;
        font-family: 'Georgia', serif;
    }

    /* Style other columns for card layout */
    .col-cat {
        text-align: center;
        margin-bottom: 10px;
        width: 100% !important;
    }

    .col-link {
        text-align: center;
        width: 100% !important;
        padding-top: 10px;
    }

    /* Remove table cell borders */
    td {
        border: none;
        padding: 5px 0;
    }
}
