/* ===== Base Page Layout ===== */

body {
  max-width: 1100px;              /* used to be 700px, giving homepage room to breathe */
  margin: 2rem auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  padding: 0 1rem 4rem;
  color: #222;
  background-color: #AAAAAA;
}

/* Limit regular post pages so they don't go full-wide giant paragraphs */
.post-body,
.post-body p,
.single-post-content,
.article-content {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Header / Nav ===== */

header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.75rem;
}

header a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
}

header nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #444;
  font-size: 0.95rem;
}

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

/* ===== General Content ===== */

main h1 {
  margin-top: 0;
}

ul {
  padding-left: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

small {
  display: block;
  font-size: 0.8rem;
  color: #666;
}

.error {
  background: #fee;
  border: 1px solid #f88;
  padding: 0.5rem;
  border-radius: 4px;
  font-weight: bold;
  color: #900;
  margin-bottom: 1rem;
}

/* ===== Forms / Inputs ===== */

textarea,
input {
  width: 100%;
  max-width: 100%;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem;
  box-sizing: border-box;
  border: 1px solid #aaa;
  border-radius: 4px;
  background-color: #fff;
}

button {
  padding: 0.6rem 1rem;
  cursor: pointer;
  background-color: #222;
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
}

button:hover {
  background-color: #000;
}

/* ===== Single Post Styling ===== */

.post-body p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

footer {
  border-top: 1px solid #ccc;
  margin-top: 3rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
}

/* ===================================================== */
/* =============== HOMEPAGE NEW SECTIONS ================*/
/* ===================================================== */

/*
These classes are used in blog-index.ejs.
- .home wraps the whole homepage
- .hero is the top banner
- .featured is the cards list
- .about explains who you are
- .cta-bottom is the call to action
*/

/* Outer wrapper for homepage */
main.home {
  /* body is already max-width:1100px, so just spacing here */
  padding-bottom: 4rem;
  color: #111;
  line-height: 1.5;
}

/* ---------- HERO SECTION ---------- */

.hero {
  background: linear-gradient(135deg, #0c1c44 0%, #1f2a5c 60%);
  color: #fff;
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.hero-inner {
  max-width: 650px;
  margin: 0 auto;
}

.site-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #f2b330; /* gold accent */
  margin: 0 0 0.5rem;
}

.tagline {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-btn {
  display: inline-block;
  background: #f2b330;
  color: #0c1c44;
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.25);
}

.cta-btn:hover {
  filter: brightness(1.05);
}

/* ---------- FEATURED CARDS SECTION ---------- */

.featured {
  margin-bottom: 3rem;
}

.featured h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0c1c44;
  margin-bottom: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1rem;
}

.card {
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  padding: 1rem 1rem 1.5rem;
  background: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0c1c44;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover {
  text-decoration: underline;
}

.card-excerpt {
  font-size: 0.95rem;
  color: #444;
  margin: 0 0 1rem;
  line-height: 1.4rem;
}

.read-more {
  font-size: 0.9rem;
  color: #0c1c44;
  text-decoration: none;
  font-weight: 500;
}

.read-more:hover {
  text-decoration: underline;
}

/* ---------- ABOUT SECTION ---------- */

.about {
  background: #f9f9f9;
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem 2rem;
  margin-bottom: 3rem;
  border: 1px solid #eee;
}

.about h2 {
  margin-top: 0;
  color: #0c1c44;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .75rem;
}

.about p {
  margin: 0 0 .75rem;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.5rem;
}

/* ---------- CALL TO ACTION (BOTTOM) ---------- */

.cta-bottom {
  text-align: center;
  background: #0c1c44;
  color: #fff;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cta-bottom h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: #f2b330;
  font-weight: 600;
  margin-bottom: .75rem;
}

.cta-bottom p {
  max-width: 500px;
  margin: 0 auto 1.5rem;
  font-size: .95rem;
  line-height: 1.4rem;
  color: rgba(255,255,255,0.9);
}

.cta-bottom .cta-btn {
  background: #f2b330;
  color: #0c1c44;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  padding: .75rem 1.25rem;
  display: inline-block;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}