/* =========================================================
   Global Layout (Sticky Footer + Consistent Dark Background)
   ========================================================= */

/* Theme tokens */
:root {
  --bg-main: #0b0b0b;       /* match Home (set this once) */
  --text-main: #E0E0E0;
  --footer-gap: 16px;
  --footer-pad-top: 16px;
  --footer-pad-bottom: 32px;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-main);
}

/*
  Sticky footer layout:
  - body becomes a flex column that fills the viewport
  - main content grows to push footer down
*/
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Space between footer and bottom of viewport */
  padding-bottom: var(--footer-gap);

  font-family: Arial, sans-serif;
  text-align: left;
}

/* Your main wrapper in base.html: <main class="container mt-4 site-content"> */
.site-content {
  flex: 1 0 auto;
}

/* Footer should not shrink + breathing room */
footer {
  flex-shrink: 0;
  padding-top: var(--footer-pad-top);
  padding-bottom: var(--footer-pad-bottom);
}

/* =========================================================
   Keep a predictable default for common text
   ========================================================= */

h1,
h5,
p {
    color: #E0E0E0;
}

/* =========================================================
   Page Titles
   ========================================================= */

.page-title {
    color: #76C7C0;
}

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

.navbar {
    background-color: #092E20;
    border-bottom: 1px solid #092E20;
}

.navbar-brand,
.nav-link {
    color: #E0E0E0;
}

.navbar-brand:hover,
.nav-link:hover {
    color: #76C7C0;
}

/* Stop Bootstrap 4 from making the active nav link bright white */
.navbar-dark .navbar-nav .nav-link.active {
    color: #E0E0E0;
}

/* =========================================================
   Layout / Headings
   ========================================================= */

.container-fluid {
    margin-bottom: 50px;
}

/* Center headings inside container (keeps your current look) */
.container h1,
.container h2,
.container h3 {
    margin-bottom: 2rem;
    text-align: center;
}

/* =========================================================
   Images
   ========================================================= */

.post-thumbnail {
    max-width: 150px;
    height: auto;
    object-fit: cover;
}

.blog-image {
    max-width: 100%;
    width: 50%;
    height: auto;
    display: block;
    margin: 0 auto 2rem auto;
}

/* =========================================================
   Links (Article titles, footer icons, etc.)
   ========================================================= */

a.text-decoration-none {
    color: #76C7C0 !important;
}

a.text-decoration-none:hover {
    color: #5DA6A6 !important;
}

/* =========================================================
   Text Container / Readability
   ========================================================= */

.text-container {
    max-width: 45rem; /* ~80 chars at 16px */
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: left;
}

.text-container p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* If you use an H1 inside text content, keep your existing styling */
.text-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #76C7C0;
}

/* Lists */
ul,
ol {
    padding-left: 20px;
    text-align: left;
    list-style-position: outside;
}

/* =========================================================
   Footer
   ========================================================= */

footer a {
    color: #76C7C0;
}

footer a:hover {
    color: #5DA6A6;
}

.bi {
    font-size: 2rem;
    margin: 0 10px;
}

footer p {
    margin-top: 10px;
}

/* =========================================================
   Buttons (Topics)
   ========================================================= */

.btn {
    background-color: #76C7C0;
    color: #121212;
    padding: 10px 20px;
    margin: 5px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #5DA6A6;
}

.btn.active {
    background-color: #092E20;
    color: #E0E0E0;
}

.topics {
    text-align: center;
    margin-bottom: 20px;
}

.posts {
    margin-top: 20px;
}

.separator {
    height: 2px;
    background-color: #76C7C0;
    margin: 20px 0 40px 0;
}

/* =========================================================
   Code / Markdown
   ========================================================= */

code,
pre {
    text-align: left;
    font-family: "Courier New", Courier, monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* =========================================================
   Pagination (Dark Theme)
   ========================================================= */

.pagination-dark .pagination .page-link {
    background-color: #343a40;
    color: #f8f9fa;
    border-color: #454d55;
}

.pagination-dark .pagination .page-link:hover {
    background-color: #495057;
    color: #ffffff;
}

.pagination-dark .pagination .page-item.disabled .page-link {
    background-color: #495057;
    color: #adb5bd;
}

/* =========================================================
   About Page
   ========================================================= */
   .page-title {
    color: #6fcad3;
    font-weight: 500;
}


   .about-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
    max-width: 900px;
    margin: 2rem auto 0;
    padding-top: 32px;
}


.about-photo {
    width: 180px;
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.about-text p {
  font-size: 1.05rem;      /* or 1.1rem */
  line-height: 1.7;
  margin-bottom: 1.25rem;
}



/* =========================================================
   Case Studies
   ========================================================= */

.case-study {
    margin-top: 2rem;
}

.case-study-list {
    max-width: 700px;
    margin: 0 auto 2rem auto; /* center the block */
    padding-left: 1.25rem;
    text-align: left;         /* left-align text */
}

.case-study-list li {
    margin-bottom: 0.5rem;
}
