/* ============================================================
   BLOG-INNER-PAGE.CSS
   Styles specific to blog-inner.html
   Sections: Banner · Two-column layout · Article · Comments
             Leave a Comment form · Sidebar widgets
   ============================================================ */


/* ─────────────────────────────────────────────────────────────
   PAGE-LEVEL HEADER OVERRIDE
   Same pattern as Services / About / Case Study / Blogs:
   sticky at top, all corners rounded at page top,
   flatten top corners while scrolling (JS adds .is-stuck).
   ───────────────────────────────────────────────────────────── */
body.page--blogs .site-header.is-scrolled {
  /* inherited from blogs-page.css — no override needed */
}


/* ─────────────────────────────────────────────────────────────
   PAGE WRAPPER
   ───────────────────────────────────────────────────────────── */
.blog-inner-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 32px 0 0;
}


/* ─────────────────────────────────────────────────────────────
   1. BANNER
   Reuses .blogs-banner from blogs-page.css.
   Only difference: multi-line heading (no override needed —
   heading text in HTML does the line wrapping via <br>).
   ───────────────────────────────────────────────────────────── */
.blog-inner__banner .blogs-banner__heading {
  font-size: 55px;
  line-height: 65px;
  max-width: 845px;
}


/* ─────────────────────────────────────────────────────────────
   2. MAIN BODY — Two-column content area
   Figma node 3557-7413
   Article (979px) + Sidebar (flex 1)
   ───────────────────────────────────────────────────────────── */
.blog-inner__body {
  padding: 40px 24px 60px;
}

.blog-inner__content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}


/* ─────────────────────────────────────────────────────────────
   3. ARTICLE COLUMN (left)
   ───────────────────────────────────────────────────────────── */
.blog-inner__article {
  flex: 0 0 auto;
  width: 71%; /* ~979/1380 = 71% of content area */
  max-width: 979px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* ── 3.1 Article Details ── */
.blog-inner__article-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Hero Image ── */
.blog-inner__hero {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  aspect-ratio: 979 / 474;
  width: 100%;
}

.blog-inner__hero-img {
  position: absolute;
  inset: 0;
  width: 101.64%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  left: 0;
  top: 0;
}

/* ── Details bar — absolute at image bottom, matches Figma layout ── */
/* Figma: top:432px in 474px image = bottom:0; left:22px; right:63px; h:43px */
.blog-inner__details {
  position: absolute;
  bottom: 0;
  left: 22px;
  right: 63px;
  height: 43px;
  display: flex;
  align-items: flex-end;
  gap: 0;
}

/* ── Meta badge wrapper — overflow:hidden clips the notch shadow ── */
/* Standalone implementation (does NOT use .blog-card__meta-wrap to avoid conflicts) */
.blog-inner__meta-wrap {
  position: relative;
  overflow: hidden;
  padding-right: 20px; /* reserves space for concave notch */
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  z-index: 1;
}

/* Concave corner notch — identical technique to .blog-card__meta-wrap::after */
.blog-inner__meta-wrap::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 20px;
  height: 40px;
  background: transparent;
  border-bottom-left-radius: 20px;
  box-shadow: 0 20px 0 0 #ffffff;
  pointer-events: none;
}

/* ── Meta badge text pill ── */
.blog-inner__meta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 10px 24px 3px;
  background: #ffffff;
  border-radius: 25px 25px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #9b9b9b;
  line-height: 30px;
  white-space: nowrap;
  flex-shrink: 0;
}

.blog-inner__meta-date,
.blog-inner__meta-sep,
.blog-inner__meta-author {
  color: #9b9b9b;
}

/* ── Category pills — Figma: #f0f2f4 bg, rounded-25px pill ── */
.blog-inner__cats {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 1.5px; /* Figma: 1.5px gap between meta badge notch and first pill */
  margin-bottom: 6px; /* nudge pills upward relative to badge bottom */
  flex-shrink: 0;
}

.blog-inner__cat {
  display: inline-flex;
  align-items: center;
  background: #f0f2f4;
  border-radius: 25px;           /* Figma: rounded-[25px] — NOT full pill */
  padding: 4.5px 19px 5px;       /* Figma: pt-[4.48px] pb-[4.99px] px-[18.999px] */
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 30px;             /* Figma: leading-[30px] */
  color: #333333;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.blog-inner__cat:hover {
  background: #e0e2e5;
}

/* ── Article text ── */
.blog-inner__lead {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: #333333;
  line-height: 30px;
  margin: 0;
}

.blog-inner__body-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-inner__body-text p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: #333333;
  line-height: 30px;
  margin: 0 0 16px;
}

.blog-inner__body-text p:last-child {
  margin-bottom: 0;
}


/* ─────────────────────────────────────────────────────────────
   4. COMMENTS SECTION
   Figma node 3581-990
   ───────────────────────────────────────────────────────────── */
.blog-inner__comments {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.blog-inner__section-title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 30px;
  line-height: 40px;
  letter-spacing: -0.9px;
  color: #111111;
  margin: 0;
}

/* Individual comment */
.blog-inner__comment {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.blog-inner__comment-avatar {
  flex-shrink: 0;
}

.blog-inner__comment-avatar img {
  width: 122px;
  height: 122px;
  border-radius: 25px;
  object-fit: cover;
  display: block;
}

.blog-inner__comment-body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-inner__comment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.blog-inner__commenter-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-inner__commenter-name {
  font-family: var(--font-body);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -1.25px;
  line-height: 30px;
  color: #111111;
  margin: 0;
}

.blog-inner__comment-date {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #9b9b9b;
  margin: 0;
}

.blog-inner__reply-btn {
  display: inline-flex;
  align-items: center;
  background: #333333;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 25px;
  padding: 5px 15px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.blog-inner__reply-btn:hover {
  background: #111111;
}

.blog-inner__comment-text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
  color: #333333;
  margin: 0;
}


/* ─────────────────────────────────────────────────────────────
   5. LEAVE A COMMENT FORM
   Figma node 3581-952
   ───────────────────────────────────────────────────────────── */
.blog-inner__leave-comment {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-right: 75px;
}

.blog-inner__form-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-inner__form-note {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
  color: #333333;
  margin: 0;
}

/* Form layout */
.blog-inner__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-inner__form-row {
  display: flex;
  gap: 24px;
}

/* Floating-label input field */
.blog-inner__field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.blog-inner__field input,
.blog-inner__field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #adadad;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  padding: 4px 0 17px;
  outline: none;
  transition: border-color 0.2s ease;
  resize: none;
  box-sizing: border-box;
}

.blog-inner__field textarea {
  padding-bottom: 13px;
  min-height: 112px;
}

.blog-inner__field input:focus,
.blog-inner__field textarea:focus {
  border-bottom-color: #333333;
}

/* Floating label */
.blog-inner__field label {
  position: absolute;
  left: 0;
  top: 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #9b9b9b;
  line-height: 18.2px;
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease;
}

/* Float label up when input has content or is focused */
.blog-inner__field input:not(:placeholder-shown) ~ label,
.blog-inner__field input:focus ~ label,
.blog-inner__field textarea:not(:placeholder-shown) ~ label,
.blog-inner__field textarea:focus ~ label {
  top: 0;
  font-size: 11px;
  color: #adadad;
}

.blog-inner__field--textarea {
  flex: none;
  width: 100%;
}

/* Checkbox row */
.blog-inner__checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-inner__checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 5px;
  background: #d9d9d9;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
}

.blog-inner__checkbox input[type="checkbox"]:checked {
  background: #333333;
}

.blog-inner__checkbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
}

.blog-inner__checkbox label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
  color: #333333;
  cursor: pointer;
}

/* Submit button */
.blog-inner__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #333333;
  border: 0.75px solid #333333;
  border-radius: 9999px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
  align-self: flex-start;
}

.blog-inner__submit:hover {
  background: #111111;
  border-color: #111111;
}

.blog-inner__submit-icon {
  width: 10px;
  height: 10px;
  display: block;
  flex-shrink: 0;
  transform: scaleY(-1);
}


/* ─────────────────────────────────────────────────────────────
   6. SIDEBAR (right column)
   Figma node 3561-12570
   ───────────────────────────────────────────────────────────── */
.blog-inner__sidebar {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── Generic Widget shell ── */
.blog-inner__widget {
  width: 100%;
}

/* ── Widget 1: Services links (white card) ── */
.blog-inner__widget--services {
  background: #ffffff;
  border-radius: 25px;
  padding: 45px;
}

.blog-inner__widget--services ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-inner__widget--services a {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.54px;
  line-height: 30px;
  color: #9b9b9b;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.blog-inner__widget--services a:hover {
  color: #333333;
}

/* ── Widget title (Recent posts, Archive) ── */
.blog-inner__widget-title-wrap {
  border-bottom: 1px solid #111111;
  padding-bottom: 11px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-inner__widget-title {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: 25px;
  line-height: 35px;
  letter-spacing: -0.75px;
  color: #111111;
  margin: 0;
}

.blog-inner__widget-arrow {
  font-size: 20px;
  color: #111111;
  line-height: 1;
}

/* ── Recent Posts ── */
/* Figma: each li is position:relative, overflow:hidden, fixed height */
.blog-inner__recent-posts {
  list-style: none;
  margin: 0;
  padding-top: 4px;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Each item: relative container, min-height matches thumbnail (75px + 3px top offset) */
.blog-inner__recent-post {
  position: relative;
  min-height: 78px; /* 75px thumb + 3px top offset */
  overflow: hidden;
  padding-left: 91px; /* content starts at left:91px (thumb 75px + gap 16px) */
}

/* Thumbnail — absolute, 75×75px, top:3px, border-radius:10px */
.blog-inner__recent-thumb {
  position: absolute;
  left: 0;
  top: 3px;
  width: 75px;
  height: 75px;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}

.blog-inner__recent-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
}

/* Content — sits in the padding-left space, flows naturally */
.blog-inner__recent-info {
  display: flex;
  flex-direction: column;
}

.blog-inner__recent-date {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #9b9b9b;
  line-height: 21px;
  display: block;
  padding-bottom: 5px;
}

.blog-inner__recent-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.54px;
  line-height: 25px;
  color: #111111;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.blog-inner__recent-title:hover {
  color: #f14f44;
}

/* ── Archive ── */
.blog-inner__archive {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.blog-inner__archive a {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.54px;
  line-height: 30px;
  color: #111111;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.blog-inner__archive a:hover {
  color: #f14f44;
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .blog-inner__article {
    width: 65%;
  }

  .blog-inner__leave-comment {
    padding-right: 0;
  }
}

@media (max-width: 1024px) {
  .blog-inner__content {
    gap: 30px;
  }

  .blog-inner__article {
    width: 60%;
  }

  .blog-inner__leave-comment {
    padding-right: 0;
  }

  .blog-inner__comment-avatar img {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 767px) {
  .blog-inner__banner .blogs-banner__heading {
    font-size: 32px;
    line-height: 42px;
  }

  .blog-inner__body {
    padding: 24px 12px 40px;
  }

  .blog-inner__content {
    flex-direction: column;
    gap: 40px;
  }

  .blog-inner__article {
    width: 100%;
    max-width: none;
  }

  .blog-inner__sidebar {
    width: 100%;
  }

  .blog-inner__hero {
    aspect-ratio: 4 / 3;
  }

  .blog-inner__comment {
    gap: 20px;
  }

  .blog-inner__comment-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 16px;
  }

  .blog-inner__form-row {
    flex-direction: column;
    gap: 20px;
  }

  .blog-inner__widget--services {
    padding: 28px;
  }
}


/* ─────────────────────────────────────────────────────────────
   ARTICLE BODY TYPOGRAPHY
   Used by generated post pages: headings, inline images,
   bullet lists, blockquotes inside .blog-inner__body-text
   ───────────────────────────────────────────────────────────── */

/* Section headings inside the article body */
.blog-inner__body-heading {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: #111111;
  margin: 40px 0 12px;
}

.blog-inner__body-subheading {
  font-family: var(--font-body);
  font-weight: var(--fw-bold);
  font-size: 18px;
  line-height: 1.4;
  color: #111111;
  margin: 28px 0 10px;
}

/* Paragraph styles */
.blog-inner__body-text p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: #444444;
  margin: 0 0 18px;
}

/* Inline images (from markdown ![alt](src)) */
.blog-inner__inline-img {
  margin: 28px 0;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0; /* collapse figure whitespace */
}

.blog-inner__inline-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

/* Bullet lists */
.blog-inner__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-inner__list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: #444444;
}

.blog-inner__list li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 0;
  color: #9b9b9b;
  font-size: 18px;
  line-height: 1.55;
}

/* Blockquotes */
.blog-inner__blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid #e0e0e0;
  background: #f8f9fa;
  border-radius: 0 12px 12px 0;
}

.blog-inner__blockquote p {
  font-style: italic;
  color: #666666;
  margin: 0;
}
