@charset "UTF-8";
/* CSS Document */

/* =====================================================
   BLOG CONTENT
   ===================================================== */

.img-blog {
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
margin-bottom: 30px;
}

.blog-container {
  float: left;
  max-width: 800px;
  margin-left: 200px;
  padding: 20px 0px 80px 0px;
}

#bmt{padding-top: 30px;}

.blog-container h1,
.blog-container h2,
.blog-container h3 {
  font-family: "Rosarivo", cursive;
  color: #5B2C6F;
  margin-bottom: 16px;
}

.blog-container h1 {
  font-size: 36px;
  font-weight: 400;
  border-bottom: 2px solid #5B2C6F;
  padding-bottom: 10px;
  color: #22252B;
}

.blog-container h2 {
  font-size: 24px;
  font-weight: 700;
  color: #5B2C6F;
  margin-top: 40px;
}

.blog-container p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-container ul {
  margin: 0 0 16px 20px;
  padding: 0;
}

.blog-container ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.blog-container a {
  color: #5B2C6F;
  text-decoration: underline;
}

.blog-container a:hover {
  text-decoration: underline;
}

.blog-container hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 30px 0;
}

.blog-updated {
  font-size: 14px;
  font-weight: 700;
  color: #5B2C6F;
  display: block;
  margin-bottom: 24px;
}

/* =====================================================
   BLOG NAVIGATION
   ===================================================== */

.blog-nav {
  width: 1050px;
  margin: 0 auto 80px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 6px -6px #ccc;
  overflow: hidden;
}

.latest-posts {
  padding: 20px;
}

.latest-posts h3 {
  font-family: "Rosarivo", cursive;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 500;
  color: #5B2C6F;
  border-bottom: 2px solid #5B2C6F;
  padding-bottom: 10px;
}

/* ── 3-column grid ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 10px;
}

/* ── Card ── */
.post-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  transition: box-shadow 0.3s, transform 0.3s;
}

.post-card:hover {
  box-shadow: 0 6px 18px rgba(91, 44, 111, 0.15);
  transform: translateY(-3px);
}

.post-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* ── Card image ── */
.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #F2EFF6; /* fallback if image is missing */
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.04);
}

/* ── Card body ── */
.post-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-card-body .post-date {
  font-size: 12px;
  color: #888;
  margin: 0;
}

.post-card-title {
  font-family: "Rosarivo", cursive;
  font-size: 15px;
  font-weight: 500;
  color: #5B2C6F;
  line-height: 1.4;
  margin: 0;
}

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

/* ── Accordion ── */
.blog-accordion {
  border-top: 1px solid #ddd;
}

.blog-accordion-header {
  display: block;
  padding: 15px 20px;
  background-color: rgba(91, 44, 111, 0.40);
  color: #5B2C6F;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  font-size: 18px;
}

.blog-accordion-header:hover {
  background-color: #F2EFF6;
  color: #5B2C6F;
}

.blog-accordion-header::after {
  content: "▼";
  position: absolute;
  right: 20px;
  transition: transform 0.3s;
}

.archive-month {
  padding: 10px 20px;
  background-color: #F2EFF6;
  font-weight: 500;
  color: #5B2C6F;
  margin-bottom: 20px;
}

/* ── Accordion grid spacing ── */
.accordion-grid {
  padding: 0 20px 20px;
}

.archive-month {
  padding: 10px 20px;
  background-color: #F2EFF6;
  font-weight: 500;
  color: #5B2C6F;
  /* Add a top border to separate month groups cleanly */
  border-top: 1px solid #ddd;
}


/* ── Accordion toggle ── */
.blog-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

#older-posts-toggle {
  display: none;
}

#older-posts-toggle:checked ~ .blog-accordion-content {
  max-height: 9999px;
}

#older-posts-toggle:checked ~ .blog-accordion-header::after {
  transform: rotate(180deg);
}

