/*
Theme Name: Charitybuzz Blog
Theme URI: https://charitybuzz.com/blog
Author: Charitybuzz
Description: Custom WordPress theme for the Charitybuzz blog, matching the header and footer of charitybuzz.com. Served at charitybuzz.com/blog via a Vercel rewrite proxying to this Lightsail-hosted WordPress install.
Version: 1.0
Text Domain: charitybuzz-blog
*/

/* ---------------------------------------------------
   RESET / BASE
--------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: #111111;
  background: #ffffff;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------
   HEADER
   NOTE: verify exact colors/fonts against the live
   charitybuzz.com header in browser devtools —
   these are close approximations, not extracted values.
--------------------------------------------------- */
.cb-header {
  border-bottom: 1px solid #e5e5e5;
  background: #ffffff;
}

.cb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.cb-header__logo img {
  height: 28px;
  width: auto;
}

.cb-header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.cb-header__nav > ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.cb-header__nav a {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.cb-header__nav .has-submenu {
  position: relative;
}

.cb-header__nav .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  min-width: 220px;
  padding: 8px 0;
  z-index: 20;
}

.cb-header__nav .has-submenu:hover .submenu {
  display: block;
}

.cb-header__nav .submenu li a {
  display: block;
  padding: 8px 16px;
  text-transform: none;
  font-weight: 400;
  font-size: 14px;
}

.cb-header__actions {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.cb-header__actions .btn-primary {
  background: #111111;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 2px;
}

/* ---------------------------------------------------
   MAIN CONTENT AREA
--------------------------------------------------- */
.cb-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
  min-height: 50vh;
}

.cb-post-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cb-post-meta {
  font-size: 13px;
  color: #666666;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cb-post-content img {
  margin: 24px 0;
  border-radius: 4px;
}

.cb-post-list article {
  border-bottom: 1px solid #e5e5e5;
  padding: 32px 0;
}

.cb-post-list h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.cb-post-list .excerpt {
  color: #333333;
}

.cb-pagination {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
}

/* ---------------------------------------------------
   FOOTER
--------------------------------------------------- */
.cb-footer {
  background: #111111;
  color: #cccccc;
  padding: 56px 0 32px;
  margin-top: 60px;
}

.cb-footer__logo img {
  height: 24px;
  margin-bottom: 24px;
  filter: brightness(0) invert(1); /* renders black svg logo white on dark footer */
}

.cb-footer__columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.cb-footer__columns h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 16px;
}

.cb-footer__columns ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.cb-footer__columns a:hover {
  color: #ffffff;
}

.cb-footer__newsletter {
  border-top: 1px solid #333333;
  border-bottom: 1px solid #333333;
  padding: 24px 0;
  margin-bottom: 24px;
}

.cb-footer__social {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.cb-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #888888;
  flex-wrap: wrap;
  gap: 16px;
}

.cb-footer__bottom a {
  color: #888888;
}

@media (max-width: 768px) {
  .cb-header__nav {
    display: none; /* placeholder — add a mobile nav toggle if needed */
  }
  .cb-footer__columns {
    grid-template-columns: repeat(2, 1fr);
  }
}
