/* --------------------------------------------------
   BLOG PAGE
-------------------------------------------------- */

.blog-page {
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center; /* vertical center */
  text-align: center;
}

/* ===============================
   Knowledge Page
   =============================== */

.knowledge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  width: 100%;
  margin-bottom: 40px;
}

.knowledge-list {
  width: 100%;
}

.knowledge-item {
  width: 100%;
}

.knowledge-title {
  font-family: "Magda", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  flex: 1;
}

.read-more {
  font-family: "Magda_Light", sans-serif;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.knowledge-item.active .read-more {
  opacity: 1;
  pointer-events: auto;
}

.knowledge-arrow {
  transition: transform 0.25s ease;
}

.knowledge-item.active .knowledge-arrow {
  transform: rotate(90deg);
}

.knowledge-content {
  overflow: hidden;
}

.knowledge-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;

  max-height: 0;
  opacity: 0;

  transition:
    max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease;
}

.knowledge-item.active .knowledge-inner {
  max-height: 600px;
  opacity: 1;
}

.knowledge-right img {
  width: 100%;
}

.knowledge-sub {
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  margin-bottom: 10px;
  opacity: 1;
}

.knowledge-text {
  font-family: Magda_Light, sans-serif;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  margin-bottom: 20px;
  opacity: 0.8;
}

.knowledge-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 40px;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  opacity: 0.7;
  display: flex;
  gap: 10px;
  padding-bottom: 40px;
}

.knowledge-figure {
  margin: 0;
}

.knowledge-figure img {
  width: 100%;
  display: block;
}

.knowledge-figure figcaption {
  font-family: Magda_Light, sans-serif;
  font-size: 0.8rem;
  margin-top: 10px;
  opacity: 0.7;
}

.meta-tag {
  display: inline-block;
  width: fit-content;
  padding: 4px 8px;
  background: #6c665d; /* adjust to your theme */
  color: #ffffff;
  font-family: "Magda_Light", sans-serif;
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
  opacity: 1;
  border-radius: 3px;
}

/* --------------------------------------------------
   Crazy Crazing Article
-------------------------------------------------- */

.blog-page {
  padding-top: 250px;
  width: 100%;
}

.breadcrumb-blog {
  font-family: "Magda", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.8px;
  margin-bottom: clamp(60px, 10vh, 100px);
  text-align: left;
  width: 100%;
  user-select: none;
}

.breadcrumb-blog {
  color: var(--text);
  text-align: left; /* force left alignment */
  width: 100%; /* take full width */
  display: block; /* ensure block-level */
}

.breadcrumb-blog a {
  color: var(--text);
  text-decoration: none;
}

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

.breadcrumb-blog span {
  font-weight: bold;
}

.blog-title-sub {
  font-family: "Magda", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.8px;
  margin-bottom: clamp(60px, 10vh, 100px);
  text-align: left;
  max-width: 2000px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.blog-article {
  font-family: Magda_Light, sans-serif;
  font-size: clamp(1.05rem, 1.3vw, 1.3rem);
  word-spacing: 0.05em;
  opacity: 0.8;
  line-height: 1.4;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  text-align: left;
  margin-bottom: 60px;
}

.blog-title {
  font-family: Magda_Light, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2px;
  text-align: left;
}

.blog-sub {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin-bottom: 20px;
  opacity: 0.8;
  text-align: left;
}

.blog-quote {
  font-family: "Magda", sans-serif;
  text-align: center;
  font-style: italic;
  margin: 40px auto;
  max-width: 800px;
}

.blog-divider {
  border-bottom: 1px solid var(--border);
  margin: 20px 0 30px;
}

.blog-content p {
  margin-bottom: 24px;
  line-height: 1.7;
}

.blog-image {
  margin: 40px 0;
  text-align: center;
}

.blog-image img {
  max-width: 520px;
  width: 100%;
}

.blog-image figcaption {
  margin-top: 8px;
  font-size: 1rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .knowledge-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .knowledge-right {
    order: 2;
    margin-bottom: 40px;
  }

  .knowledge-left {
    order: 1;
  }
}
