/* =========================================================
   REFERENCE BOOK HOME PAGE
   ========================================================= */

.reference-page {
    background-color: #fff;
    min-height: 100vh;
}


/* Page heading */

.reference-header {
    text-align: center;
    margin-bottom: 40px;
}

.reference-header h1 {
    display: inline-block;

    padding: 12px 35px;

    background-color: var(--terracotta);
    color: #fff;

    border-radius: 5px;

    font-size: 2rem;
    font-weight: 500;

    box-shadow: 0 5px 14px var(--shadow-soft);
}


/* Reference card
   (merged from the old inline <style> in index.php:
    lift-on-hover + rounded corners, recoloured to terracotta) */

.reference-card {
    height: 100%;

    padding: 28px 30px;

    background-color: #fff;

    border-left: 4px solid var(--terracotta);
    border-bottom: 1px solid var(--border-soft);

    border-radius: 8px;

    box-shadow: 0 6px 20px var(--shadow-soft);

    transition: transform 0.2s ease,
                box-shadow 0.2s ease;
}

.reference-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-strong);
}


/* Book title */

.reference-card h2 {
    margin-bottom: 8px;

    color: var(--text-brown);

    font-size: 1.35rem;
    font-weight: 600;
}


/* Book type */

.reference-type {
    margin-bottom: 18px;

    color: var(--terracotta);

    font-size: 1rem;
}


/* Metadata */

.reference-meta p {
    margin-bottom: 7px;

    color: var(--text-brown);

    line-height: 1.6;
}


/* Read link */

.reference-link {
    display: inline-block;

    margin-top: 10px;

    color: var(--terracotta);

    text-decoration: none;

    font-weight: 500;
}

.reference-link:hover {
    color: var(--terracotta-dark);
}


/* Mobile */

@media (max-width: 767.98px) {

    .reference-header h1 {
        padding: 10px 22px;
        font-size: 1.5rem;
    }

    .reference-card {
        padding: 22px 20px;
    }

    .reference-card h2 {
        font-size: 1.2rem;
    }

}