/* ========================================
   SINGLE POST STYLES - Mobile First (Figma Match)
   Theme: Kini AI Blog
   ======================================== */

/* Base Layout */
.single-post {
  background-color: #181818;
  color: #ffffff;
  min-height: 100vh;
  /* overflow-x: hidden; */
}

a {
  color: #ffffff;
  text-decoration: none;
}

.single-container {
  width: 100%;
  padding: 0 var(--site-padding);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px;
  /* Gap between major sections */
  position: relative;
  top: 0;
  /* Removed top spacing */
}

/* Post Header / Hero */
.post-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Gap between title and excerpt */
  width: 100%;
  padding-top: 37px;
  /* Updated to 37px */
}

.post-meta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Gap between items inside wrapper */
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Title */
.post-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  /* Medium */
  font-size: 32px;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
  width: 100%;
  /* max-width: 343px; REMOVED per request */
  text-align: center;
}

/* Subtitle / Excerpt */
.post-subtitle {
  font-family: "Rethink Sans", sans-serif;
  font-weight: 400;
  /* Regular */
  font-size: 16px;
  line-height: 1.25;
  /* 125% */
  color: #ffffff;
  /* Pure white */
  margin: 0;
  text-align: center;
  max-width: 100%;
  opacity: 1;
  /* Explicitly reset opacity */
}

/* Separator Line */
.separator-line {
  width: 100%;
  height: 1px;
  background-color: #fff1eb0d;
  /* Using the subtle border color from design context */
  /* Alternatively use an image border if required, but CSS border is cleaner */
  position: relative;
}

/* Wide Separator Container (for lines that break out of 768px) */
.wide-separator-container {
  width: 100%;
  max-width: 100%;
  /* Full width on mobile */
  margin: 0 auto;
  padding: 0 var(--site-padding);
  /* Match mobile container padding */
}

.image-separator {
  margin-top: 50px;
}

/* Date */
/* Date Container */
.post-date-container {
  width: 100%;
  border-top: 1px solid #fff1eb0d;
  border-bottom: 1px solid #fff1eb0d;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.post-date {
  font-family: "Rethink Sans", sans-serif;
  font-weight: 700;
  /* Bold */
  font-size: 12px;
  line-height: normal;
  /* Auto */
  color: #ffffff;
  text-align: center;
  width: auto;
  display: block;
  text-transform: none;
  /* Ensure no capitalization interference */
  letter-spacing: 0px;
}

/* Featured Image */

.post-thumbnail {
  width: 100%;
  position: relative;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;



}

.post-thumbnail img {
  object-fit: cover;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  /* Explicitly reset aspect-ratio */
}



.post-thumbnail-caption {
  font-family: "Rethink Sans", sans-serif;
  font-weight: 500;
  /* Medium */
  font-size: 14px;
  line-height: 1;
  /* 100% */
  color: rgba(255, 255, 255, 0.6);
  /* White 60% */
  margin: 0;
  /* Margin handled by parent gap */
  text-transform: none;
  /* Reset capitalization */
  text-align: left;
  /* Align left per new context */
}


/* Author Top */
/* Author Top */
.post-author-top {
  display: flex;
  align-items: center;
  gap: 16px;
  /* Space between avatars and text */
  margin-top: 50px;
  /* Updated to 50px from separator */
  margin-bottom: 32px;
  padding-bottom: 0px;
  border-bottom: none;
  justify-content: flex-start;
  width: 100%;
}

.author-avatars-stack {
  display: flex;
  align-items: center;
  position: relative;
}

.avatar-circle {
  width: 24px;
  /* Resized to 24px */
  height: 24px;
  /* Resized to 24px */
  border-radius: 50%;
  border: 1px solid #181818;
  /* Thinner border for smaller size */
  /* Match bg to create 'cutout' effect */
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-circle.stacked {
  margin-left: -8px;
  /* Reduced overlap for smaller avatars */
  z-index: 5;
}

.author-text-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.author-names {
  font-family: "Rethink Sans", sans-serif;
  font-weight: 700;
  /* Bold */
  font-size: 14px;
  line-height: 1;
  /* 100% */
  color: #ffffff;
  margin: 0;
  letter-spacing: 0px;
}

.author-names a {
  color: #ffffff;
  text-decoration: none;
}

.author-names a:hover {
  text-decoration: underline;
}

.author-date-sub {
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #ffffff;
  opacity: 0.6;
  margin: 0;
}

/* Content */
.post-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #ffffff;
  width: 100%;
  padding-bottom: 50px;
  /* 50px space before bottom author */
}

.post-content h1 {
  color: #ffffff !important;
  font-family: "Unbounded", sans-serif;
  font-size: 32px;
  margin-top: 24px;
  margin-bottom: 16px;
}

.post-content p {
  font-family: "Rethink Sans", sans-serif;
  font-weight: 500;
  /* Medium */
  font-size: 17px;
  line-height: 25px;
  /* 1.47 */
  letter-spacing: 0.02em;
  /* 2% */
  margin-bottom: 16px;
  /* Paragraph spacing */
}

.post-content p:last-child {
  margin-bottom: 0;
}

/* Headings in Content */
.post-content h2 {
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  /* Regular */
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.84px;
  color: #ffffff;
  margin-top: 24px;
  margin-bottom: 24px;
}

.post-content h3 {
  font-family: "Unbounded", sans-serif;
  font-weight: 400;
  /* Regular */
  font-size: 28px;
  /* Changed from 24px to match spec */
  line-height: 1;
  /* Changed to 100% */
  letter-spacing: -0.84px;
  color: #ffffff;
  font-style: normal;
  margin-top: 24px;
  margin-bottom: 20px;
}

.post-content h4 {
  font-family: "Unbounded", sans-serif;
  /* Changed to Unbounded to match h style request */
  font-weight: 400;
  /* Regular */
  font-size: 28px;
  /* Changed to 28px */
  line-height: 1;
  letter-spacing: -0.84px;
  color: #ffffff;
  font-style: normal;
  margin-top: 20px;
  margin-bottom: 16px;
}

.post-content ul {
  list-style-type: disc;
  padding-left: 25.5px;
  margin-bottom: 16px;
}

.post-content ul li {
  display: list-item;
  list-style-type: disc;
}

.post-content li {
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.34px;
  margin-bottom: 8px;
  /* Space between list items */
}

.post-content li b {
  font-weight: 700;
}

.post-content li a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.post-content a {
  color: #007cba !important;
  /* Brand Orange */
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 4px !important;
  text-decoration-color: #007cba !important;
  transition: opacity 0.2s ease;
}

.post-content a:hover {
  opacity: 0.8 !important;
  text-decoration-thickness: 2px !important;
}

.post-content b,
.post-content strong {
  font-weight: 700;
}

.post-content i,
.post-content em {
  font-style: italic;
}

/* Images inside content */
.post-content img {
  max-width: 100%;
  height: auto;
  margin-top: 40px !important;
  margin-bottom: 40px !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 0;
}

.post-content figure {
  margin: 40px 0 !important;
  padding: 0;
}

.post-content figure img {
  margin: 0 !important;
}

.post-content figcaption {
  font-family: "Rethink Sans", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px !important;
  text-align: center;
}

/* "Big Deal" Section Styling (if using specific class or just H2) */
/* Assuming H2 matches the "What is Grok 4?" style */

/* Content */
.post-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #ffffff;
  width: 100%;
  padding-bottom: 50px;
  /* 50px space before bottom author */
}

/* ... existing content styles ... */

/* Author Bottom */
.post-author-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  /* Match Top spacing */
  width: 100%;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 165px;
  /* Huge bottom padding per request */
  justify-content: flex-start;
}

/* CTA Wrapper with padding */
.cta-wrapper {
  padding: 0 var(--site-padding);
  /* Side padding using variables */
  width: 100%;
}

/* Persona Assessment CTA */
.persona-assessment-cta {
  background-color: #ED7221;
  background-image: url('../images/spike.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
  /* Ensure pattern shows */
  border-radius: 0px;
  margin-top: 80px;
  /* Make room for extruded image */
  margin-bottom: 30px;
  /* Changed to 30px */

  /* 16px side padding on mobile */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
  /* Allow image to extend outside */
  position: relative;
  width: 100%;
}

.assessment-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: -80px;
  /* Extrude 80px upwards */
  margin-bottom: 20px;
  /* Gap between image and text */
}

.assessment-person-img {
  width: 100%;
  /* Full width */
  height: auto;
  display: block;
  object-fit: contain;
}

.assessment-text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px 48px 20px;
  /* No top padding, gap handles spacing */
  gap: 24px;
  width: 100%;
}

.assessment-text-content h3 {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  /* SemiBold */
  font-size: 30px;
  line-height: 1;
  /* 100% */
  letter-spacing: 0px;
  /* 0% */
  color: #ffffff;
  margin: 0;
}

.assessment-btn {
  background-color: #000000;
  color: #ffffff !important;
  font-family: "Rethink Sans", sans-serif;
  font-weight: 700;
  /* Bold */
  font-size: 16px;
  line-height: 1;
  /* 100% */
  letter-spacing: 0px;
  /* 0% */
  padding: 20px 12px;
  /* Top/Bottom 20, Left/Right 12 */
  border-radius: 10px;
  /* Roundness 10 */
  text-decoration: none !important;
  display: inline-block;
  transition: transform 0.2s ease;
  min-width: 200px;
}

.assessment-btn:hover {
  transform: translateY(-2px);
  background-color: #222222;
}

/* Tablet and Desktop Adjustments */
@media (min-width: 768px) {
  .single-container {
    max-width: 768px;
  }

  .post-header {
    padding-top: 64px;
    /* Updated to 64px for tablet/desktop */
  }

  .post-title {
    font-size: 64px;
    /* Updated to 64px */
    max-width: 768px;
    text-align: center;
  }

  .post-subtitle {
    font-size: 24px;
    /* Updated to 24px */
    text-align: center;
  }

  .post-date {
    font-size: 16px;
    /* Updated to 16px */
  }

  .post-meta-wrapper {
    align-items: center;
  }

  /* Wide separator gets 1096px width */
  .wide-separator-container {
    max-width: 1096px;
    padding: 0;
    /* Remove side padding, let max-width center it */
  }

  /* Desktop/Tablet styles continue... */

  .post-thumbnail {
    width: 100%;
    /* Full width, no constraints */
    max-width: none;
    /* Remove max-width */
    height: 531px;
    /* Fixed height for tablet/desktop */
  }

  .post-thumbnail img {
    width: 100%;
    height: 531px;
    /* Match container height */
    object-fit: cover;
    aspect-ratio: auto !important;
    /* Force reset any aspect-ratio */
  }

  /* Persona Assessment CTA - Desktop Layout (Full Width) */
  .persona-assessment-cta {
    background-image: url('../images/spike-bg.svg');
    height: 277px;
    margin-top: 65px;
    /* Make room for extruded image */
    margin-bottom: 0;
    padding: 0;
    /* No padding on desktop */
    flex-direction: row;
    /* Horizontal layout */
    justify-content: center;
    align-items: center;
    overflow: visible;
  }

  .assessment-image-wrapper {
    position: absolute;
    left: 0;
    /* At left edge of CTA */
    top: -65px;
    width: auto;
    height: 342px;
    /* Restored original height */
    margin: 0;
  }

  .assessment-person-img {
    width: auto;
    height: 342px;
    /* Restored original height */
    object-fit: contain;
  }

  .assessment-text-content {
    padding: 0;
    max-width: 600px;
    /* Reduced max-width */
    margin: 0 auto;
    gap: 32px;
    /* Desktop gap */
  }

  .assessment-text-content h3 {
    font-size: 32px;
    /* Reduced for tablet */
    line-height: 1;
    letter-spacing: 0px;
    max-width: 600px;
    /* Reduced max-width */
    /* Match increased max-width */
  }
}

/* Desktop only (1024px+) */
@media (min-width: 1024px) {

  /* Desktop padding on wrapper */
  .cta-wrapper {
    padding: 0 var(--site-padding);
  }

  /* Restore larger size for desktop */
  .assessment-text-content h3 {
    font-size: 40px;
    /* Reduced from 56px */
  }
}