/*
Theme Name:   Astra Child - Genesis by IKP
Theme URI:    https://ikpknowledgepark.com
Description:  Custom child theme for Astra with a dedicated Genesis by IKP landing page, plus a shared custom header/footer used site-wide.
Author:       Rahul
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* ==========================================================================
   Site-wide layout (used by page.php, single.php, archive.php, blog.php,
   category.php). This intentionally does NOT reuse Astra's .ast-container
   markup, because our header.php/footer.php are fully custom and no longer
   render Astra's default wrappers. We define our own simple content wrap
   instead so spacing stays predictable everywhere except the landing page,
   which goes full width on purpose.
   ========================================================================== */

.site-content-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 140px 24px 80px; /* top padding clears the fixed .g-nav header */
}

.site-content-wrap .entry-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin-bottom: 24px;
  color: #0F2027;
}

.site-content-wrap .entry-content {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #2A4550;
}

.site-content-wrap .archive-list,
.site-content-wrap .blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-content-wrap .archive-list li,
.site-content-wrap .blog-list article {
  border: 1px solid #E2EEE9;
  border-radius: 10px;
  padding: 20px 24px;
}

.site-content-wrap .archive-list a,
.site-content-wrap .blog-list a {
  color: #1D9E75;
  text-decoration: none;
  font-weight: 600;
}

/* Landing page (page-landing.php) must render truly full-bleed, no theme
   container, no extra top padding beyond what the fixed nav needs. That is
   handled entirely by assets/css/landing.css, which is enqueued only on
   that template. This stylesheet only resets the html/body so Astra's own
   theme CSS can't add stray margins around it. */
body.page-template-page-landing {
  margin: 0;
  padding: 0;
}

body.page-template-page-landing #wpadminbar ~ .site-content-wrap,
body.page-template-page-landing .site-content-wrap {
  display: none; /* landing page never uses the generic wrap */
}
