/**
 * Blog Detalhe Styles
 * Estilos para página de post individual
 *
 * @package SeedDigital
 * @since 1.0.0
 */

/* ============================================
   Site Main Inner (Container Principal)
   ============================================ */
.site-main-inner {
  padding: 0;
  min-height: auto;
}

.site-main-inner .site-container {
  max-width: 1444px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   Single Post Container
   ============================================ */
.single-post {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 10px;
  width: 100%;
}

/* ============================================
   Title Section
   ============================================ */
.single-post__title-section {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 100px 32px 72px;
  width: 100%;
}

.single-post__title {
  font-family: "Be Vietnam Pro", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 40px;
  line-height: 56px;
  color: #1b1a1a;
  margin: 0;
  width: 100%;
}

/* ============================================
   Main Wrapper (Sidebar + Content)
   ============================================ */
.single-post__main-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  padding: 0 32px;
  gap: 82px;
  width: 100%;
}

/* ============================================
   Sidebar
   ============================================ */
.single-post__sidebar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 40px;
  width: 351px;
  flex-shrink: 0;
}

/* CTA Card */
.single-post__cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px 40px;
  gap: 104px;
  width: 351px;
  background: #0ba5ec;
  border-radius: 16px;
}

.single-post__cta-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 32px;
  width: 100%;
}

.single-post__cta-title {
  font-family: "Be Vietnam Pro", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  color: #ffffff;
  margin: 0;
  width: 100%;
}

.single-post__cta-description {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #f9f9f9;
  margin: 0;
  width: 100%;
}

.single-post__cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 24px;
  width: 100%;
}

.single-post__cta-button {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  align-content: flex-start;
  padding: 24px 32px;
  gap: 8px;
  width: 100%;
  height: 58px;
  background: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.single-post__cta-button:hover {
  opacity: 0.9;
}

.single-post__cta-button-text {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  color: #0ba5ec;
  display: flex;
  align-items: center;
}

.single-post__cta-button i {
  color: #0ba5ec;
  font-size: 14px;
  transition: color 0.3s ease;
}

.single-post__cta-email {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #ffffff;
  margin: 0;
  width: 100%;
  text-align: center;
}

/* Our Services Card */
.single-post__services-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px;
  gap: 32px;
  width: 351px;
  background: #f6f6f6;
  border-radius: 12px;
}

.single-post__services-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 8px;
  width: 100%;
}

.single-post__service-item {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  align-content: flex-start;
  padding: 24px 32px;
  gap: 8px;
  width: 100%;
  height: 58px;
  background: #0ba5ec;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
  box-sizing: border-box;
}

.single-post__service-item:not(.single-post__service-item--active) {
  background: #d0d5dd;
}

.single-post__service-item:hover {
  opacity: 0.9;
}

.single-post__service-text {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.single-post__service-item i {
  color: #ffffff;
  position: relative;
  display: inline-block;
}

/* ============================================
   Content Wrapper
   ============================================ */
.single-post__content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 72px;
  flex: 1;
  min-width: 0;
}

/* ============================================
   Overview Section
   ============================================ */
.single-post__overview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 48px;
  width: 100%;
}

.single-post__overview-title {
  font-family: "Be Vietnam Pro", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 28px;
  line-height: 36px;
  color: #1b1a1a;
  margin: 0;
  width: 100%;
}

.single-post__overview-image {
  width: 100%;
  height: auto;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
}

.single-post__overview-img {
  width: 100%;
  height: 608px;
  display: block;
  object-fit: cover;
  border-radius: 24px;
  clip-path: url(#clip-path-diagonal-top-left-bottom-right);
}

.single-post__overview-text {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 28px;
  color: #282828;
  width: 100%;
}

.single-post__overview-text p {
  margin: 0 0 24px 0;
}

.single-post__overview-text p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Key Benefits Section
   ============================================ */
.single-post__benefits {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 48px;
  width: 100%;
}

.single-post__benefits-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 32px;
  width: 100%;
}

.single-post__benefits-title {
  font-family: "Be Vietnam Pro", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 28px;
  line-height: 36px;
  color: #0ba5ec;
  margin: 0;
  width: 100%;
}

.single-post__benefits-description {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #4b4b4b;
  margin: 0;
  width: 100%;
}

/* ============================================
   FAQs & CTA Section
   ============================================ */
.single-post__faqs-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 40px;
  width: 100%;
}

/* FAQs */
.single-post__faqs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  width: 100%;
  gap: 0;
}

.single-post__faq-item {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  gap: 24px;
  width: 100%;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  margin-bottom: 0;
}

.single-post__faq-item:not(:last-child) {
  margin-bottom: 0;
  border-bottom: none;
  border-radius: 0;
}

.single-post__faq-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.single-post__faq-item:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-bottom: 1px solid #eaeaea;
}

.single-post__faq-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  gap: 20px;
  width: 100%;
}

.single-post__faq-header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  padding: 0;
  gap: 24px;
  width: 100%;
}

.single-post__faq-question {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: #0ba5ec;
  margin: 0;
  flex: 1;
  display: flex;
  align-items: center;
}

.single-post__faq-icon {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px;
  width: 30px;
  height: 30px;
  background: #0ba5ec;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

.single-post__faq-icon:hover {
  background: #0086c9;
}

.single-post__faq-icon-plus,
.single-post__faq-icon-minus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
}

.single-post__faq-icon-plus {
  display: block;
}

.single-post__faq-icon-plus::before,
.single-post__faq-icon-plus::after {
  content: "";
  position: absolute;
  background: #ffffff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.single-post__faq-icon-plus::before {
  width: 14px;
  height: 2px;
}

.single-post__faq-icon-plus::after {
  width: 2px;
  height: 14px;
}

.single-post__faq-icon-minus {
  display: none;
}

.single-post__faq-icon-minus::before {
  content: "";
  position: absolute;
  background: #ffffff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 2px;
}

.single-post__faq-item--open .single-post__faq-icon-plus {
  display: none;
}

.single-post__faq-item--open .single-post__faq-icon-minus {
  display: block;
}

.single-post__faq-answer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0 54px 0 0;
  gap: 10px;
  width: 100%;
}

.single-post__faq-answer p {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #4b4b4b;
  margin: 0;
  flex: 1;
}

.single-post__faq-item:not(.single-post__faq-item--open)
  .single-post__faq-answer {
  display: none;
}

/* CTA Button */
.single-post__faq-cta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  padding: 0;
  gap: 24px;
  width: 100%;
}

.single-post__faq-cta-button {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  padding: 24px 32px;
  gap: 8px;
  width: 151px;
  height: 58px;
  border: 2px solid #0ba5ec;
  border-radius: 32px;
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.single-post__faq-cta-button:hover {
  background: #0ba5ec;
}

.single-post__faq-cta-button:hover .single-post__faq-cta-button-text,
.single-post__faq-cta-button:hover .single-post__faq-cta-arrow-icon {
  color: #ffffff;
  border-color: #ffffff;
}

.single-post__faq-cta-button-text {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  color: #0ba5ec;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.single-post__faq-cta-arrow-icon {
  width: 13px;
  height: 10px;
  border: 1px solid #0ba5ec;
  position: relative;
  display: inline-block;
  transition: border-color 0.3s ease;
}

.single-post__faq-cta-arrow-icon::after {
  content: "→";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0ba5ec;
  font-size: 10px;
  line-height: 1;
  border: none;
  transition: color 0.3s ease;
}

.single-post__faq-cta-button:hover .single-post__faq-cta-arrow-icon::after {
  color: #ffffff;
}

/* ============================================
   Related Posts Section
   ============================================ */
.single-post__related {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 48px;
  width: 100%;
}

.single-post__related-title {
  font-family: "Be Vietnam Pro", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 28px;
  line-height: 36px;
  color: #1b1a1a;
  margin: 0;
  width: 100%;
}

.single-post__related-carousel-wrapper {
  width: 100%;
  position: relative;
}

.single-post__related-carousel {
  width: 100%;
  overflow: hidden;
}

.single-post__related-carousel .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.single-post__related-carousel .swiper-slide {
  height: auto;
  display: flex;
}

.single-post__related-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  width: 100%;
  height: auto;
  background: #f6f6f6;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.single-post__related-card:hover {
  transform: translateY(-4px);
}

.single-post__related-image {
  width: 100%;
  height: 384px;
  position: relative;
  overflow: hidden;
  clip-path: url(#clip-path-diagonal-bottom-right-smooth);
}

.single-post__related-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  transition: transform 0.3s ease;
}

.single-post__related-card:hover .single-post__related-img {
  transform: scale(1.05);
}

.single-post__related-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 40px 40px;
  gap: 32px;
  width: 100%;
  box-sizing: border-box;
}

.single-post__related-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  padding: 0;
  gap: 4px;
}

.single-post__related-tag {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px;
  gap: 8px;
  height: 28px;
  background: #475467;
  border-radius: 6px;
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #ffffff;
  text-align: center;
}

.single-post__related-tag--primary {
  background: #0ba5ec;
}

.single-post__related-card-title {
  font-family: "Be Vietnam Pro", sans-serif;
  font-style: normal;
  font-weight: 500;
  line-height: 28px;
  color: #000000;
  margin: 0;
  width: 100%;
}

.single-post__related-card-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.single-post__related-card-title a:hover {
  color: #0ba5ec;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1400px) {
  .site-main-inner .site-container {
    max-width: 100%;
    padding: 0 24px;
  }

  .single-post__main-wrapper {
    gap: 60px;
  }
}

@media (max-width: 1200px) {
  .single-post__main-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .single-post__sidebar {
    width: 100%;
  }

  .single-post__cta-card,
  .single-post__services-card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .single-post__content-wrapper {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .site-main-inner .site-container {
    padding: 0 16px;
  }

  .single-post__title-section {
    padding: 0 0 40px 0;
  }

  .single-post__title {
    font-size: 32px;
    line-height: 44px;
  }

  .single-post__main-wrapper {
    padding: 0;
    gap: 32px;
  }

  .single-post__cta-card {
    padding: 40px 32px;
    gap: 60px;
  }

  .single-post__cta-title {
    font-size: 20px;
    line-height: 28px;
  }

  .single-post__services-card {
    padding: 32px 24px;
  }

  .single-post__content-wrapper {
    gap: 48px;
  }

  .single-post__overview-title,
  .single-post__benefits-title,
  .single-post__related-title {
    font-size: 24px;
    line-height: 32px;
  }

  .single-post__overview-text,
  .single-post__benefits-description,
  .single-post__faq-question,
  .single-post__faq-answer p {
    font-size: 16px;
    line-height: 24px;
  }

  .single-post__related-carousel-wrapper {
    padding: 0;
  }

  .single-post__related-card {
    height: auto;
    min-height: 400px;
  }

  .single-post__related-image {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .single-post__title-section {
    padding: 40px 0 40px 0;
  }

  .single-post__title {
    font-size: 28px;
    line-height: 36px;
  }

  .single-post__cta-card {
    padding: 32px 24px;
    gap: 40px;
  }

  .single-post__cta-title {
    font-size: 18px;
    line-height: 24px;
  }

  .single-post__cta-description {
    font-size: 14px;
    line-height: 20px;
  }

  .single-post__services-card {
    padding: 24px 20px;
  }

  .single-post__service-item {
    padding: 20px 24px;
  }

  .single-post__content-wrapper {
    gap: 40px;
  }

  .single-post__overview-image {
    border-radius: 16px;
  }

  .single-post__faq-item {
    padding: 20px;
  }

  .single-post__faq-question {
    font-size: 16px;
    line-height: 24px;
  }

  .single-post__related-image {
    height: 250px;
  }

  .single-post__related-content {
    padding: 24px 32px 32px;
  }
}

.single-post__related-pagination {
  position: relative;
  margin-top: 32px;
  text-align: center;
}

.single-post__related-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d0d5dd;
  opacity: 1;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.single-post__related-pagination .swiper-pagination-bullet-active {
  background: #0ba5ec;
  width: 24px;
  border-radius: 4px;
}

/* Hide navigation on mobile */
@media (max-width: 768px) {
  .single-post__related-nav {
    display: none;
  }

  .single-post__related-carousel-wrapper {
    padding: 0;
  }
}
