:root {
    --page-width: 960px;
    --page-padding: 2rem;
    --color-accent: #0066cc;
}
.article-content

/* ===================================================================*/
/* POST LIST - Image Left + Text Right (Targeted for hello-friend) */
/* ===================================================================*/


/* Reduce space between post content and footer */
main {
    margin-bottom: 1rem ;
}

.article, .post, .content, article {
    margin-bottom: 1.5rem !important;
}

/* ================================================*/
/* ==================  TITLE  ===================  */
/* ================================================*/
/* Homepage Hero - Logo + Welcome Text */
.home-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 1rem 0 3rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.home-logo {
    max-height: 260px;           /* Adjust size as needed */
    width: auto;
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.home-welcome h1 {
    font-size: 3.2rem;
    margin: 0;
    color: #1e3a8a;
    line-height: 1.1;
    white-space: nowrap;
    text-align: center;
}

/* Post Title (h1) - Centered + Dark Blue */
.post-title {
    text-align: center;
    color: #1e3a8a;           /* Nice dark blue */
    margin-bottom: 1.5rem;
    font-family: Arial, Helvetica, sans-serif;
}

/* All headings (h2, h3, etc.) - Centered + Same Dark Blue */
h1, h2, h3, h5, h6 {
    color: #1e3a8a;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Make h2 slightly smaller than h1 but still prominent */
h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}
h4 {
    color: #000000;
    text-align: left !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* =====  IMAGES CENTERED WITH A SLIGHT SHADOW =====  
/* Center all images in posts */
.post img,
article img,
.content img,
img {
    display: block;
    margin: 1.5rem auto;     /* centers the image + adds nice vertical spacing */
    max-width: 100%;         /* prevents huge images from breaking layout */
    height: auto;            /* keeps aspect ratio */
}

/* Optional: Add a subtle border/shadow if you want them to stand out */
.post img,
article img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

/* ======  IMAGE ON LEFT - Polished Final Version ====== */

.image-text-row {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin: 0rem 0;
    width: 100%;
}

.side-image {
    width: 380px !important;        /* ← change this to adjust image size */
    height: auto !important;
    flex-shrink: 0 !important;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.side-text {
    flex: 1 !important;
    min-width: 320px !important;
    line-height: 1.75;
}

/* Mobile */
@media (max-width: 768px) {
    .image-text-row {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    .side-image {
        width: 100% !important;
    }
}

/* === STRONGER SERIF BODY TEXT - Slightly Larger === */
body .post article,
body .post .content,
body article,
body .entry-content,
body .prose,
.post-content,
.article-content, .side-text,
.side-text p {
    font-family: "Palatino Linotype", "Book Antiqua", "Times New Roman", serif !important;
    font-size: 1.2rem !important;
    line-height: 1.5 !important;
}

/* =====  CENTERED ITALICIZED LINE OF TEXT  ===== */
.centered-note {
    text-align: center;
    margin: 0 0 0 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #10309a;           /* Dark Blue */
    line-height: 1.5;
}

/* Custom Blockquote - Red left border */
blockquote {
    border-left: 6px solid #e74c3c;     /* Strong red border */
    background-color: #fff9f9;          /* Very light red/pink background (optional but nice) */
    padding: 1.0rem 1.0rem;
    margin: 1.0rem 0;
    color: #333;
    font-style: italic;
}

/* Optional: Make it look even better on dark mode */
@media (prefers-color-scheme: dark) {
    blockquote {
        border-left-color: #ff6b6b;     /* Brighter red for dark mode */
        background-color: #2c1f1f;
        color: #ddd;
    }
}

/* Ultra-tight top spacing on post pages */
.post,
article.post,
main > article,
.post article {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.post-title {
    margin-top: 0.5rem !important;
}

.post-cover {
    display: none;
}


/* ======================================== */
/* =========  HEADER & FOOTER ============= */
/* ======================================== */

.header__inner {
    padding-bottom: 0.1rem;
    text-align: center;
    max-width: var(--page-width);
    margin: 0 auto;
}

/* Aggressively reduce space below the header */
.header {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Make the logo in the header larger */
.logo img {
    height: 9rem;
    width: auto;
}

/* Footer */
.footer {
    margin-top: 0.2rem !important;
    padding-top: 0 !important;
}

.footer .footer__inner {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.75rem 1.5rem 1rem;   /* reduced top padding */
}

.footer .copyright {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: inherit;
}


/* Reduce top padding on the main post content */
main,
.post,
article.post,
main article {
    padding-top: 0.3rem !important;
    margin-top: 0 !important;
}

/* Back to home link */
.back-to-home {
    margin-top: 0.1rem;
    margin-bottom: 0.8rem;
}

/* Center Hugo Figure Shortcodes + Nice Captions */
figure {
    display: block;
    margin: 2.5rem auto;           /* Centers the whole figure + good vertical spacing */
    text-align: center;
    max-width: 100%;
}

figure img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Caption styling */
figcaption {
    display: block;
    margin-top: 0.8rem;
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

/* Dark mode support for captions */
@media (prefers-color-scheme: dark) {
    figcaption {
        color: #aaa;
    }
}


.small-image img {
    max-width: 400px;
}

/* ======================================== */
/* =========  DOWNLOAD BUTTON ============= */
/* ======================================== */
.download-btn {
    display: inline-block;
    background-color: #1e3a8a;
    color: #ffffff !important;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    text-decoration: none !important;
    margin: 1rem 0;
    align-content: center;
}

.download-btn:hover {
    background-color: #2d4fa8;
}

/* ======================================== */
/* ============  WRAP TEXT  =============== */
/* ======================================== */
.float-left {
    float: left;
    display: inline !important;
    margin: 1rem 1rem 0.5rem 0 !important;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 410px;
}

.float-clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* ======================================== */
/* ============  LINKS - COLOR  =========== */
/* ======================================== */
a {
    color: #0066cc;
}

a:visited {
    color: #551a8b;
}

/* =========================================== */
/* =====  CLASSES FOR THE HOME PAGE  ========= */
/* =========================================== */

/* Home page Welcome logo */
.home-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    padding: 0 0 2rem 0;
}

.home-logo {
    max-width: 500px;
    height: auto;
}

/* Mobile: Stack vertically */
@media (max-width: 750px) {
    .home-hero {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .home-welcome h1 {
        font-size: 3.5rem;
    }
}

/* =========================================== */
/* =====  HOME PAGE TABLE OF CONTENTS  ======= */
/* =========================================== */
.trh-home {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0.5rem 2rem 2rem 2rem;
}

.trh-home h1 {
    font-size: 3.5rem;
}
.trh-toc {
    margin-top: 2rem;
    margin-left: 2rem;
}
.trh-post {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}
.trh-post-image {
    flex: 0 0 300px;
}
.trh-post-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.trh-post-body {
    flex: 1;
}
.trh-post-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.4rem;
}

/* Mobile: Stack vertically */
@media (max-width: 750px) {
  .trh-post {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem; /* tighter than desktop */
  }
  .trh-post-image {
    margin-bottom: 0.5rem;
  }
  .trh-post-title {
    margin: 0.25rem 0;
  }
  .trh-post-desc {
    text-align: left;
    margin-top: 0.25rem;
  }
}

.content {
    margin-top: 0;
}

/* =========================================== */
/* =======  TRACKER/SCORECARD LINK  ========== */
/* =========================================== */
.scorecard-link {
  margin: 0 0 1.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
}

.scorecard-link a {
  text-decoration: none;
  font-weight: bold;
}

.scorecard-link a:hover {
  text-decoration: underline;
}