/*
 Theme Name: Astra Child
 Template: astra
 Version: 1.0.0
*/

/* TERMS page layout fix (page id 478) */
body.page-id-478 .site-content .ast-container {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* Make Gutenberg separator line full-width (optional) */
body.page-id-478 .entry-content .wp-block-separator {
  max-width: 100% !important;
  width: 100% !important;
}
/* Global content centering for Astra (pages + posts) */
.site-content .ast-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
/* Prevent weird sidebar spacing from affecting full-width layouts */
#primary,
.content-area,
.site-main {
  max-width: 100%;
}
/* -------------------------------------------
   Astra default Pages + Posts (Title + Content)
   Make them match NexDesk width/centering
------------------------------------------- */

/* 1) Constrain title area */
body.page .entry-header,
body.single-post .entry-header {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* 2) Constrain the actual content */
body.page .entry-content,
body.single-post .entry-content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* 3) Constrain post extras (comments + nav) so they don't go full width */
body.single-post .comments-area,
body.single-post .navigation.post-navigation,
body.single-post .ast-post-navigation {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* 4) Optional: make page/post titles look cleaner + consistent */
body.page .entry-title,
body.single-post .entry-title {
  line-height: 1.15;
  margin-bottom: 12px;
  /* Adjust if you want smaller/larger */
  font-size: clamp(32px, 4vw, 44px);
}
/* Give page/post titles more breathing room */
body.page .entry-header,
body.single-post .entry-header{
  padding-top: 28px;
  padding-bottom: 14px;
}

body.page .entry-title,
body.single-post .entry-title{
  margin-top: 0;
  margin-bottom: 14px;
}

/* Optional: add a little space after the meta/updated line */
body.page .entry-meta,
body.single-post .entry-meta{
  margin-bottom: 18px;
}
.nx-featured-image {
  margin: 18px 0 22px;
}

.nx-featured-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}
