/* Blog area base — inherits main.css body styles, sets readable defaults */
.blog-area {
  font-size: 16px;
  color: var(--color-default, #444);
}

/* Cards — border only by default, shadow on hover */
.blog-card {
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 12px 32px rgba(27, 46, 53, 0.1);
  transform: translateY(-2px);
}

.blog-card-media {
  position: relative;
}

.blog-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 50px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.blog-card-category:hover {
  background: var(--color-primary);
  color: #fff;
}

.blog-card-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #ccc;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.03);
}

.blog-card-title {
  font-size: 1.25rem;
  line-height: 1.35;
}

.blog-card-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--color-primary);
  text-decoration: none;
}

.blog-card-title a:hover {
  color: var(--color-secondary);
}

.blog-card-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.6;
}

.blog-card-meta {
  gap: 12px;
}

.blog-card-date,
.blog-card-author {
  gap: 8px;
}

.blog-card-meta-sep {
  color: #999;
  font-size: 2.5rem;
  line-height: 0;
}

.blog-card-meta a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-meta a:hover {
  color: var(--color-primary);
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.blog-card-link:hover {
  color: var(--color-primary);
  gap: 8px;
}

.blog-card-link i {
  transition: transform 0.2s ease;
}

.blog-card-link:hover i {
  transform: translateX(2px);
}

/* Featured row card on homepage */
.blog-featured .blog-card {
  flex-direction: row;
}

@media (max-width: 767px) {
  .blog-featured .blog-card {
    flex-direction: column;
  }
}

.blog-featured .blog-card-image {
  flex: 0 0 45%;
  aspect-ratio: auto;
  min-height: 240px;
}

/* Single post hero header */
.blog-single-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 0;
  background: url("../img/blog-single-hero-bg.jpg") center center / cover no-repeat;
}

.blog-single-header-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 32px;
  border-bottom: none;
}

@media (min-width: 768px) {
  .blog-single-hero {
    padding: 48px 0 0;
  }

  .blog-single-header-card {
    padding: 36px 40px 40px;
  }
}

@media (min-width: 992px) {
  .blog-single-header-card {
    padding: 40px 48px 44px;
  }
}

.blog-single-title {
  color: #000;
  font-size: clamp(1.75rem, 1.35rem + 1.25vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}

.blog-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 15px;
  color: #777;
  line-height: 1.5;
}

.blog-single-meta-item a,
.blog-single-meta-cat {
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
}

.blog-single-meta-item a:hover,
.blog-single-meta-cat:hover {
  color: var(--color-primary);
}

.blog-single-meta-sep {
  color: #ccc;
  user-select: none;
}

.blog-single-meta-date {
  color: #777;
}

/* Single post body */
.blog-single-featured {
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
}

.blog-single-featured img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post content typography */
.blog-single-content {
  color: var(--color-default, #444);
  line-height: 1.7;
}

.blog-single-content>*:first-child {
  margin-top: 0 !important;
}

.blog-single-content>*:last-child {
  margin-bottom: 0 !important;
}

/* Fluid headings — h1 title is 36px desktop; content scale follows */
.blog-single-content h1,
.blog-single-content .wp-block-heading.has-h1-font-size {
  color: #000;
  font-size: clamp(1.75rem, 1.35rem + 1.25vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 2rem 0 1rem;
}

.blog-single-content h2,
.blog-single-content h2.wp-block-heading {
  color: #000;
  font-size: clamp(1.5rem, 1.25rem + 0.75vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 2rem 0 0.875rem;
}

.blog-single-content h3,
.blog-single-content h3.wp-block-heading {
  color: #000;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 1.5rem 0 0.75rem;
}

.blog-single-content h4,
.blog-single-content h4.wp-block-heading {
  color: #000;
  font-size: clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 1.25rem 0 0.625rem;
}

.blog-single-content p {
  margin-bottom: 1.25rem;
}

.blog-single-content a {
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-single-content a:hover {
  color: var(--color-primary);
}

/* Lists */
.blog-single-content ul,
.blog-single-content ol {
  margin: 0 0 1.5rem;
}

.blog-single-content ul {
  list-style-type: disc;
  padding-left: 20px;
}

.blog-single-content ol {
  list-style-type: decimal;
  padding-left: 16px;
}

.blog-single-content li {
  margin-bottom: 0.625rem;
  padding-left: 0.25rem;
}

.blog-single-content li:last-child {
  margin-bottom: 0;
}

.blog-single-content li>ul,
.blog-single-content li>ol {
  margin-top: 0.625rem;
  margin-bottom: 0.625rem;
}

.blog-single-content ul li::marker {
  color: var(--color-secondary);
}

/* Striped tables */
.blog-single-content table {
  width: 100%;
  margin: 1.5rem 0 2rem;
  border-collapse: collapse;
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1rem);
}

.blog-single-content table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-primary);
  text-align: left;
  vertical-align: middle;
}

.blog-single-content table tbody td {
  padding: 0.875rem 1rem;
  border: 1px solid #e6f4f6;
  vertical-align: middle;
  color: var(--color-default, #444);
}

.blog-single-content table tbody tr:nth-child(even) {
  background: #f4fafb;
}

.blog-single-content table tbody tr:hover {
  background: #e6f4f6;
}

/* Blockquote */
.blog-single-content blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  border: none;
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 8px 8px 0;
  background: #f4fafb;
  color: var(--color-primary);
  font-style: italic;
}

.blog-single-content blockquote p:last-of-type {
  margin-bottom: 0;
}

.blog-single-content img {
  max-width: 100%;
  height: auto;
}

.blog-single-content .blog-inline-image {
  margin: 1.5rem 0 2rem;
}

.blog-single-content .blog-inline-image img {
  border-radius: 8px;
}

.blog-single-content .efg-faq {
  margin: 1.5rem 0 2rem;
}

/* Tags */
.blog-single-tag {
  color: #666;
  background: #f8f9fa;
  border: 1px solid #e6f4f6;
}

/* Comments */
.blog-single-comments {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid #e6f4f6;
}

.blog-single-wrap .section-header.text-start h2:after {
  margin: 0;
  right: auto;
}

.blog-comments-area {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.blog-comments-title {
  color: #000;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  margin: 0;
}

.blog-comments-subtitle {
  font-size: 15px;
  color: #777;
}

.blog-comments-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f4fafb;
  border: 1px solid #e6f4f6;
  color: var(--color-secondary);
  font-size: 15px;
  font-weight: 700;
}

.blog-comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-comment-list .children {
  list-style: none;
  /* margin: 16px 0 0; */
  padding: 0 0 0 20px;
  /* border-left: 2px solid #e6f4f6; */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-comment-item {
  background: #fff;
  border: 1px solid #e6f4f6;
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s ease;
}

.blog-comment-item:hover {
  border-color: #d0ecef;
}

.blog-comment-avatar-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e6f4f6;
}

.blog-comment-author {
  color: #000;
  font-weight: 700;
  font-size: 15px;
}

.blog-comment-meta-sep,
.blog-comment-date {
  color: #999;
  font-size: 14px;
}

.blog-comment-content {
  color: var(--color-default, #444);
  font-size: 15px;
  line-height: 1.65;
}

.blog-comment-content p {
  margin-bottom: 0;
}

.blog-comment-content p+p {
  margin-top: 0.75rem;
}

.blog-comment-awaiting {
  font-size: 14px;
  color: #888;
  font-style: italic;
  margin-bottom: 8px;
}

.blog-comment-reply {
  margin-top: 12px;
}

.blog-comment-reply a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-secondary);
  text-decoration: none;
}

.blog-comment-reply a:hover {
  color: var(--color-primary);
}

.blog-comments-closed {
  padding: 16px 20px;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid #e6f4f6;
  color: #666;
  margin: 0;
}

.blog-comment-form-wrap {
  background: #f8fbfc;
  border: 1px solid #e6f4f6;
  border-radius: 16px;
  padding: 24px;
}

@media (min-width: 768px) {
  .blog-comment-form-wrap {
    padding: 28px 32px;
  }
}

.blog-comment-form .comment-reply-title {
  color: #000;
  font-size: clamp(1.125rem, 1.05rem + 0.25vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.blog-comment-form .form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.blog-comment-form textarea,
.blog-comment-form input[type="text"],
.blog-comment-form input[type="email"] {
  width: 100%;
  font-family: var(--font-primary);
  font-size: 15px;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  background: #fff;
  color: var(--color-default, #444);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-comment-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.blog-comment-form textarea:focus,
.blog-comment-form input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(32, 149, 15, 0.12);
}

.blog-comment-form .form-submit {
  margin-top: 4px;
  margin-bottom: 0;
}

.blog-comment-submit {
  border: none;
  cursor: pointer;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
}

.blog-comment-form .comment-form-cookies-consent label {
  line-height: 1.5;
}

.blog-comment-form .logged-in-as {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.blog-comment-form .logged-in-as a {
  color: var(--color-secondary);
  font-weight: 600;
}

/* Sidebar widgets */
.blog-sidebar-single .widget {
  background: #fff;
  border: 1px solid #e6f4f6;
}

.blog-sidebar-single .widget-title {
  color: var(--color-primary);
}

.blog-sidebar-search {
  border: 1px solid #dee2e6;
}

.blog-sidebar-search input {
  border: none;
  font-family: var(--font-primary);
}

.blog-sidebar-search input:focus {
  outline: none;
}

.blog-sidebar-search button {
  border: none;
  background: transparent;
  color: var(--color-secondary);
}

.widget-categories ul {
  list-style: none;
}

.widget-categories ul li a {
  color: var(--color-primary);
}

.widget-categories ul li a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  flex-shrink: 0;
}

.widget-categories ul li a:hover {
  color: var(--color-secondary);
}

.blog-latest-list {
  list-style: none;
}

.blog-latest-thumb {
  width: 72px;
  height: 72px;
  overflow: hidden;
}

.blog-latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-latest-placeholder {
  background: #e6f4f670;
  color: var(--color-secondary);
}

.blog-latest-info {
  min-width: 0;
}

.blog-latest-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
}

.blog-latest-title:hover {
  color: var(--color-secondary);
}

.blog-latest-date {
  color: #888;
  font-size: 14px;
}

.blog-tag-cloud a {
  color: #666;
  background: #f8f9fa;
  border: 1px solid #e6f4f6;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.blog-tag-cloud a:hover {
  color: #fff;
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

/* CTA card */
.blog-cta-card {
  position: relative;
  border: 1px solid #dceef0;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.blog-cta-card-visual {
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.58) 100%),
    url("../img/blog-cta-bg.jpg") center 20% / cover no-repeat;
}

.blog-cta-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.blog-cta-card-header {
  padding: 40px 24px 0;
}

.blog-cta-logo {
  width: 72px;
  height: 72px;
  padding: 6px;
  margin-bottom: -18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(27, 46, 53, 0.12);
}

.blog-cta-logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.blog-cta-card-body {
  padding: 30px 24px 24px;
  background: #fff;
}

.blog-cta-title {
  color: var(--color-primary);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
}

.blog-cta-text {
  color: #5c6b72;
  font-size: 0.9375rem;
}

.blog-cta-benefits {
  color: #5c6b72;
}

.blog-cta-btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.blog-cta-benefits .list {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: #444;
  font-size: 0.875rem;
  line-height: 1.45;
}

.blog-cta-benefits .list:last-child {
  margin-bottom: 0;
}

.blog-cta-benefits .list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

@media (min-width: 992px) {
  .blog-single-wrap>.container>.row {
    align-items: stretch;
  }

  .blog-single-sidebar-col {
    display: flex;
    flex-direction: column;
    align-self: stretch;
  }

  .blog-sidebar-cta-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    width: 100%;
    margin-top: 1.5rem;
    z-index: 2;
  }
}

/* Breadcrumbs */
.blog-single-breadcrumbs ol {
  list-style: none;
}

.blog-single-breadcrumbs li {
  display: flex;
  align-items: center;
}

.blog-single-breadcrumbs li+li::before {
  content: "/";
  margin: 0 0.5rem;
  color: #bbb;
}

.blog-single-breadcrumbs a {
  color: #888;
}

.blog-single-breadcrumbs a:hover {
  color: var(--color-secondary);
}

.blog-single-breadcrumbs span,
.blog-single-breadcrumbs .breadcrumb_last {
  color: var(--color-primary);
  font-weight: 500;
}

/* Archive / misc */
.blog-author-box {
  background: #fff;
  border: 1px solid #e6f4f6;
}

.blog-author-box h4 {
  color: var(--color-primary);
}

.blog-author-box p {
  color: #666;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.blog-pagination nav.pagination {
  display: block;
  padding: 0;
  margin: 0;
  width: auto;
}

.blog-pagination .post-pagination {
  width: auto;
  margin: 0 auto;
}

.blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dceef0;
  background: #fff;
  color: var(--color-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-pagination a.page-numbers:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

.blog-pagination span.page-numbers.current {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
  cursor: default;
}

.blog-pagination .page-numbers.dots {
  min-width: auto;
  padding: 0 4px;
  border: none;
  background: transparent;
  color: #888;
  pointer-events: none;
}

.blog-pagination .prev.page-numbers,
.blog-pagination .next.page-numbers {
  font-size: 1.125rem;
  font-weight: 600;
}

.blog-empty h3 {
  color: var(--color-primary);
}

.blog-page-content .blog-single-content {
  background: #fff;
  border: 1px solid #e6f4f6;
}

.breadcrumbs.hero .page-header h2 {
  color: var(--color-primary);
}

.breadcrumbs.hero .page-header p {
  max-width: 600px;
}