/* Custom CSS for the Sphinx theme */

/* Remove bold from footnote backrefs and labels */

aside.footnote span.backrefs,
aside.footnote span.label {
    font-weight: normal;
}

/* Decrease heading font sizes (1rem is base) */

html {
    --pst-font-size-h1: 1.8rem;
    --pst-font-size-h2: 1.6rem;
    --pst-font-size-h3: 1.4rem;
    --pst-font-size-h4: 1.3rem;
    --pst-font-size-h5: 1.2rem;
    --pst-font-size-h6: 1.1rem;
}

/* Decrease figure caption font size and align left */

figure figcaption {
    font-size: 0.9rem;
    text-align: left;
}

/* Horizontal rule is a darker grey */

hr {
    border-color: #333;
}

/* Custom settings for class cards. Note that the box-shadow property doesn't
seem to work here. Set in the markup file */

.class-card-1 {
    background-color: #a8d381;
    color : black;
    width: 90%;
    margin: 0 auto;
}

.class-card-2 {
    background-color: #8fd18e;
    color: black;
    width: 90%;
    margin: 0 auto;
}

.class-card-3 {
    background-color: #77ce9d;
    color: black;
    width: 90%;
    margin: 0 auto;
}

.class-card-4 {
    background-color: #63c9aa;
    color: black;
    width: 90%;
    margin: 0 auto;
}

.class-card-5 {
    background-color: #54c4b6;
    color: black;    
    width: 90%;
    margin: 0 auto;
}

.class-grid-card-1 {
    margin: 0.2rem auto;
/*    box-shadow: none; */
}

/* Colour buttons for call to action */

a.class-button-1 {
    background-color: #1c8d7f;
    color: white;
    border-radius: 0.4rem;
}

/* add a divider between posts in the blog post list and align the expander
text to the right */


.ablog-post {
    border-bottom: 1px solid grey;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.ablog-post-expand{
    padding-top: 0rem;
    margin-bottom: 2rem;
    text-align: right;
}
/* Grid container for the post list */
.postlist-style-card {
    display: grid;
    grid-template-columns: 1fr ;
    gap: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin: 20px 0;
    transition: box-shadow 0.3s ease;

    @media (min-width: 600px) {
        grid-template-columns: 1fr 1fr;
    }
}
.ablog-post {
    padding: 1rem;
}
.card:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.card-meta {
    font-size: 0.9em;
    color: #888888;
    margin-bottom: 15px;
}

.card-excerpt {
    font-size: 1em;
    color: #555555;
}

.postlist .card {
  margin-bottom: 1.5rem;
}

.postlist .card-title {
  margin-bottom: 0.5rem;
}

.postlist .card-subtitle {
  font-size: 0.9rem;
}

.postlist .card-text {
  margin-top: 1rem;
}

.postlist .read-more {
  margin-top: 0.5rem;
}

/* Quick spacing improvements */
article.bd-article {
    padding: 3rem 5rem;
    line-height: 1.8;
}

.bd-article h2,
.bd-article h3 {
    margin-top: 3rem;
}

.bd-article p,
.bd-article ul,
.bd-article ol {
    margin-bottom: 2rem;
}

.admonition {
    margin: 3rem 0;
    padding: 2rem;
}