/* ==========================================
   Global Site Styles
   ========================================== */

/* Reset & Base Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  padding: 2em;
  flex: 1;
}

/* ==========================================
   Site Header
   ========================================== */
header.site-header {
  background: #111;
  color: #fff;
  padding: 1em;
}

header.site-header h1 {
  font-family: "Arvo", serif;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2em;
}

.header-left h1 {
  margin: 0;
  font-size: 2em;
}

.header-left nav {
  display: flex;
  gap: 1em;
}

.header-logo {
  margin-left: 2em;
}

.header-logo img {
  height: 48px;
  width: auto;
  display: block;
}

nav a {
  color: #fff;
  margin-right: 1em;
  text-decoration: none;
}

/* ==========================================
   Site Footer
   ========================================== */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1em 0;
}

/* ==========================================
   Home Page
   ========================================== */
.page-title {
  font-size: 3em;
  color: #111;
  text-align: left;
  margin-bottom: 0.7em;
}

.home-hero {
  background: #fff;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slogan {
  font-family: "Pacifico", cursive;
  font-size: 8em;
  text-align: center;
  margin: 0;
  letter-spacing: 0.05em;
}

/* ==========================================
   Posts Page
   ========================================== */
.posts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5em;
  justify-content: flex-start;
}

.post-card {
  background: #fff;
  border: 2px solid #111;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  padding: 2.5em 2em 2em 2em;
  width: 350px;
  margin-bottom: 2em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.post-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px) scale(1.02);
}

.post-card-header {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5em;
}

.post-date {
  font-size: 1em;
  color: #111;
  font-weight: bold;
  background: #fff;
  border: 1px solid #111;
  border-radius: 6px;
  padding: 0.2em 0.7em;
  letter-spacing: 0.05em;
}

.post-title {
  font-family: "Dancing Script", cursive;
  font-size: 2em;
  color: #111;
  margin: 0.2em 0 0.5em 0;
  text-align: left;
}

.post-title a {
  color: #111;
  text-decoration: none;
  transition: color 0.2s;
}

.post-title a:hover {
  color: #444;
}

.post-divider {
  width: 40px;
  height: 3px;
  background: #111;
  border-radius: 2px;
  margin: 0.5em 0 1em 0;
}

.post-excerpt {
  color: #222;
  font-size: 1.1em;
  margin-bottom: 1.5em;
}

.post-readmore {
  color: #fff;
  background: #111;
  border-radius: 6px;
  padding: 0.5em 1.2em;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  align-self: flex-end;
  transition:
    background 0.2s,
    color 0.2s;
}

.post-readmore:hover {
  background: #444;
  color: #fff;
}

/* ==========================================
   Utility Classes
   ========================================== */
.hidden {
  display: none !important;
}

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

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

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
  header.site-header {
    padding: 0.75em 1em;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75em;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
    gap: 1em;
  }

  .header-left h1 {
    font-size: 1.4em;
  }

  .header-logo {
    margin-left: 0;
    margin-top: 0.5em;
    align-self: flex-end;
  }

  .header-logo img {
    height: 40px;
  }

  .header-left nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 0.5em;
  }

  nav a {
    margin: 0.4em 0;
  }

  .slogan {
    font-size: 4em;
  }
}
