/* =====================================================
   GLOBAL BASE — DO NOT TOUCH STRUCTURE
===================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 40px auto;
  padding: 20px;
  max-width: 800px;
  font-family: Arial, sans-serif;
  background-color: #f8f8f2;
  color: #000;
  line-height: 1.6;
}

/* =====================================================
   HEADINGS
===================================================== */
h1, h2, h3, h4 {
  color: #ac0000;
  margin-bottom: 10px;
}

/* =====================================================
   NAVIGATION
===================================================== */
nav {
  margin-bottom: 30px;
}

nav a {
  color: #ac0000;
  text-decoration: none;
  font-weight: bold;
  margin-right: 15px;
}

nav a:hover {
  text-decoration: underline;
}

/* =====================================================
   INDEX / HERO SECTIONS
===================================================== */
.section-content {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px;
  margin: 20px auto;
  max-width: 500px;
  display: flex;
  gap: 15px;
  align-items: center;
}

.section-content img {
  max-width: 150px;
  border-radius: 4px;
}

.section-content h2 {
  margin: 0 0 8px;
}

.section-content p {
  margin: 0 0 10px;
  color: #555;
}

.section-content .button {
  padding: 6px 12px;
  font-size: 0.9em;
}

/* ================================
   BLOG CARD: SQUARISH & BIGGER
================================ */
.blogs-container > .blog-post {
  flex: 0 1 calc(45% - 25px); /* two per row, bigger width */
  padding: 25px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* text on left inside card */
  background-color: #ffffff;
  min-height: 350px; /* gives that squarish feel */
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blogs-container > .blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.blogs-container > .blog-post img {
  width: 100%;
  max-height: 180px;  /* keeps images from stretching cards too tall */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.blogs-container > .blog-post h2 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #ac0000;
}

.blogs-container > .blog-post .post-meta {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 12px;
  text-align: left; /* author/date on left */
}

.blogs-container > .blog-post p {
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 15px;
  color: #000;
}

.blogs-container > .blog-post .read-more {
  padding: 8px 14px;
  font-size: 0.95em;
  border-radius: 5px;
  background-color: #ac0000;
  color: #fff;
  text-decoration: none;
  align-self: flex-start;
}

.blogs-container > .blog-post .read-more:hover {
  background-color: #8a0000;
}

/* Mobile fallback */
@media screen and (max-width: 800px) {
  .blogs-container > .blog-post {
    flex: 0 1 100%;
    min-height: auto; /* let mobile cards adjust naturally */
  }

  .blogs-container > .blog-post img {
    max-height: none; /* natural image height */
  }
}


====================================================
   FULL BLOG POST
===================================================== */
.blog-post-full {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto 40px;
}

.blog-post-full img {
  max-width: 100%;
  margin: 0 auto 20px;
  display: block;
}

.blog-post-full .post-meta {
  text-align: right;
  color: #555;
  font-size: 0.9em;
  margin-bottom: 15px;
}

/* =====================================================
   CONTACT PAGE
===================================================== */
.contact-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 40px;
  max-width: 800px;
  margin: 40px auto;
}

.contact-card h2 {
  text-align: center;
  margin-bottom: 20px;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.contact-card button {
  background-color: #ac0000;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.contact-card button:hover {
  background-color: #8a0000;
}

/* =====================================================
   ABOUT PAGE
===================================================== */
.about-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 40px;
  max-width: 800px;
  margin: 40px auto;
}

.about-card h2 {
  text-align: center;
  margin-bottom: 20px;
}

.about-card p {
  margin-bottom: 20px;
}

.about-card .about-note {
  color: #777;
  font-style: italic;
}

/* =====================================================
   BUTTONS
===================================================== */
.button {
  background-color: #ac0000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
}

.button:hover {
  background-color: #8a0000;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  text-align: center;
  font-size: 0.8em;
  color: #777;
  margin-top: 40px;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 800px) {
  .blog-post {
    width: 100%;
    max-width: 95%;
  }

  .section-content {
    flex-direction: column;
    text-align: center;
  }

  .section-content img {
    max-width: 120px;
  }
}
/* ================================
   INDEX PAGE HERO CARDS BIGGER
================================ */
.section-content {
  max-width: 650px;      /* bigger than before */
  padding: 30px;         /* more spacious padding */
  margin: 30px auto;     /* keep it centered with space */
}

/* Optional: slightly bigger images inside */
.section-content img {
  max-width: 180px;      /* a little bigger than before */
}
.blogs-hero .slogan {
    color: #000000 !important;
}

/* =========================
   BLOG PAGE — CARD LAYOUT
   SAFE & SCOPED
   ========================= */

/* Gallery container */
.blogs-container,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Individual blog card */
.blog-card,
.blog-item {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover,
.blog-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.1);
}

/* Blog images — FORCE SAME SIZE */
.blog-card img,
.blog-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}

/* Blog title */
.blog-card h2,
.blog-item h2 {
  font-size: 1.3rem;
  margin: 10px 0;
  color: #111;
}

/* Author + date */
.blog-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

/* Description text */
.blog-card p,
.blog-item p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

/* Read more button */
.read-more {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 18px;
  background: #c62828;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* =========================
   INDIVIDUAL BLOG POSTS
   (READ MORE PAGES)
   ========================= */

.blog-post img {
  max-width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  margin: 20px 0;
}

.blog-post {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ==============================
   BLOG INDEX PAGE (CARDS)
   ============================== */

.blogs-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.blogs-container .blog-post {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

/* FORCE ALL IMAGES SAME SIZE */
.blogs-container .blog-post img {
  width: 100%;
  height: 220px !important;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

/* Title */
.blogs-container .blog-post h2 {
  font-size: 1.3rem;
  margin: 10px 0;
  color: #111;
}

/* Author + date (LEFT aligned) */
.blogs-container .post-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
  text-align: left;
}

/* Read more button */
.read-more {
  margin-top: auto;
  align-self: flex-start;
  padding: 10px 18px;
  background: #c62828;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ==============================
   INDIVIDUAL BLOG PAGES
   (READ MORE)
   ============================== */

.blog-post {
  max-width: 800px;
  margin: 60px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

/* FORCE ALL BLOG IMAGES TO MATCH */
.blog-post img {
  width: 100% !important;
  height: 320px !important;
  object-fit: cover;
  border-radius: 14px;
  margin: 20px 0;
}

/* ================================
   BLOGS PAGE FLEXIBLE CARD SIZE
   Squarish, fills space
================================ */
.blogs-container {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 25px !important;
  max-width: 1200px !important;
  margin: 0 auto 40px !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.blogs-container > .blog-post {
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 25px !important;
  flex: 1 1 300px !important; /* flexible width: grows/shrinks */
  max-width: 400px !important; /* won’t get too huge */
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.blogs-container > .blog-post:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 22px rgba(0,0,0,0.08) !important;
}

.blogs-container > .blog-post img {
  width: 100% !important;
  max-width: 320px !important;
  height: auto !important;
  border-radius: 6px !important;
  margin-bottom: 15px !important;
}

.blogs-container > .blog-post h2 {
  color: #ac0000 !important;
  text-align: center !important;
  margin-bottom: 10px !important;
}

.blogs-container > .blog-post .post-meta {
  text-align: left !important;
  width: 100% !important;
  font-size: 0.95em !important;
  color: #555 !important;
  margin-bottom: 10px !important;
}

.blogs-container > .blog-post p {
  color: #000 !important;
  text-align: left !important;
  width: 100% !important;
  line-height: 1.5 !important;
  margin-bottom: 12px !important;
}

.blogs-container > .blog-post .read-more {
  background-color: #ac0000 !important;
  color: #fff !important;
  text-decoration: none !important;
  padding: 6px 12px !important;
  border-radius: 5px !important;
  font-size: 1em !important;
  align-self: flex-start !important;
}

.blogs-container > .blog-post .read-more:hover {
  background-color: #8a0000 !important;
}

/* MOBILE */
@media (max-width: 1000px) {
  .blogs-container > .blog-post {
    flex: 1 1 45% !important; /* two per row on medium screens */
  }
}

@media (max-width: 700px) {
  .blogs-container {
    flex-direction: column !important;
    align-items: center !important;
  }
  .blogs-container > .blog-post {
    flex: 1 1 90% !important; /* full width on mobile */
  }
  .blogs-container > .blog-post img {
    max-width: 100% !important;
  }
.blogs-container > .blog-post {
  flex: 1 1 30%; /* grow, shrink, and aim for ~3 per row */
  max-width: 350px; /* optional, keeps them from exploding too much */
  min-width: 250px; /* ensures they don’t shrink too small */
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

/* ================================
   BLOG CARDS FIX – MAIN BLOGS PAGE
================================ */
.blogs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px; /* smaller gap between cards */
  justify-content: center;
  margin: 0 auto 40px auto;
}

.blogs-container > .blog-post {
  flex: 0 1 calc(30% - 15px); /* three cards per row, wider */
  background-color: #ffffff;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blogs-container > .blog-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.blogs-container > .blog-post img {
  width: 100%;
  max-width: 280px; /* consistent image size */
  height: auto;
  border-radius: 6px;
  margin-bottom: 12px;
}

.blogs-container > .blog-post h2 {
  text-align: center;
  margin-bottom: 10px;
  color: #ac0000;
}

.blogs-container > .blog-post .post-meta {
  width: 100%;
  text-align: left; /* author/date on left */
  font-size: 0.95em;
  color: #555;
  margin-bottom: 8px;
}

.blogs-container > .blog-post .post-meta::after {
  content: "";
  display: block;
  border-bottom: 1px dotted #ccc; /* line under author/date */
  margin-top: 6px;
  width: 100%;
}

.blogs-container > .blog-post p {
  margin-bottom: 12px;
  color: #000;
  text-align: left;
  line-height: 1.5;
}

.blogs-container > .blog-post .read-more {
  align-self: flex-start;
  background-color: #ac0000;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 1em;
  transition: background-color 0.2s ease;
}

.blogs-container > .blog-post .read-more:hover {
  background-color: #8a0000;
}

/* Mobile adjustments */
@media screen and (max-width: 900px) {
  .blogs-container > .blog-post {
    flex: 0 1 45%; /* two per row on smaller screens */
  }
}

@media screen and (max-width: 600px) {
  .blogs-container > .blog-post {
    flex: 0 1 100%; /* stack on mobile */
  }
}
/* ==== FIX BLOG CARD ROW SPACING ==== */

body .blogs-container {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important; /* cards align left instead of stretching */
  gap: 15px; /* smaller, uniform spacing between cards */
}

body .blogs-container .blog-post {
  margin: 0 !important; /* remove old margin that caused weird spacing */
  flex: 0 1 calc(32% - 10px) !important; /* account for gap */
}

/* ================================
   BLOG CARDS — CLEAN & FIXED
================================ */
.blogs-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* cards align left */
  gap: 15px; /* space between cards */
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 20px;
  box-sizing: border-box;
}

.blogs-container > .blog-post {
  flex: 0 1 calc(32% - 10px); /* 3 cards per row */
  max-width: 400px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blogs-container > .blog-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.blogs-container > .blog-post img {
  width: 100%;
  max-width: 320px; /* consistent image width */
  height: 220px; /* consistent image height */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 12px;
}

.blogs-container > .blog-post h2 {
  color: #ac0000;
  text-align: center;
  margin-bottom: 10px;
}

.blogs-container > .blog-post .post-meta {
  text-align: left;
  width: 100%;
  font-size: 0.95em;
  color: #555;
  margin-bottom: 8px;
  position: relative;
}

.blogs-container > .blog-post .post-meta::after {
  content: "";
  display: block;
  border-bottom: 1px dotted #ccc;
  margin-top: 6px;
  width: 100%;
}

.blogs-container > .blog-post p {
  margin-bottom: 12px;
  color: #000;
  text-align: left;
  line-height: 1.5;
}

.blogs-container > .blog-post .read-more {
  align-self: flex-start;
  background-color: #ac0000;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 1em;
  transition: background-color 0.2s ease;
}

.blogs-container > .blog-post .read-more:hover {
  background-color: #8a0000;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1000px) {
  .blogs-container > .blog-post {
    flex: 0 1 45%; /* 2 per row on medium screens */
  }
}

@media screen and (max-width: 700px) {
  .blogs-container {
    justify-content: center; /* center cards on small screens */
  }
  .blogs-container > .blog-post {
    flex: 0 1 90%; /* 1 per row on mobile */
  }
  .blogs-container > .blog-post img {
    max-width: 100%;
  }
}


/* FEATURED WRITING — HORIZONTAL CARD SCROLL */
.featured-writing {
  max-width: 1200px;
  margin: 50px auto 30px auto;
  padding: 20px;
}

.featured-writing h2 {
  text-align: center;
  color: #ac0000;
  margin-bottom: 20px;
  font-size: 2rem;
}

/* horizontal scroll container */
.featured-container {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 10px;
  scrollbar-width: thin; /* for Firefox */
}

.featured-container::-webkit-scrollbar {
  height: 8px;
}

.featured-container::-webkit-scrollbar-thumb {
  background-color: #ac0000;
  border-radius: 4px;
}

.featured-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 15px;
  min-width: 280px;
  flex: 0 0 auto; /* prevents shrinking */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.featured-card h3 {
  margin: 0 0 10px 0;
  color: #ac0000;
  font-size: 1.2rem;
}

.featured-card p {
  margin-bottom: 12px;
  color: #000;
  line-height: 1.4;
}

.featured-card .button {
  align-self: flex-start;
  padding: 6px 12px;
  background-color: #ac0000;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.95rem;
}

.featured-card .button:hover {
  background-color: #8a0000;
}

/* ================================
   FEATURED WRITING
================================ */
#featured-writing {
  max-width: 1000px;
  margin: 50px auto;
  text-align: center;
}

#featured-writing .featured-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

#featured-writing .featured-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 250px; /* makes it flexible */
  max-width: 300px; /* prevents images/cards from being too wide */
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#featured-writing .featured-item img {
  width: 100%;
  max-width: 250px; /* prevents huge images */
  height: auto;     /* keeps aspect ratio */
  border-radius: 6px;
  margin-bottom: 12px;
}

#featured-writing .featured-item h3 {
  color: #ac0000;
  margin: 10px 0 8px;
  font-size: 1.2em;
}

#featured-writing .featured-item p {
  color: #000;
  font-size: 0.95em;
  line-height: 1.4;
  margin-bottom: 12px;
}

#featured-writing .featured-item .button {
  padding: 6px 12px;
  font-size: 0.9em;
}


/* ================================
   MANIFESTO STYLING
================================ */
#manifesto {
  margin: 60px auto;
  text-align: center;   /* centers text */
}

#manifesto .manifesto-container {
  display: inline-block; /* shrink to fit content */
  background: linear-gradient(135deg, #ffe0e0, #fff0f0); /* subtle background gradient */
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  max-width: 800px;
}

#manifesto p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #ac0000;   /* matches headings */
  font-style: italic;
  margin: 0;
}


