/* Post detail page */
.fp-post-header {
  margin-bottom: 2rem;
}

.fp-post-breadcrumb {
  margin-bottom: 1.25rem;
}

.fp-post-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #6c757d;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fp-post-breadcrumb a:hover {
  color: var(--primary-color);
}

.fp-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  color: #6c757d;
  font-size: 0.95rem;
}

.fp-post-meta time {
  color: #6c757d;
}

.fp-post-meta-category {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #f4f4f5;
  color: #333;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.fp-post-meta-category:hover {
  background: #fec42829;
  color: var(--primary-color);
}

.fp-post-hero {
  margin: 0 0 2.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f1f3f5;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.fp-post-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fp-blog-post .ud-blog-details-content {
  max-width: 960px;
  padding: 0;
  margin: 0 auto;
}

.fp-blog-post .ud-blog-summary {
  margin-bottom: 2.5rem;
}

.ud-blog-details-title {
  font-size: 3rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  margin-bottom: 1.5rem !important;
  margin-bottom: 3rem !important;
}

.fp-post-list .ud-single-blog {
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 1rem;
}

.fp-post-list .ud-single-blog:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #505050;
}

.blog-content a:hover {
  text-decoration: underline;
}

.ud-single-blog .ud-blog-date {
  background: #e9e9e9;
  color: #333;
}

.blog-content h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 3.5rem;
}

.blog-content h2 strong {
  font-weight: inherit;
}

.blog-content ul {
  padding-left: 1.5rem;
  list-style: initial;
  margin-bottom: 2rem;
}

.blog-content ol {
  list-style: numbered-list;
  padding-left: 1.5rem;
}

.blog-content {
  font-size: 1.2rem;
  color: var(--primary-color);
  overflow-wrap: anywhere;
  max-width: 100%;
  /* overflow: hidden; */
}

.ud-page-banner {
  color: var(--primary-text-color);
  background-color: var(--light-color);
  padding-top: 10rem;
  padding-bottom: 6rem;
}

.ud-single-blog .ud-blog-title {
  margin-bottom: 5px;
}

.ud-page-banner h1 {
  color: var(--primary-text-color);
}

.ud-single-blog {
  margin-bottom: 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.ud-blog-details-action {
  align-items: flex-start;
}

.ud-blog-tags {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
}

.ud-blog-tags li {
  flex-shrink: 0;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.ud-blog-share h6 {
  flex-shrink: 0;
}

.ud-newsletter-box {
  --primary-color: #091d5b;
  margin-top: 120px !important;
}

.ud-banner-content h2 {
  font-size: 2rem !important;
  font-weight: 600 !important;
  margin-bottom: 0.85rem !important;
}

.ud-banner-content {
  text-align: left !important;
}

.ud-blog-title {
  font-size: 1.8rem !important;
  line-height: 1.25 !important;
  font-weight: 600 !important;
}

.fp-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.fp-category-list-item {
  border: 2px solid transparent;
  flex: 1;
  color: #333;
  padding: 1.25rem;
  border-radius: 0.75rem;
  font-weight: bold;
  min-height: 7rem;
  background: #ffffff14;
  box-shadow: 0 0 15px 0 rgb(0 0 0 / 10%);
  transition: all 0.3s ease-in-out;
}

.fp-category-list-item.active,
.fp-category-list-item:hover {
  background: #fec42829;
  border-color: var(--light-color) !important;
  box-shadow: 0 0 15px 0 rgb(0 0 0 / 10%);
}

.fp-category-list-item img {
  height: 150px;
}

.ud-blog-summary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid #0034d5;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ud-blog-summary-label {
  font-size: 0.875rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  color: #8a8a8a;
}

.ud-blog-summary-label::before {
  content: "✨";
  margin-right: 0.5rem;
  font-size: 1rem;
}

.ud-blog-summary-content,
.ud-blog-summary-content p {
  font-size: 1.2rem;
  line-height: 1.6 !important;
  color: #495057;
}

.fp-blog-pagination .page-link {
  color: var(--heading-color);
  border-color: #e8ebf2;
  padding: 0.5rem 0.85rem;
}

.fp-blog-pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.fp-blog-pagination .page-link:hover {
  color: var(--primary-color);
  background-color: #fafbfc;
  border-color: #e8ebf2;
}

.fp-blog-pagination .page-item.disabled .page-link {
  color: #adb5bd;
  background-color: #fff;
}

.blog-content .fp-blog-link-preview,
.ud-blog-summary-content .fp-blog-link-preview {
  position: relative;
  display: inline;
  white-space: normal;
}
/* 
.blog-content .fp-blog-link-preview__trigger,
.ud-blog-summary-content .fp-blog-link-preview__trigger {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
} */

.blog-content .fp-blog-link-preview__card,
.ud-blog-summary-content .fp-blog-link-preview__card {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.75rem);
  z-index: 30;
  display: block;
  width: min(20rem, calc(100vw - 2rem));
  overflow: hidden;
  border: 1px solid #e8ebf2;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 16px 40px rgba(10, 22, 40, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 0.35rem);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}

.blog-content .fp-blog-link-preview__card::after,
.ud-blog-summary-content .fp-blog-link-preview__card::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 1px solid #e8ebf2;
  border-bottom: 1px solid #e8ebf2;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.blog-content .fp-blog-link-preview:hover .fp-blog-link-preview__card,
.blog-content .fp-blog-link-preview:focus-within .fp-blog-link-preview__card,
.ud-blog-summary-content
  .fp-blog-link-preview:hover
  .fp-blog-link-preview__card,
.ud-blog-summary-content
  .fp-blog-link-preview:focus-within
  .fp-blog-link-preview__card {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.blog-content .fp-blog-link-preview__image,
.ud-blog-summary-content .fp-blog-link-preview__image {
  display: block;
  aspect-ratio: 16 / 9;
  background: #f1f3f5;
}

.blog-content .fp-blog-link-preview__image img,
.ud-blog-summary-content .fp-blog-link-preview__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-content .fp-blog-link-preview__body,
.ud-blog-summary-content .fp-blog-link-preview__body {
  display: block;
  padding: 0.85rem 1rem 1rem;
  text-align: left;
}

.blog-content .fp-blog-link-preview__title,
.ud-blog-summary-content .fp-blog-link-preview__title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
  color: #0a1628;
}

.blog-content .fp-blog-link-preview__summary,
.ud-blog-summary-content .fp-blog-link-preview__summary {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #505050;
}

@media (max-width: 767px) {
  .blog-content .fp-blog-link-preview__card,
  .ud-blog-summary-content .fp-blog-link-preview__card {
    display: none;
  }
}
