@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --color-primary: #fc3e82;
  --color-secondary: #111013;
  --para: #5c728e;
  --surface: #f8f6f9;
  --bg-grad: linear-gradient(102deg, #dbf1c3 -7.72%, #dce7e3 86.48%);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--para);
  background: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  color: var(--color-secondary);
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-primary); }

.blog-topbar {
  background: var(--color-secondary);
  color: #fff;
  padding: 8px 0;
  font-size: 12px;
  text-align: center;
}

.blog-topbar span { color: var(--color-primary); }

.blog-main-menu {
  background: #fff;
  border-bottom: 1px solid rgba(17,16,19,.08);
  padding: 12px 0;
}

.blog-main-menu .navbar-brand img {
  max-width: 165px;
  width: 100%;
  height: auto;
}

.blog-main-menu .nav-item { margin: 0 4px; }
.blog-main-menu .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-secondary);
}

.blog-demo-btn {
  font-size: 15px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  margin-left: 10px;
  background: #111013;
  color: #fff !important;
  border: 1px solid rgba(17, 16, 19, 0.1);
  transition: .3s linear;
}

.blog-demo-btn:hover {
  background: #fc3e82 !important;
  color: #111013 !important;
  border-color: #fc3e82;
}
.blog-hero {
  position: relative;
  padding: 85px 0;
  background-size: cover;
  background-position: center;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17,16,19,.45);
}

.blog-hero .container { position: relative; z-index: 1; }
.blog-hero h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 10px;
}
.blog-hero p {
  color: #fff;
  max-width: 700px;
}

.blog-main { background: var(--bg-grad); }
.section-title { font-size: 34px; }

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(17,16,19,.08);
}

.blog-card-image {
  display: block;
  height: 210px;
  overflow: hidden;
}

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

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

.blog-card-content { padding: 18px; }
.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #6f6f7a;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.blog-card p { margin-bottom: 16px; }

.read-more {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 5px;
  background: rgba(144,145,156,.15);
  font-size: 13px;
  font-weight: 600;
}

.blog-sidebar .blog-widget {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(17,16,19,.06);
}

.blog-sidebar .blog-widget h4 {
  font-size: 22px;
  margin-bottom: 14px;
}

.blog-sidebar .blog-widget ul { list-style: none; margin: 0; padding: 0; }
.blog-sidebar .blog-widget li { margin-bottom: 9px; }
.blog-sidebar .blog-widget li small { display: block; font-size: 12px; color: #8a8a95; }

.blog-pagination-wrap .page-link {
  color: var(--color-secondary);
  border: 0;
  margin: 0 3px;
  border-radius: 6px;
}
.blog-pagination-wrap .page-item.active .page-link {
  background: var(--color-primary);
}

.single-post-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(17,16,19,.08);
}

.single-post-box h1 { font-size: 24px; margin: 10px 0 18px; }
.single-post-meta { display: flex; gap: 15px; font-size: 13px; color: #777; }
.single-post-image {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 10px;
  margin: 10px 0 22px;
}

.single-post-content p { margin-bottom: 14px; }

.single-author-link {
  color: var(--color-secondary);
  font-weight: 600;
}

.single-author-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: 10px;
  background: #f7fbff;
  border: 1px solid rgba(17, 16, 19, 0.08);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.single-author-avatar-wrap {
  flex: 0 0 62px;
}

.single-author-avatar,
.single-author-avatar-fallback {
  width: 62px;
  height: 62px;
  border-radius: 50%;
}

.single-author-avatar {
  object-fit: cover;
  display: block;
}

.single-author-avatar-fallback {
  background: var(--color-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.single-author-content small {
  display: block;
  color: #748198;
  margin-bottom: 3px;
}

.single-author-content h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.single-author-content p {
  margin-bottom: 8px;
}

.single-author-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.author-page-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(17,16,19,.08);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.author-page-avatar-wrap {
  flex: 0 0 78px;
}

.author-page-avatar,
.author-page-avatar-fallback {
  width: 78px;
  height: 78px;
  border-radius: 50%;
}

.author-page-avatar {
  object-fit: cover;
  display: block;
}

.author-page-avatar-fallback {
  background: var(--color-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 24px;
}

.author-page-hero {
  background: #fff;
  border: 1px solid #edf0e8;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 16, 19, 0.06);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.author-page-hero .author-page-avatar-wrap {
  flex: 0 0 64px;
}

.author-page-hero .author-page-avatar,
.author-page-hero .author-page-avatar-fallback {
  width: 64px;
  height: 64px;
}

.author-page-hero .author-page-avatar-fallback {
  font-size: 20px;
}

.author-page-content {
  flex: 1 1 auto;
  min-width: 0;
}

.author-label {
  display: inline-block;
  color: #6f7786;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.author-page-content h2 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.author-page-content p {
  margin-bottom: 12px;
  color: #596076;
}

.author-site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #20295a;
  background: #20295a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.author-site-btn:hover {
  background: #12193c;
  border-color: #12193c;
  color: #fff;
}

.author-posts-title {
  margin: 28px 0 16px;
  font-size: 30px;
  line-height: 1.2;
}

.single-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.single-tags a {
  background: rgba(144,145,156,.15);
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 13px;
}

.related-posts {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(17,16,19,.08);
}
.related-posts h3 { font-size: 24px; margin-bottom: 12px; }
.related-link { font-weight: 600; }

.blog-cta { padding-top: 50px; }
.blog-cta-box {
  background: var(--color-secondary);
  border-radius: 14px;
  padding: 30px;
  color: #fff;
}
.blog-cta-box h3, .blog-cta-box p { color: #fff; }
.blog-cta-btn {
  background: #fff;
  color: var(--color-secondary);
  font-weight: 700;
  border-radius: 6px;
  padding: 10px 18px;
}

.blog-footer-main {
  margin-top: 35px;
  background: #edf4e8;
  padding: 42px 0;
}
.blog-footer-main h5 { font-size: 21px; margin-bottom: 10px; }
.blog-footer-main p { margin-bottom: 8px; }
.blog-footer-main ul { list-style: none; margin: 0; padding: 0; }
.blog-footer-main li { margin-bottom: 6px; }

.blog-copyright {
  background: #fff;
  padding: 14px 0;
  border-top: 1px solid rgba(17,16,19,.08);
}
.blog-copyright p { margin: 0; font-size: 14px; color: var(--color-secondary); }
.blog-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-socials a { font-size: 14px; color: var(--color-secondary); }

@media (max-width: 991px) {
  .blog-hero h1 { font-size: 2rem; }
  .blog-main-menu .navbar-collapse { margin-top: 12px; }
  .blog-demo-btn { display: inline-block; margin-top: 10px; }
}

@media (max-width: 575px) {
  .blog-hero { padding: 60px 0; }
  .blog-hero h1 { font-size: 2rem; }
  .single-post-box h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.75rem; }
  .single-author-box,
  .author-page-card,
  .author-page-hero {
    flex-direction: column;
  }
}

/* Blogs page UI refresh (to match provided reference) */
.blog-main {
  background: #fffaef;
  min-height: 100vh;
}

.blog-topbar {
  display: none;
}

.blog-main-menu {
  background: #f3f8f2;
  border-bottom: 1px solid #e6ede4;
  padding: 14px 0;
}

.blog-main-menu .nav-link {
  color: #2f3440;
  font-size: 15px;
  font-weight: 500;
}

.blog-main-menu .dropdown-menu {
  border: 1px solid #e6ede4;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(17, 16, 19, 0.08);
  padding: 6px;
}

.blog-main-menu .dropdown-item {
  border-radius: 6px;
  color: #5d6269;
  font-size: 14px;
  padding: 8px 12px;
}

.blog-main-menu .dropdown-item:hover,
.blog-main-menu .dropdown-item:focus {
  background: #f1f6ef;
  color: #000;
}

.blog-demo-btn {
  background: #000;
  color: #fff;
  border: 1px solid #000;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

.blog-demo-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.blog-hero {
  background: linear-gradient(180deg, #101224 0%, #0d1020 100%);
  padding: 150px 0 170px;
  text-align: center;
}

.blog-hero::before {
  background: rgba(5, 8, 22, 0.25);
}

.blog-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0;
  display: inline-block;
  position: relative;
}

.blog-hero h1::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 74px;
  height: 5px;
  border-radius: 10px;
  transform: translateX(-50%);
  background: #ffffff;
}

.blog-hero p {
  display: none;
}

.blog-listing-page {
  padding-top: 82px !important;
  padding-bottom: 82px !important;
}

.blog-card {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #f0f0e9;
  padding: 24px;
}

.blog-card-image {
  display: block;
  height: 520px;
  border-radius: 14px;
  overflow: hidden;
}

.blog-card-content {
  padding: 14px 0 0;
  border-top: 6px solid #ff9b2f;
  margin-top: 16px;
}

.blog-meta {
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.blog-card p {
  color: #5a6070;
}

.read-more {
  background: #fff0de;
  color: #131a35;
  font-weight: 700;
}

.blog-sidebar .blog-widget {
  background: #e9f8df;
  border-radius: 12px;
  box-shadow: none;
  border: 1px solid #e0efda;
  padding: 24px;
  margin-bottom: 22px;
}

.blog-sidebar .blog-widget h4 {
  color: #20295a;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  line-height: 1.1;
}

.blog-search-row {
  display: flex;
  gap: 12px;
}

.blog-search-row .form-control {
  min-height: 56px;
  border-radius: 0;
  border: 1px solid #e5e5e5;
  box-shadow: none;
  font-size: 16px;
  color: #212842;
}

.blog-search-btn {
  background: #20295a;
  color: #fff;
  border: 0;
  border-radius: 8px;
  min-width: 112px;
  min-height: 56px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 20px;
  flex: 0 0 auto;
}

.recent-posts-widget ul,
.categories-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-posts-widget ul li {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid #e8efe6;
}

.recent-posts-widget ul li:last-child {
  border-bottom: 0;
}

.recent-posts-widget ul li a {
  color: #3f4e67;
  font-size: 16px;
  line-height: 1.26;
  font-family: 'Inter', sans-serif;
}

.categories-widget ul li {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #e8efe6;
}

.categories-widget ul li:last-child {
  border-bottom: 0;
}

.categories-widget ul li a {
  color: #3f4e67;
  font-size: 16px;
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
}

.blog-pagination-wrap .page-link {
  background: transparent;
}

@media (max-width: 1199px) {
  .blog-hero h1 {
    font-size: 40px;
  }

  .blog-card-image {
    height: 430px;
  }

  .blog-sidebar .blog-widget h4 {
    font-size: 21px;
  }

  .blog-search-btn {
    font-size: 16px;
  }

  .recent-posts-widget ul li a,
  .categories-widget ul li a {
    font-size: 16px;
  }
}

@media (max-width: 991px) {
  .blog-hero {
    padding: 110px 0 130px;
  }

  .blog-listing-page {
    padding-top: 56px !important;
  }

  .blog-card {
    padding: 18px;
  }

  .blog-card-image {
    height: 340px;
  }
}

@media (max-width: 767px) {
  .blog-hero h1 {
    font-size: 38px;
  }

  .blog-sidebar .blog-widget h4 {
    font-size: 20px;
  }

  .blog-search-row {
    flex-direction: column;
  }

  .blog-search-btn {
    width: 100%;
    min-height: 52px;
    font-size: 16px;
  }

  .recent-posts-widget ul li a,
  .categories-widget ul li a {
    font-size: 15px;
  }

  .author-page-hero {
    padding: 18px;
    gap: 14px;
  }

  .author-page-content h2 {
    font-size: 24px;
  }

  .author-posts-title {
    font-size: 24px;
  }
}

/* Fix navbar logo visibility */
.blog-main-menu .navbar-brand {
  display: inline-flex;
  align-items: center;
  min-width: 170px;
}

.blog-main-menu .navbar-brand img {
  display: block;
  width: auto;
  max-width: 165px;
  height: 42px;
  object-fit: contain;
}

/* Main-site footer tabs: show only active tab content on initial load */
.tf__footer .tab-content {
  display: none;
}

.tf__footer .tab-content.active {
  display: block;
}
.tf__footer {
	position: relative;
	padding-top: 50px;
}

/* Keep migrated FAQ markup in post content from inheriting oversized global icon styles */
.single-post-content details {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  background: #fff;
}

.single-post-content details summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #2f4368;
  font-weight: 600;
}

.single-post-content details summary::-webkit-details-marker {
  display: none;
}

.single-post-content details summary svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px;
  flex: 0 0 14px;
  margin-left: auto;
}

.single-post-content details summary svg:first-of-type {
  display: none;
}

.single-post-content details summary svg:last-of-type {
  display: inline-block;
}

.single-post-content details[open] summary svg:first-of-type {
  display: inline-block;
}

.single-post-content details[open] summary svg:last-of-type {
  display: none;
}

.single-post-content details > *:not(summary) {
  margin-top: 10px;
}
