/* ============================================================ Single Post Styles ================== */
/* ================== 2-Column Layout ================== */
.mah-2col-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--mah-spacing-md);
  margin-top: var(--mah-spacing-xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  align-items: start;
}

.mah-post-content-wrap {
  border: 1px solid var(--mah-border-color);
  border-radius: 8px;
  padding: var(--mah-spacing-md);
  width: 100%;
  box-sizing: border-box;
}


@media (max-width: 900px) {
  .mah-2col-layout {
    display: flex;
    flex-direction: column;
  }

  .mah-post-content-wrap {
    order: 1;
  }

  .mah-sidebar-right {
    order: 2;
    width: 100%;
    margin-top: var(--mah-spacing-lg);
    padding: 0 var(--mah-spacing-sm);
  }
}

.mah-sidebar-right {
  background-color: var(--mah-bg-white);
  padding: 0; /* Let inner components handle their padding */
  display: flex;
  flex-direction: column;
  gap: var(--mah-spacing-md); /* Space between stacked components */
}





/* ============================================================ PostHeader ================== */
.mah-post-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mah-post-header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mah-post-header .mah-breadcrumbs {
  padding: 0;
  margin: 0;
  margin-bottom: 0;
}

.mah-post-title {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--mah-color-heading-post);
  word-break: break-word;
  overflow-wrap: anywhere;
  margin:  0 0 var(--mah-spacing-sm) 0;
  text-align: center;
}

.mah-post-date {
  font-size: 13px;
  color: var(--mah-text-color);
}

/* ========== Fix Dropdown Clipping ========== */
.mah-content-sidebar-layout,
.mah-post-content,
main {
  overflow: visible !important;
  position: relative;
  z-index: 0;
}

header,
.mah-header,
.mah-site-header {
  position: relative;
  z-index: 9999;
}


/* ============================================================ Related Posts ================== */
.mah-related-post {
  max-width: 1200px;
  margin: var(--mah-spacing-xl) auto;
  padding: 0 15px;
  border: 1px solid var(--mah-border-color);
  border-radius: 6px;
  padding: var(--mah-spacing-sm) var(--mah-spacing-md);
}

.mah-related-items {
  list-style: none;
  padding: 0;
  margin: var(--mah-spacing-md) 0 0 0;
  
}

.mah-related-items li {
  border-bottom: 1px solid var(--mah-border-color);
}




/* ============================================================ Post Navigation ================== */
.mah-post-navigation {
  max-width: 1200px;
  margin: var(--mah-spacing-xl) auto;
  padding: 0 15px;
  border-top: 1px solid #e2e8f0;
  margin-top: 40px;
  padding-top: 20px;
}

.mah-post-navigation ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 0;
  margin: 0;
  gap: var(--mah-spacing-md);
}

.mah-post-navigation li a {
  text-decoration: none;
  font-weight: 600;
  color: var(--mah-color-pink);
  display: block;
}

.mah-post-navigation li a:hover {
  color: var(--mah-color-accent);
}