.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
  margin-top: 100px;

  h1 {
    color: var(--Black, #060708);
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: Manrope;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%; /* 35.2px */
  }

  .field {
    display: flex;
    padding: 10px 20px;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border: 2px solid #060708;
    select {
      border: 0;
      background: transparent;
      color: #060708;
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      width: 100%;
      color: var(--Black, #060708);
      leading-trim: both;
      text-edge: cap;
      font-family: Manrope;
      font-size: 12px;
      font-style: normal;
      font-weight: 700;
      line-height: 130%; /* 15.6px */
      letter-spacing: 2.4px;
      text-transform: uppercase;
      outline: none;
    }
  }
}

.btn-more-text {
  text-align: center;
  margin-bottom: 120px;
  .btn-more {
    display: inline-flex;
    padding: 18px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 2px solid var(--Black, #060708);
    color: var(--Black, #060708);
    leading-trim: both;
    text-edge: cap;
    font-family: Manrope;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%; /* 18.2px */
    letter-spacing: 2.8px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;

    &:hover {
      text-decoration: none;
      background: var(--Black, #060708);
      color: var(--White, #fff);
    }
  }
}

.featured-post {
  display: flex;
  align-items: center;
  margin-bottom: 64px;

  .featured-post-image {
    width: 55%;

    .post-image {
      display: block;
      height: 430px;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }

    &:hover {
      img {
        filter: grayscale(0%);
      }
    }
  }

  .featured-post-content {
    width: 45%;
    box-sizing: border-box;
    padding-left: 30px;

    .post-date {
      color: var(--Grey, #878787);
      leading-trim: both;
      text-edge: cap;
      font-family: Manrope;
      font-size: 12px;
      font-style: normal;
      font-weight: 400;
      line-height: 180%; /* 21.6px */
      margin-bottom: 20px;
    }

    .post-excerpt {
      color: var(--Grey, #878787);
      leading-trim: both;
      text-edge: cap;
      font-family: Manrope;
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      line-height: 180%; /* 25.2px */
      letter-spacing: 1.12px;
      margin-bottom: 20px;
    }

    .read-more-link {
      color: var(--Black, #060708);
      leading-trim: both;
      text-edge: cap;
      font-family: Manrope;
      font-size: 14px;
      font-style: normal;
      font-weight: 700;
      line-height: 180%; /* 25.2px */
      letter-spacing: 1.12px;
      text-decoration-line: underline;
      text-decoration-style: solid;
      text-decoration-skip-ink: auto;
      text-decoration-thickness: auto;
      text-underline-offset: auto;
      text-underline-position: from-font;
      transition: all 0.3s ease;

      &:hover {
        color: #878787;
      }
    }

    h2 {
      margin-bottom: 20px;
      a {
        color: #060708;
        leading-trim: both;
        text-edge: cap;
        font-family: Manrope;
        font-size: 32px;
        font-style: normal;
        font-weight: 700;
        line-height: 130%; /* 41.6px */
        letter-spacing: 2.56px;
      }
    }
  }
}

.blog-container {
  margin-bottom: 160px;
}

.posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;

  .grid-post {
    width: calc(33.33% - 20px);
    margin-bottom: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;

    &:hover {
      .grid-post-image {
        figure legend {
          opacity: 1;
        }

        figure img {
          opacity: 0.9;
          filter: grayscale(0%);
        }
      }
    }

    .post-title {
      color: var(--Black, #060708);
      leading-trim: both;
      text-edge: cap;
      font-family: Manrope;
      font-size: 16px;
      font-style: normal;
      font-weight: 700;
      line-height: 130%; /* 20.8px */
      letter-spacing: 1.28px;
    }

    .grid-post-content {
      padding: 24px;
      border: 1px solid rgba(0, 0, 0, 0.1);
      background: #f8f8f8;
      display: flex;
      flex-direction: column;
      height: 100%;

      .post-date {
        color: var(--Grey, #878787);
        font-family: Manrope;
        font-size: 12px;
        font-weight: 400;
        line-height: 180%;
        margin-bottom: 12px;
      }

      .post-title {
        margin: 0;
        flex-grow: 1;
        display: flex;
        align-items: flex-start;

        a {
          color: #060708;
          font-family: Manrope;
          font-size: 16px;
          font-weight: 600;
          line-height: 130%;
          letter-spacing: 0.5px;
          text-decoration: none;
          transition: all 0.5s ease;

          &:hover {
            color: #878787;
          }
        }
      }
    }

    .grid-post-image {
      figure {
        display: block;
        height: 320px;
        width: 100%;
        position: relative;
        legend {
          display: flex;
          align-items: flex-end;
          justify-content: center;
          padding: 30px;
          margin: 0;
          position: absolute;
          bottom: 0;
          left: 0;
          width: 100%;
          height: 100%;
          opacity: 0;
          transition: all 0.5s ease;
          background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 52.59%,
            rgba(0, 0, 0, 0.3) 100%
          );
        }
        legend span {
          color: #fff;
          leading-trim: both;
          text-edge: cap;
          font-family: Manrope;
          font-size: 14px;
          font-style: normal;
          font-weight: 700;
          line-height: 130%; /* 18.2px */
          letter-spacing: 2.8px;
          text-transform: uppercase;
        }

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          opacity: 1;
          filter: grayscale(100%);
          transition: all 0.5s ease;
        }
      }
    }
  }
}

.load-more-section {
  text-align: center;
  margin-top: 60px;

  .load-more-btn {
    background: transparent;
    border: 2px solid #060708;
    color: #060708;
    padding: 12px 30px;
    font-family: Manrope;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;

    &:hover {
      background: #060708;
      color: white;
    }
  }
}

/* ========================================
   SINGLE POST STYLES
   ======================================== */

.single-post-main {
  min-height: 100vh;
  padding-top: 30px;
}

.single-post-container {
  margin: 0 auto;
}

/* Breadcrumb */
.single-post-breadcrumb {
  margin-bottom: 40px;

  .breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #060708;
    text-decoration: none;
    font-family: Manrope;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;

    &:hover {
      color: #878787;
    }

    .breadcrumb-arrow {
      font-size: 16px;
      font-weight: 600;
    }
  }
}

/* Hero Image */
.single-post-hero {
  margin-bottom: 40px;

  .hero-image {
    width: 100%;
    height: 580px;
    object-fit: cover;
  }
}

/* Post Content */
.single-post-content {
  margin-bottom: 40px;
}

.single-post-header {
  margin-bottom: 40px;

  .single-post-title {
    color: #060708;
    leading-trim: both;
    text-edge: cap;
    font-family: Manrope;
    font-size: 44px;
    font-style: normal;
    font-weight: 700;
    line-height: 130%; /* 57.2px */
    letter-spacing: 3.52px;
    margin-bottom: 15px;
  }

  .single-post-meta {
    display: flex;
    gap: 20px;
    align-items: center;

    .post-date {
      color: #878787;
      font-family: Manrope;
      font-size: 14px;
      font-weight: 400;
    }

    .post-category {
      a {
        color: var(--Black, #060708);
        text-align: center;
        leading-trim: both;
        text-edge: cap;
        font-family: Manrope;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 180%; /* 28.8px */
        transition: all 0.5s ease;

        &:hover {
          color: #878787;
        }
      }
    }
  }
}

.single-post-body {
  color: #060708;
  font-family: Manrope;
  font-size: 16px;
  line-height: 180%;
  letter-spacing: 0.5px;

  p {
    margin-bottom: 24px;
  }

  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #060708;
    font-family: Manrope;
    font-weight: 700;
    margin: 40px 0 20px 0;
    line-height: 130%;
  }

  h2 {
    font-size: 24px;
    letter-spacing: 1px;
  }

  h3 {
    font-size: 20px;
    letter-spacing: 0.8px;
  }

  ul,
  ol {
    margin: 20px 0;
    padding-left: 30px;

    li {
      margin-bottom: 12px;
      line-height: 180%;
    }
  }

  blockquote {
    border-left: 4px solid #060708;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #878787;
  }

  img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
  }

  .page-links {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;

    a {
      color: #060708;
      text-decoration: none;
      font-weight: 600;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}

.single-post-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;

  .entry-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    .cat-links,
    .tags-links {
      a {
        background: #f0f0f0;
        color: #060708;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        text-decoration: none;
        transition: background 0.3s ease;

        &:hover {
          background: #e0e0e0;
        }
      }
    }
  }
}

/* Post Navigation */
.single-post-navigation {
  margin-top: 40px;

  .post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    .nav-previous,
    .nav-next {
      flex: 1;

      a {
        display: block;
        padding: 20px;
        background: white;
        border-radius: 8px;
        text-decoration: none;
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

        &:hover {
          transform: translateY(-2px);
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        }

        .nav-subtitle {
          display: block;
          color: #878787;
          font-size: 12px;
          font-weight: 600;
          text-transform: uppercase;
          letter-spacing: 1px;
          margin-bottom: 8px;
        }

        .nav-title {
          display: block;
          color: #060708;
          font-size: 16px;
          font-weight: 600;
          line-height: 130%;
        }
      }
    }

    .nav-next {
      text-align: right;
    }
  }
}

/* Responsive */
@media (max-width: 768px) {
  .single-post-hero {
    .hero-image {
      height: 380px;
    }
  }
  .single-post-main {
    padding-top: 80px;
  }

  .single-post-container {
    padding: 0 15px;
  }

  .single-post-content {
    padding: 40px 30px;
  }

  .single-post-header {
    .single-post-title {
      font-size: 24px;
    }

    .single-post-meta {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
  }

  .single-post-body {
    font-size: 15px;

    h2 {
      font-size: 20px;
    }

    h3 {
      font-size: 18px;
    }
  }

  .single-post-navigation {
    .post-navigation {
      flex-direction: column;

      .nav-next {
        text-align: left;
      }
    }
  }
}

.share-section {
  text-align: center;
  margin-top: 60px;
  position: relative;
  padding: 130px 0;

  &::before {
    width: 2px;
    height: 100px;
    flex-shrink: 0;
    opacity: 0.2;
    background: var(--Black, #060708);
    content: "";
    position: absolute;
    top: 0;
    display: block;
    left: 50%;
  }

  &::after {
    width: 2px;
    height: 100px;
    flex-shrink: 0;
    opacity: 0.2;
    background: var(--Black, #060708);
    content: "";
    position: absolute;
    bottom: 0;
    display: block;
    left: 50%;
  }

  h2 {
    color: var(--Black, #060708);
    leading-trim: both;
    text-edge: cap;
    font-family: Manrope;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 23.4px */
    letter-spacing: 1.44px;
  }

  .share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;

    a {
      transition: all 0.5s ease;
      opacity: 1;
      margin: 0 5px;

      &:hover {
        opacity: 0.3;
      }
    }
  }
}

.relacionados {
  margin-bottom: 160px;
  h2 {
    text-align: center;
    color: var(--Black, #060708);
    text-align: center;
    leading-trim: both;
    text-edge: cap;
    font-family: Manrope;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%; /* 35.2px */
    margin: 30px auto 60px;
  }
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
  /* Blog Header Mobile */
  .blog-header {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    margin-top: 60px;

    h1 {
      font-size: 24px;
      text-align: center;
    }

    .field {
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
    }
  }

  /* Featured Post Mobile */
  .featured-post {
    flex-direction: column;
    margin-bottom: 40px;

    .featured-post-image {
      width: 100%;
      margin-bottom: 20px;

      .post-image {
        height: 250px;
      }
    }

    .featured-post-content {
      width: 100%;
      padding-left: 0;

      h2 {
        font-size: 20px;
        letter-spacing: 1px;
        margin-bottom: 15px;

        a {
          font-size: 20px;
          letter-spacing: 1px;
        }
      }

      .post-date {
        font-size: 11px;
        margin-bottom: 15px;
      }

      .post-excerpt {
        font-size: 13px;
        letter-spacing: 0.8px;
        margin-bottom: 15px;
      }

      .read-more-link {
        font-size: 13px;
        letter-spacing: 0.8px;
      }
    }
  }

  /* Posts Grid Mobile */
  .posts-grid {
    gap: 20px;

    .grid-post {
      width: 100%;
      margin-bottom: 20px;

      .grid-post-content {
        padding: 20px;

        .post-date {
          font-size: 11px;
          margin-bottom: 10px;
        }

        .post-title {
          font-size: 14px;
          letter-spacing: 0.8px;
          line-height: 120%;
        }
      }

      .grid-post-image {
        figure {
          height: 200px;

          legend {
            padding: 20px;

            span {
              font-size: 12px;
              letter-spacing: 2px;
            }
          }
        }
      }
    }
  }

  /* Load More Button Mobile */
  .load-more-section {
    margin-top: 40px;

    .load-more-btn {
      padding: 10px 25px;
      font-size: 11px;
      letter-spacing: 2px;
    }
  }

  /* Share Section Mobile */
  .share-section {
    margin-top: 40px;
    padding: 80px 0;

    h2 {
      font-size: 16px;
      letter-spacing: 1px;
      margin-bottom: 25px;
    }

    .share-buttons {
      gap: 8px;

      a {
        margin: 0 3px;

        svg {
          width: 15px;
          height: 14px;
        }
      }
    }
  }

  /* Relacionados Mobile */
  .relacionados {
    margin-bottom: 80px;

    h2 {
      font-size: 24px;
      margin: 20px auto 40px;
    }

    .posts-grid {
      gap: 15px;

      .grid-post {
        .grid-post-image {
          figure {
            height: 180px;
          }
        }

        .grid-post-content {
          padding: 15px;

          .post-title {
            font-size: 13px;
            letter-spacing: 0.6px;
          }
        }
      }
    }
  }

  /* Single Post Mobile */
  .single-post-main {
    padding-top: 20px;
  }

  .single-post-container {
    padding: 0 15px;
  }

  .single-post-breadcrumb {
    margin-bottom: 30px;

    .breadcrumb-link {
      font-size: 13px;
    }
  }

  .single-post-hero {
    margin-bottom: 30px;

    .hero-image {
      height: 250px;
    }
  }

  .single-post-content {
    padding: 30px 20px;
  }

  .single-post-header {
    margin-bottom: 30px;

    .single-post-title {
      font-size: 24px;
      letter-spacing: 1px;
      margin-bottom: 15px;
    }

    .single-post-meta {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;

      .post-date {
        font-size: 13px;
      }

      .post-category a {
        font-size: 11px;
        padding: 4px 8px;
      }
    }
  }

  .single-post-body {
    font-size: 15px;
    letter-spacing: 0.3px;

    p {
      margin-bottom: 20px;
    }

    h2 {
      font-size: 18px;
      letter-spacing: 0.8px;
      margin: 30px 0 15px 0;
    }

    h3 {
      font-size: 16px;
      letter-spacing: 0.6px;
      margin: 25px 0 12px 0;
    }

    ul,
    ol {
      margin: 15px 0;
      padding-left: 25px;

      li {
        margin-bottom: 8px;
      }
    }

    blockquote {
      padding-left: 15px;
      margin: 20px 0;
    }

    img {
      margin: 15px 0;
    }
  }

  .single-post-footer {
    margin-top: 30px;
    padding-top: 15px;
  }

  .single-post-navigation {
    margin-top: 30px;

    .post-navigation {
      flex-direction: column;
      gap: 15px;

      .nav-previous,
      .nav-next {
        a {
          padding: 15px;

          .nav-subtitle {
            font-size: 11px;
            margin-bottom: 6px;
          }

          .nav-title {
            font-size: 14px;
          }
        }
      }

      .nav-next {
        text-align: left;
      }
    }
  }
}
