/* ----- Page Setup --------------------------------------------------------------------- */

.page-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

.pagination, .post-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 100%;
}

p,
li,
blockquote {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}



/* ----- Header ------------------------------------------------------------------------- */

.site-header {
  padding: 1rem 0;
  position: relative;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-name a {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--wa-color-brand-40);
  transition: color var(--wa-transition-normal);
}

.site-name a:hover {
  text-decoration: none;
  color: var(--wa-color-brand-60); /* optional: light hover effect */
}

.wa-dark .site-name a {
  color: var(--wa-color-brand-60);
}

.wa-dark .site-name a:hover {
  color: var(--wa-color-brand-40);
}

.header-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: .3rem;
}

.header-links li a {
  text-decoration: none;
  font-weight: 500;
  color: inherit;
  transition: color var(--wa-transition-normal);
}

.header-links li a:hover {
  color: var(--wa-color-brand-60);
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-links {
    justify-content: center;
  }
}

.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.theme-toggle button {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: inherit;
}




/* ----- Course Listing ----------------------------------------------------------------- */

.featured-card {
  border: 2px solid var(--wa-brand-color);
  background-color: var(--wa-color-brand-80, #ccc);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.wa-dark .featured-card {
  background-color: var(--wa-color-brand-20, #333);
}

.featured-card h2 {
  font-size: 1.6rem;
}

wa-badge i,
wa-badge svg {  
  margin-right: 5px;   /* targets Font Awesome icon inside Web Awesome badge */
}


/* ----- Blog Post ---------------------------------------------------------------------- */

.hero-caption,
.image-caption {
  font-size: 0.875rem; /* Slightly smaller */
  text-align: right;
  color: var(--wa-color-neutral-60, #979498);
  margin-top: 0.25rem;
}

.wa-dark .hero-caption,
.wa-dark .image-caption {
  color: var(--wa-color-neutral-40, #5b585d);
}

.image-caption {
  margin-bottom: 1.25rem;
}

.full-bleed {                                    /* full page bleed image */
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: block;
}

.wa-dark .dark-only { display: block; }          /* styling for light or dark mode image swaps */
.wa-dark .light-only { display: none; }
.wa-light .light-only { display: block; }
.wa-light .dark-only { display: none; }


/* styling for code boxes */
.linenumber pre {
  margin-bottom: 1rem;
  counter-reset: line;
}

.linenumber .highlight-line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  border-right: 1px solid hsl(230, 4%, 64%);
  padding: 0 0.5rem;
  margin-right: 1rem;
  color: hsl(230, 4%, 64%);
}

.wa-dark .linenumber .highlight-line::before {
  border-right-color: hsl(220, 10%, 40%);
  color: hsl(220, 10%, 40%);
}

/* ----- Blog Pagination ---------------------------------------------------------------------- */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3rem;
}

.post-item {
  margin: 0;
}

.post-card {
  display: flex;
  align-items: flex-start;
  color: inherit;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.post-thumb-container {
  width: 160px;
  height: 100%;
  flex-shrink: 0;
}

.post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-meta {
  padding-left: 2rem;
  flex: 1;
}

.post-meta h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.post-meta h2 a {
  text-decoration: none;
}

.post-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.post-excerpt {
  margin: 0;
  margin-bottom: 1rem;
}

.tag-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-label-text {
  font-weight: 500;
  margin-right: 0.5rem;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.tag-list li {
  margin: 0;
}

.post-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.post-tags li {
  margin: 0;
}

.tag-label {                    /* adds tag-like round rect in title of tag pages */
  display: inline-block;
  padding: 0em 0.2em;
  border: 1px solid var(--wa-color-neutral-80, #ccc);
  border-radius: 0.2em;
  font-weight: 500;
}

.wa-dark .tag-label {
  border: 1px solid var(--wa-color-neutral-20, #333);
}




/* ----- Bio Block ---------------------------------------------------------------------- */
.bio-block {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.95rem;
}


.bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.bio-text {
  max-width: 600px;
}



/* ----- Footer ------------------------------------------------------------------------- */
footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

footer p {
  margin-bottom: 1.5rem;
}

.tool-stack-text {
  margin-left: .25rem;
  margin-right: 0.25rem;
}

.tool-stack-icon {
  margin-right: 0.15rem;
}

footer p a,
footer p a:hover {
  text-decoration: none;
}


footer .social-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

footer .social-links li a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

footer .social-links i {
  font-size: 1.25rem;
  color: var(--wa-color-brand-60);
  transition: color var(--wa-transition-normal), transform var(--wa-transition-normal);
}

/* footer .social-links a:hover,
footer p a:hover {
  color: var(--wa-color-brand-80);
} */