/* blog.css
   STANDALONE FILE — does not require styles2.css to be loaded.
   Duplicates all base site styles (typography, colors, hamburger nav,
   .wide-card, etc.) plus blog-specific additions. If core site styles
   in styles2.css change in the future, mirror those changes here too. */

/* ---------------------------------------------------
   Global Styles
--------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  color: #333;
}

a {
  text-decoration: none;
  color: #337ab7;
}

a:hover {
  color: #23527c;
}

img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

h2 {
  margin-top: 20px;
  font-size: 18px;
}

p {
  color: #666;
  font-size: 14px;
  line-height: 1.5rem;
}

main {
  padding-top: 30px;
}

.blog-list-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-list-link:hover .blog-list-item h2 {
  color: #337ab7;
}

/* ---------------------------------------------------
   Blue Social Section
--------------------------------------------------- */
.blue-section {
  background-color: #336699;
  padding: 20px;
}

.blue-section img {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.blue-section h1 {
  color: #fff;
}

.blue-section h2 {
  color: white;ner
}

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

/* ---------------------------------------------------
   Hero Section
--------------------------------------------------- */
.hero {
  display: grid;
}

.grid-container {
  max-width: 800px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 768px) {
  .grid-container {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------------------------------------------------
   Class-based image sizing
   (replaces #centered-image / #profile-image / #socnet-image IDs)
--------------------------------------------------- */
.centered-image {
  width: calc(6%);
    margin: 10px;
}

.profile-image {
  border-radius: 22px 22px 22px 22px;
}

.socnet-image {
  width: calc(6%);
  border-radius: 0 0 0 0;
}

/* ---------------------------------------------------
   Project Grid (in case blog pages ever reference related projects)
--------------------------------------------------- */
.project-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .project-grid {
    grid-template-columns: auto;
  }
}

.project-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.footer {
  background-color: #336699;
  padding: 10px;
  text-align: center;
}

/* ---------------------------------------------------
   Hamburger Nav
--------------------------------------------------- */
.hamburger-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #336699;
  padding: 0.75rem 1.5rem;
}

#menu-toggle {
  display: none;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 30px;
  text-decoration: none;
}

.hamburger-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#menu-toggle:checked ~ .menu {
  max-height: 500px;
}

.menu li {
  padding: 0;
}

.menu a {
  display: block;
  padding: 0.75rem 0;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.menu a:hover {
  color: #cce0f5;
}

#menu-toggle:checked ~ .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

#menu-toggle:checked ~ .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

#menu-toggle:checked ~ .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------------------------------------------------
   Wide Card (article wrapper)
--------------------------------------------------- */
.wide-card {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 88%;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------
   Blog Post Template
--------------------------------------------------- */
.post-date {
  color: #666;
  font-size: 14px;
  font-style: italic;
  display: block;
  margin-top: -10px;
  margin-bottom: 20px;
}

.post-hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.post-section {
  margin-top: 30px;
  margin-bottom: 30px;
}

.post-bio {
  margin-top: 20px;
  padding-top: 10px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

/* ---------------------------------------------------
   Spacer utilities (replace empty <p></p> spacers)
--------------------------------------------------- */
.section-spacer-sm {
  margin-top: 20px;
}

.section-spacer-lg {
  margin-top: 40px;
}

/* ---------------------------------------------------
   Blog Index (blog.html)
--------------------------------------------------- */
.blog-list {
  list-style: none;
  margin: 40px auto;
  padding: 0;
  max-width: 800px;
}

.blog-list-item {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.blog-list-item h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.blog-list-item h2 a {
  color: #333;
}

.blog-list-item h2 a:hover {
  color: #337ab7;
}

.blog-list-date {
  color: #666;
  font-size: 14px;
  font-style: italic;
  display: block;
  margin-bottom: 10px;
}

.blog-list-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.5rem;
  margin: 0;
}

.blog-list-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

/* ---------------------------------------------------
   Skip Link (accessibility)
--------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #336699;
  color: #fff;
  padding: 8px 16px;
  z-index: 200;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------------------------------------------------
   Body Content Lists (matches paragraph typography)
--------------------------------------------------- */
.post-section ul {
  margin: 20px 0;
  padding-left: 24px;
}

.post-section li {
  color: #666;
  font-size: 14px;
  line-height: 1.5rem;
  margin-bottom: 14px;
}

.post-section li strong {
  color: #333;
}

.post-section li::marker {
  color: #336699;
}

/* ---------------------------------------------------
   Post Inline Image (mid-article images, not the hero)
--------------------------------------------------- */
.post-inline-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin: 30px 0;
}