/* your styles go here */
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:wght@400;700&family=Cinzel:wght@400;700&family=Great+Vibes&family=Merriweather:wght@300;400;700&&display=swap');

/*
*
* ===================================================
* All your custom styles go here
* ===================================================
*
*/

/* The following sets the height of the page; margin-top for #copyright sets the footer at the very bottom of the page; the whitespace is added by the browser automatically. */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
  }
  #all {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  #copyright {
    margin-top: auto;
  }

:root {
    --primary-accent: #1D2A3A;
    --navbar-border-top: #39495d;
    --navbar: #f7f7f7;
    --navbar-focus: #f3f0ea;
    --secondary: #2E4B3A;
    --color-gold: #C7A45B;
    --color-black: #000000;
    --color-ivory: #F5F0E6;
    --color-burgundy: #6C2E2E;
    --white-text: #f7f7f7;
}

/* 
* ===================================================
* Sections 
* ===================================================
*/
.home-section-blue {
    background: var(--primary-accent)
}

/* 
* ===================================================
* Signature Image 
* ===================================================
*/
.signature-image {
    max-width: 400px; /* You can adjust this value */
    height: auto;
    margin-bottom: 20px; /* This adds some space below the signature */
}

/* Navbar customisation */
.navbar {
    background-color: var(--navbar)
}

/* Make navbar a positioning context for the center logo */
.navbar .container-fluid {
    position: relative;
}

/* Center logo in Navbar */
.navbar-center-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.navbar-center-logo img {
    max-height: 100px; /* Adjust logo size as needed */
    padding-bottom: 50px;
}

/* 
* ===================================================
* Navbar Design
* ===================================================
*/

/* On desktop screens, create a tall navbar to hold the logo and menu */
@media (min-width: 768px) {
    .navbar {
        min-height: 160px; /* Adjust this value to fit everything comfortably */
    }

    /* This is our new container for the menu */
    .nav-menu-wrapper {
        /* Use flexbox to easily center the menu within the wrapper */
        display: flex;
        justify-content: center;
        width: 100%;
        
        /* Push the menu down from the top to sit below the logo */
        padding-top: 20px; /* Adjust this to change vertical spacing */
    }
}

.navbar-brand {
    display: flex;
    align-items: center;
}

/* Override the default right float on the main navigation */
#navigation .navbar-nav {
    float: none;
}

.navbar, .dropdown-menu {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    font-variant-caps: small-caps;
    letter-spacing: 0.05em;
    font-weight: 400;
}

/* 
* ===================================================
* Homepage Parallax Feature
* ===================================================
*/

#hero-parallax {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover; 
    background-attachment: fixed; 
    background-position: center top; 
    background-repeat: no-repeat;
}

#hero-parallax-title {
    font-family: 'Great Vibes', cursive;
    color: var(--color-black);
}

#hero-parallax-subtitle {
    font-family: 'Merriweather', serif;
    color: var(--color-ivory);
    font-size: 2.5rem;
    font-variant-caps: small-caps;
    letter-spacing: 0.05em;
    font-weight: 400;
}

/* 
* ===================================================
* Homepage About Roundel Image
* ===================================================
*/
.roundel-image {
    width: 133px;
    height: 133px;
    margin-bottom: 30px;
}

/* Example site test */
.box-image-text .image {
    min-height: 190px;
    max-height: 190px;
}

.box-image-text .image img {
    max-height: 190px;
    margin: auto;
}

.box-simple {
    min-height: 230px;
}

/* 
* ===================================================
* Homepage About
* ===================================================
*/
.home-about-section-content {
    background-color: var(--primary-accent);
    display: flex;
    flex-direction: column; /* Stack the items vertically */
    align-items: center;   /* Center them perfectly on the horizontal axis */
}

.home-about-title, .recent-posts-title, .newsletter-button, .about-title, .books-main-title, .books-title, .books-title-alt, .seedlings-title, .continue-reading-btn, .blog-pagination-btn, .blog-main-title {
    font-family: 'Cinzel', Georgia, "Times New Roman", serif;
    color: var(--white-text);
    padding-bottom: 10px;
    line-height: 1em;
    /* font-size: 2.6vw; */
    font-size: 5.2rem;
    font-weight: 500;
    letter-spacing: 5px; /* Adjust this value to change the spacing */
    /* text-transform: uppercase; */
    margin-bottom: 30px;
    -webkit-font-smoothing: antialiased;
}

.home-about-text, .recent-posts-text, .post-content-body p {
    font-family: 'PT Serif', 'Merriweather', serif;
    color: var(--white-text);
    font-size: 1.5em;
    font-weight: 500;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.7em;
    /* max-width: 750px; Constrains the width of the text for readability */
    max-width: 75ch;
    margin: 0 auto;   /* Centers the text block */
    margin-bottom: 1em; /* This adds space after each paragraph */
    -webkit-font-smoothing: antialiased;
}

.post-content-body p {
    color: var(--primary-accent);
    text-align: left;
}

.home-about-text p {
    font-size: 1.9rem;
    font-weight: 500;
    line-height: 1.5em;
    margin-bottom: 1em; /* This adds space after each paragraph */
}

/* 
* ===================================================
* Recent Posts
* ===================================================
*/

.recent-posts-title, .recent-posts-subtitle, .recent-posts-text {
    color: var(--primary-accent)
}

.bar.background-white {
    background: var(--navbar)
}

/* 
* ===================================================
* Newsletter
* ===================================================
*/
.newsletter-button {
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 25px;
    color: var(--primary-accent);
    font-size: 1.5vw;
    padding-top: 14px;
    padding-bottom: 10px;
}

.newsletter-button:hover, .continue-reading-btn:hover {
    border: 1px solid var(--white-text);
}

section {
    margin-bottom: 0px;
}

/* 
* ===================================================
* Copyright
* ===================================================
*/
#copyright {
    font-family: 'PT Serif', 'Merriweather', serif;
    background: var(--navbar);
    color: var(--primary-accent);
    font-size: 0.75em;
    font-weight: 500;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.7em;
    margin-bottom: 0em; 
    -webkit-font-smoothing: antialiased;
}

/* 
* ===================================================
* About Page
* ===================================================
*/
.about-image-column {
    padding-left: 150px;
    padding-right: 150px;
}

.about-title, .books-main-title, .seedlings-title {
    text-align: center;
}

.about-text, .books-blurb, .books-blurb-alt, .newsletter-text {
    font-family: 'PT Serif', 'Merriweather', serif;
    color: var(--white-text);
    font-size: 1.5em;
    font-weight: 500;
    text-align: left;
    word-wrap: break-word;
    line-height: 1.7em;
    max-width: 750px; /* Constrains the width of the text for readability */
    margin: 0 auto;   /* Centers the text block */
    margin-bottom: 1em; /* This adds space after each paragraph */
    -webkit-font-smoothing: antialiased;
}

.about-text p, .books-blurb p, .books-blurb-alt p {
    font-size: 1.9rem;
    font-weight: 500;
    line-height: 1.5em;
    margin-bottom: 1em; /* This adds space after each paragraph */
}

.newsletter-text {
    text-align: center;
}

/* 
* ===================================================
* Books Page
* ===================================================
*/

/* --- Combined styles for the main text/blurb --- */
.books-section-content,
.books-section-content-alt {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'PT Serif', 'Merriweather', serif;
    font-size: 1.1rem; /* Switched to rem for a readable body size */
    font-weight: 400; /* Normal weight is better for body copy */
    text-align: left;
    line-height: 1.7;
    max-width: 650px;
    margin: 0 auto 1em auto;
    -webkit-font-smoothing: antialiased;
}

.books-section-content {
    background-color: var(--primary-accent);
    color: var(--white-text);
}
.books-section-content-alt {
    background-color: var(--navbar);
    color: var(--primary-accent);
}

/* --- Combined styles for the Book Title --- */
.books-title,
.books-title-alt {
    font-family: 'Cinzel', Georgia, "Times New Roman", serif;
    font-size: 2.2rem; /* Switched from vw to rem for stability */
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 0.5em;
    -webkit-font-smoothing: antialiased;
}

.books-title {
    color: var(--white-text);
}
.books-title-alt {
    color: var(--primary-accent);
}

/* --- Combined styles for the Book Subtitle --- */
.books-subtitle,
.books-subtitle-alt {
    font-family: 'PT Serif', 'Merriweather', serif;
    font-size: 1.3rem; /* A size between the navbar and the title */
    font-weight: 500;
    font-variant-caps: small-caps; /* Excellent idea! */
    letter-spacing: 1.5px;
    line-height: 1;
    margin-bottom: 2em; /* Creates nice separation */
    -webkit-font-smoothing: antialiased;
}

.books-subtitle {
    color: var(--white-text);
}
.books-subtitle-alt {
    color: var(--primary-accent);
}

.books-blurb-alt {
    color: var(--primary-accent);
}

.books-cta-text {
    font-size: 1.5rem;      /* Slightly smaller than the 1.1rem blurb text */
    font-style: italic;   /* Instantly sets it apart */
    margin-top: 2.5em;    /* Adds clear vertical space above it */
    opacity: 0.9;         /* A subtle touch to soften it slightly */
}

.seedlings-title {
    color: var(--primary-accent);
}

.seedlings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 420px));
    gap: 5rem 4rem;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

/* Force centering for incomplete rows */
.seedlings-grid::after {
    content: '';
    grid-column: 1 / -1;
    height: 0;
}

.seedling-card {
    background: var(--navbar);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-height: 100%;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Alternative approach using CSS subgrid simulation */
@supports (display: contents) {
    .seedlings-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 5rem 4rem;
        justify-content: center;
        align-items: flex-start;
    }
    
    .seedling-card {
        flex: 0 0 auto;
        width: 320px;
        max-width: 420px;
    }
}

/*
* ===================================================
* Blog Post Content Styling
* ===================================================
*/
.post-content-body {
    color: var(--primary-accent);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.post-content-body p, 
.post-content-body ul, 
.post-content-body ol {
    font-size: 1.6rem; /* Or your preferred reading font size */
    line-height: 1.6;
    margin-bottom: 1.5em;
    margin-left: auto;
    margin-right: auto;
}

.post-content-body h1,
.post-content-body h2, 
.post-content-body h3, 
.post-content-body h4 {
    font-family: 'Cinzel', Georgia, "Times New Roman", serif;
    color: var(--primary-accent);
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 500;
}

.post-content-body h1 {
    font-size: 2.2rem;
}

.post-content-body h2 {
    font-size: 2.5rem;
}

.post-content-body h3 {
    font-size: 1.9rem;
}

.post-content-body a {
    color: var(--secondary);
    text-decoration: underline;
}

.post-content-body a:hover {
    color: var(--color-gold);
}

.pager a {
    border-radius: 25px;
    /* border: 1px solid var(--primary-accent); */
    padding: 10px 20px;
}

/* .pager .disabled a, .pager a:hover {
    background-color: var(--primary-accent);
    color: var(--white-text) !important;
    border: 1px solid var(--primary-accent);
} */

/*
* ===================================================
* Sidebar Widget Styling
* ===================================================
*/
.panel.panel-default.sidebar-menu {
    background-color: var(--navbar) !important;
    border: none;
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.04); */
    overflow: hidden; /* Ensures the border-radius is respected by children */
    margin-top: 12px;
}

.panel.panel-default.sidebar-menu .panel-heading {
    background-color: var(--navbar);
    color: var(--primary-accent);
    border-bottom: none;
    border-radius: 0;
    text-align: center;
    margin-bottom: 0px;
}

.panel.panel-default.sidebar-menu .panel-heading h3.panel-title, .panel-body {
    font-family: 'Cinzel', Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 500;
    border-bottom: none;
}

.panel.panel-default.sidebar-menu .panel-body {
    background-color: var(--navbar);
}

.sidebar-menu ul.nav a {
    color: var(--primary-accent);
    font-family: 'PT Serif', 'Merriweather', serif;
}

.sidebar-menu ul.nav a:hover,
.sidebar-menu ul.nav li.active a {
    background-color: var(--primary-accent) !important;
    color: var(--white-text) !important;
}

/*
* ===================================================
* New Blog Post Card Grid
* ===================================================
*/
.blog-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.blog-post-card {
    background: var(--navbar);
    border-radius: 12px;
    /* box-shadow: 0 2px 8px rgba(0,0,0,0.04); */
    border: 1px solid #e0e0e0;
    overflow: hidden; /* Keep image corners rounded */
    display: flex;
    flex-direction: column;
}

.blog-post-card .card-img-top {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.blog-post-card .card-image-container {
    max-height: 200px; /* Match the seedling-card style */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eee; /* A light background for images that don't fill the space */
}

.blog-post-card .card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the container without distortion */
}

.blog-post-card .card-body {
    padding: 1.5rem;
    color: var(--primary-accent);
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows footer to stick to bottom */
}

.blog-post-card .card-title, .recent-posts-subtitle {
    font-family: 'Cinzel', Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--primary-accent);
    line-height: 1.3;
}

.recent-posts-subtitle {
    font-size: 1.6rem;
    padding-bottom: 10px;
    line-height: 1em;
    letter-spacing: 5px; /* Adjust this value to change the spacing */
    /* text-transform: uppercase; */
    margin-bottom: 30px;
    -webkit-font-smoothing: antialiased;
}

.blog-post-card .card-title a {
    color: var(--primary-accent);
}

.blog-post-card .card-title a:hover {
    color: var(--color-gold);
}

.blog-post-card .card-meta {
    font-family: 'PT Serif', 'Merriweather', serif;
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.blog-post-card .card-text {
    font-family: 'PT Serif', 'Merriweather', serif;
    flex-grow: 1;
}

.blog-post-card .read-more {
    margin-top: auto;
}

/*
* ===================================================
* Single Post Banner Image
* ===================================================
*/
.post-banner {
    margin-top: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.post-banner img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/*
* ===================================================
* Post Signature
* ===================================================
*/
.post-signature {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.post-signature img {
    max-width: 200px; /* Adjust the size of your signature as needed */
    height: auto;
}

/*
* ===================================================
* Sidebar Widget Fixes
* ===================================================
*/

/* Remove rounded corners from search bar inside a panel */
.panel-body .input-group {
    border-radius: 0;
}
.panel-body .input-group .form-control,
.panel-body .input-group .btn {
    border-radius: 0;
}

/* Fix font on Tags widget */
.sidebar-menu div.tags a {
    font-family: 'PT Serif', 'Merriweather', serif;
    font-size: 0.9rem;
    background: var(--primary-accent);
    color: var(--white-text);
    border-radius: 15px;
}

.sidebar-menu div.tags a:hover {
    background-color: var(--navbar-focus);
    color: var(--white-text);
}

.sidebar-menu .nav .fas.fa-rss {
    margin-right: 0.5rem;
}

.sidebar-menu .tag-cloud a {
    font-family: 'PT Serif', 'Merriweather', serif;
    font-size: 0.9rem;
    font-weight: 400; /* Override theme's bold font */
    text-transform: none; /* Override theme's uppercase */
    background: var(--navbar) !important;
    color: var(--primary-accent) !important;
    border-radius: 15px;
    padding: 8px 12px;
    margin-bottom: 8px;
    border: none;
}

.sidebar-menu .tag-cloud a:hover {
    background-color: var(--primary-accent) !important;
    color: var(--white-text) !important;
    text-decoration: none;
}

/*
* ===================================================
* Blog Button Section
* ===================================================
*/
.continue-reading-btn, .blog-pagination-btn {
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 25px;
    color: var(--primary-accent) !important;
    background-color: var(--navbar) !important;
    font-size: 1.2rem;
    padding-top: 14px;
    padding-bottom: 10px;
}

.continue-reading-btn:hover, .blog-pagination-btn:hover {
    color: var(--navbar) !important;
    background-color: var(--primary-accent) !important;
}

.blog-pagination-btn {
    color: var(--primary-accent) !important;
    background-color: transparent !important;
}

/*
* ===================================================
* Blog Hero Section
* ===================================================
*/

.blog-hero {
    position: relative; /* This is essential for the overlay to work */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem; /* Gives the section its height */
    
    /* Background Image Properties */
    background-size: cover;
    background-attachment: fixed; /* This creates the parallax effect */
    background-position: center center;
    background-repeat: no-repeat;
}
  
/* This is the dark overlay */
.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* This creates a gradient that is darker at the edges and fades to almost clear in the middle */
    background: radial-gradient(ellipse at center, 
      rgba(21, 27, 38, 0.15) 0%,   /* Center is 15% opacity */
      rgba(21, 27, 38, 0.45) 100%  /* Edges are 45% opacity */
    );
    z-index: 1;
}
    
/* Ensure the text content sits on top of the overlay */
.blog-hero-content {
    position: relative;
    z-index: 2;
}
    
/* Your text styles (these are perfect) */
.blog-main-title,
.blog-main-subtitle {
    color: var(--navbar); /* Your off-white/parchment color */
    text-shadow: 0 2px 6px rgba(0,0,0,0.5); /* Adds a subtle shadow for extra pop */
}

/*
* ===================================================
* Related Posts Section
* ===================================================
*/
.related-posts {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.related-posts-title {
    font-family: 'Cinzel', Georgia, "Times New Roman", serif;
    color: var(--primary-accent);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-align: center;
}

/*
* ===================================================
* Author Bio Section
* ===================================================
*/
.author-bio {
    display: flex;
    align-items: center; /* Vertically align items to the center */
    gap: 1.5rem;
    background-color: var(--primary-accent); /* Use the main accent color */
    padding: 2rem;
    border-radius: 4px;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.author-bio-avatar img {
    width: 120px; /* Slightly larger for more impact */
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white-text); /* Add a white border to the photo */
}

.author-bio-title,
.author-bio-title a {
    font-family: 'Cinzel', Georgia, "Times New Roman", serif;
    color: var(--white-text); /* White text on the dark background */
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.author-bio-title a:hover {
    color: var(--color-gold);
    text-decoration: none;
}

.author-bio-content p {
    font-family: 'PT Serif', 'Merriweather', serif;
    margin-bottom: 0; /* Remove bottom margin as it's the only text */
    font-size: 1.1rem; /* Slightly larger for readability */
    line-height: 1.7;
    color: var(--white-text); /* White text */
}

.author-bio-content p a {
    color: var(--color-gold); /* Make the CTA link stand out */
    text-decoration: underline;
    font-weight: bold;
}

.author-bio-content p a:hover {
    color: var(--navbar);
}

/*
* ===================================================
* Social Share Section
* ===================================================
*/
.social-share {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    margin-bottom: 3rem; /* Add this line */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.social-share-title {
    font-family: 'Cinzel', Georgia, "Times New Roman", serif;
    color: var(--primary-accent);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 1rem;
}

.social-share-links {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.social-share-links li {
    display: inline-block;
    margin: 0 0.5rem;
}

.social-share-links a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    border-radius: 25px;
    font-family: 'PT Serif', 'Merriweather', serif;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}

.social-share-links a:hover {
    background-color: var(--primary-accent);
    color: var(--white-text);
    text-decoration: none;
    transform: translateY(-2px);
}

.social-share-links .fab,
.social-share-links .fas {
    margin-right: 0.5rem;
}

/*
* ===================================================
* 404 Page Styling
* ===================================================
*/
.not-found-text {
    font-size: 1.6rem !important; /* Increase font size */
    line-height: 1.7 !important;
}

/*
* ===================================================
* View All Tags Button Styling
* ===================================================
*/
.view-all-tags-btn {
    font-family: 'Cinzel', Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-accent) !important;
    background-color: transparent !important;
    border: 1px solid var(--primary-accent) !important;
    border-radius: 25px;
    margin-top: 1.5rem;
    padding: 10px;
    text-align: center;
    text-transform: none; /* Override default button uppercase */
    transition: all 0.2s ease-in-out;
}

.view-all-tags-btn:hover {
    color: var(--white-text) !important;
    background-color: var(--primary-accent) !important;
}

/*
* ===================================================
* All Tags Page Styling
* ===================================================
*/
.all-tags-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 1rem;
    justify-content: center;
}

.all-tags-list li {
    display: flex;
    align-items: center;
}

.all-tags-list li a {
    display: inline-block;
    background: var(--navbar);
    color: var(--primary-accent);
    padding: 10px 18px;
    border-radius: 25px;
    font-family: 'Cinzel', Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: 1px solid #e0e0e0;
}

.all-tags-list li a:hover {
    background-color: var(--primary-accent);
    color: var(--white-text);
}

.all-tags-list .count {
    font-family: 'PT Serif', 'Merriweather', serif;
    font-size: 1rem;
    margin-left: -12px;
    background-color: var(--primary-accent);
    color: var(--white-text);
    border-radius: 50%;
    padding: 3px 9px;
    z-index: 2;
    position: relative;
    box-shadow: 0 0 0 1px var(--navbar); /* Replaces border with a crisp box-shadow */
}

/*
* ===================================================
* Mobile Overrides
* ===================================================
*/
@media (max-width: 991px) {
    /* 
    * Parallax background-attachment: fixed is problematic on mobile devices.
    * We'll disable it for tablets and phones, allowing the background to scroll normally.
    * This prevents the zoomed-in effect and improves performance.
    */
    #hero-parallax, .blog-hero {
        background-attachment: scroll;
        background-position: center center;
    }

    .newsletter-button {
        font-size: 1.5rem;
    }

    /* Instead of hiding the logo on mobile, we restyle it to sit above the menu */
    .navbar-center-logo {
        position: static; /* Let it sit in the normal document flow */
        transform: none;
        display: block; /* Take up its own line */
        text-align: center;
        padding-top: 15px;
    }

    .navbar-center-logo img {
        max-height: 100px; /* Make the logo smaller on mobile */
        padding-bottom: 50px;
    }

    /* Adjust the toggle button position to be centered under the logo */
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
        text-align: center;
        margin: 10px auto; /* Center the hamburger menu */
        float: none;
    }

    .nav-menu-wrapper {
        padding-top: 0; /* Remove top padding from nav links */
    }

    /* Reduce padding on the About page image column for mobile */
    .about-image-column {
        padding: 0 20px 30px 20px; /* Adds space below image on mobile */
    }

    /* Make tags on the All Tags page larger for better touch targets */
    .all-tags-list li a {
        font-size: 1.4rem;
        padding: 12px 20px;
    }
}
