/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: Arial, sans-serif;
  background: #f9fafb;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  height: 40px;
}
nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #444;
  font-weight: bold;
}
nav a:hover {
  color: #0066cc;
}

/* Main */
.main-content {
  flex: 1;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.page-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
article {
  background: #fff;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
article img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}
article h3 {
  margin-bottom: 0.5rem;
}
.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  color: #0066cc;
  text-decoration: none;
}
.read-more:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #fff;
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Post pages */
.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  text-decoration: none;
  color: #0066cc;
}
.back-link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 0.5rem;
  }
  nav a {
    margin: 0 0.5rem;
  }
}

.logo {
  height: auto;        /* height adjusts automatically */
  max-height: 100px;   /* limits how tall it can get on big screens */
  width: 200px;        /* default width on large screens */
  max-width: 100%;     /* ensures it never exceeds its container */
  border-radius: 15px;
}

/* Mobile-friendly logo */
@media (max-width: 768px) {
  .logo {
    width: 150px;      /* smaller width on mobile */
    max-width: 70%;    /* optional: prevents overflow */
    height: auto;      /* maintain aspect ratio */
  }
}

article img {
  width: 100%;        /* fills the width of the article container */
  max-width: 800px;   /* caps the width so it doesn’t get too large */
  height: auto;       /* maintains aspect ratio */
  display: block;
  margin-bottom: 1rem;
  border-radius: 6px; /* optional: soft corners */
}

@media (max-width: 768px) {
  article img {
    max-width: 100%;  /* image shrinks on mobile */
    height: auto;
  }
}

/* All images inside main content (homepage articles + individual posts) */
.main-content img {
  width: 100%;        /* scale to container width */
  max-width: 650px;   /* prevent huge images on large screens */
  height: auto;       /* maintain aspect ratio */
  display: block;
  margin-bottom: 1.5rem;
  border-radius: 6px; /* optional: rounded corners */
}

/* Mobile-friendly adjustment */
@media (max-width: 768px) {
  .main-content img {
    max-width: 100%;  /* shrink images on smaller screens */
    height: auto;
  }
}

.main-content {
    max-width: 800px;
    margin: 2rem auto;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
p {
    margin-bottom: 1rem;
}
strong {
    color: #4f46e5; /* Indigo accent for bold text */
}
ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}
a.cta-link {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: #4f46e5;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 0.5rem;
}
a.cta-link:hover {
    background-color: #6366f1;
}

.main-content p,
.main-content ul {
    margin-bottom: 1.5rem; /* Adjust this value to your liking */
    line-height: 1.6;      /* Improves readability */
}

.main-content ul li {
    margin-bottom: 0.5rem; /* Space between list items */
}