/* Modern Reset & Variable Colors */
:root {
    --primary-blue: #112255;
    --text-dark: #333333;
    --text-muted: #666666;
    --gold-accent: #f4f1b6;
    --bg-light: #eaeef6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    padding: 20px;
}

css/* Adds a soft, light background to the margins of the entire screen */
body { 
    background-color: #a6a6a6; 
    margin: 0;
    padding: 0;
}

/* Centers the blog container and styles it as a clean white paper page */
.blog-container { 
    max-width: 800px; 
    margin: 0 auto; 
    background-color: #ffffff; 
    padding: 40px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05); /* Adds a subtle shadow border */
}

#container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Responsive Header Setup */
header {
    margin-bottom: 40px;
}

.header-main {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

@media (min-width: 600px) {
    .header-main {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.header-title h1 {
    color: #010080;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.header-title p {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 5px;
}

.header-logo {
    width: 100px;
    height: auto;
    border-radius: 50%;
}

.tagline-bar {
    background-color: var(--primary-blue);
    color: var(--gold-accent);
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 2px;
    border-radius: 4px;
}

/* Section Typography */
h2 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 8px;
    margin: 40px 0 20px 0;
}

/* 1. Base rule for all article paragraphs */
main p {
    margin-bottom: 0;      /* Removes the gap between paragraphs */
    font-size: 1.05rem;
    text-align: justify;   /* Optional: Gives a clean, formal print look */
}

/* 2. Indents every paragraph that follows another paragraph */
main p + p {
    text-indent: 30px;     /* Adjust this number to change the indent depth */
}

main a {
    color: var(--primary-blue);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-blue);
    padding-bottom: 1px;
    transition: color 0.2s ease;
}

/* Turns into a solid, sharp line when hovered */
main a:hover {
    border-bottom-style: solid;
}

/* Article Index Layout */
.article-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

@media (min-width: 500px) {
    .article-card {
        flex-direction: row;
        align-items: flex-start;
    }
}

.article-img-link {
    flex-shrink: 0;
    display: block;
    width: 120px; /* 🌟 FORCES THE IMAGE CONTAINER TO BE FIXED IN PLACE */
    margin: 0;
}

.article-card img {
    width: 120px;
    height: 120px;       /* 🌟 ADD THIS LINE (or whatever height matches your look) */
    object-fit: cover;  /* 🌟 ADD THIS LINE (crops the image cleanly without stretching) */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.article-card img:hover {
    transform: scale(1.03);
}

.article-content h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.article-content h3 a {
    color: var(--text-muted);
    text-decoration: none;
}

.article-content h3 a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.article-content p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Blog Section */
.blog-banner {
    display: block;
    max-width: 350px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Footer & About Section */
footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--primary-blue);
    font-size: 0.9rem;
}

.footer-logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

footer p {
    margin-bottom: 15px;
    color: #444;
}

footer a {
    color: var(--primary-blue);
    font-weight: bold;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.disclaimer {
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
}

.books-link img {
    max-width: 250px;
    width: 100%;
    height: auto;
    margin-top: 10px;
    border: 1px solid #ccc;
}

/* Responsive Horizontal Books Showcase */
.books-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 30px;
    align-items: center;
}

.book-item {
    flex: 1;
    max-width: 200px;
    width: 100%;
    text-align: center;
}

.book-item img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 4px;
}

.book-item img:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Switches to a perfect horizontal row on desktop screens */
@media (min-width: 600px) {
    .books-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }



