/* =========================================
   Blog Listing + Single (SS matched)
   Accent: gold #C9A24B | Dark: #0B1C2C
   ========================================= */

:root {
  --blog-gold: #CEEB6C;
  --blog-gold-dark: #CEEB6C;
  --blog-navy: #0b1c2c;
  --blog-text: #6b7280;
  --blog-title: #111827;
  --blog-bg: #f3f4f6;
  --blog-white: #ffffff;
  --blog-radius: 14px;
}

/* ---------- Latest Blogs Grid ---------- */
.latest-blogs-sec {
  padding: 80px 0;
  background: var(--blog-bg);
}

.latest-blogs-heading {
  margin-bottom: 36px;
}

.latest-blogs-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--blog-navy);
}

.latest-blogs-label::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--blog-gold);
  flex-shrink: 0;
}

.latest-blogs-sec .row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}

.blog-card {
  background: var(--blog-white);
  border-radius: var(--blog-radius);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(11, 28, 44, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(11, 28, 44, 0.12);
}

.blog-card-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--blog-radius) var(--blog-radius) 0 0;
}

.blog-card-thumb img,
.blog-card-thumb-placeholder {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-thumb-placeholder {
  background: linear-gradient(135deg, #1f3347 0%, #0b1c2c 100%);
}

.blog-card-cat {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--blog-gold);
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: lowercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.blog-card-body {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--blog-title);
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

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

.blog-card-excerpt {
  margin: 0 0 18px;
  color: var(--blog-text);
  font-size: 14px;
  line-height: 1.65;
}

.blog-card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-size: 13px;
}

.blog-card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #d1d5db;
}

.blog-card-avatar--fallback {
  display: inline-block;
  background: #d1d5db;
}

.blog-card-date {
  color: #9ca3af;
  font-size: 13px;
  white-space: nowrap;
}

.latest-blogs-empty {
  margin: 0;
  color: var(--blog-text);
}

/* ---------- Single Hero ---------- */
.blog-single-hero {
  position: relative;
  min-height: 360px;
  padding: 150px 0 80px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
}

.blog-single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 28, 44, 0.78) 0%,
    rgba(11, 28, 44, 0.45) 55%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.blog-single-hero .container {
  position: relative;
  z-index: 2;
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
}

.blog-breadcrumb a,
.blog-breadcrumb span {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  color: var(--blog-gold);
}

.blog-breadcrumb .current {
  color: var(--blog-gold);
  font-weight: 600;
}

.blog-single-hero__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
}

.blog-single-hero__meta {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
}

/* ---------- Single Content + Sidebar ---------- */
.blog-single-content-sec {
  padding: 60px 0 90px;
  background: #f7f8fa;
}

.blog-single-entry {
  color: var(--blog-text);
  font-size: 16px;
  line-height: 1.85;
}

.blog-single-entry > *:first-child {
  margin-top: 0;
}

.blog-single-entry h2,
.blog-single-entry h3,
.blog-single-entry h4 {
  color: var(--blog-navy);
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 14px;
  scroll-margin-top: 120px;
}

.blog-single-entry h2 {
  font-size: 28px;
  line-height: 1.3;
}

.blog-single-entry h3 {
  font-size: 22px;
}

.blog-single-entry p {
  margin-bottom: 18px;
}

.blog-single-entry img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 24px 0;
  display: block;
}

.blog-single-entry ul,
.blog-single-entry ol {
  padding-left: 1.25rem;
  margin-bottom: 18px;
}

.blog-single-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.blog-sidebar-widget {
  border-radius: 16px;
  overflow: hidden;
  background: var(--blog-white);
  box-shadow: 0 10px 30px rgba(11, 28, 44, 0.1);
}

.blog-sidebar-widget__head {
  background: var(--blog-navy);
  color: #fff;
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.blog-toc-widget .blog-sidebar-widget__head {
  color: var(--blog-gold);
}

.blog-toc {
  background: #eceff3;
  padding: 10px;
}

.blog-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-toc-item a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
  transition: background 0.25s ease, color 0.25s ease;
}

.blog-toc-item.is-active a,
.blog-toc-item a:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--blog-navy);
}

.blog-quote-widget__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 16px;
}

.blog-quote-eyebrow {
  color: var(--blog-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.blog-quote-title {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.blog-quote-body {
  padding: 20px 20px 24px;
  background: #fff;
}

.blog-quote-field {
  margin-bottom: 14px;
}

.blog-quote-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6b7280;
}

.blog-quote-field .form-control {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  min-height: 46px;
  padding: 10px 14px;
  font-size: 14px;
  color: #111827;
  box-shadow: none;
  background: #fff;
}

.blog-quote-field textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.blog-quote-field .form-control:focus {
  border-color: var(--blog-gold);
  box-shadow: 0 0 0 0.15rem rgba(201, 162, 75, 0.2);
}

.blog-quote-field .form-control::placeholder {
  color: #9ca3af;
}

.blog-quote-submit {
  width: 100%;
  border: 2px solid #092B37;
  padding: 12px 35px;
  display: inline-block;
  font-weight: 500;
  background: #CEEB6C;
  color: #092B37;
  transition: all ease-in-out 0.3s;
  font-size: 1rem;
  border-radius: 50px;
}

.blog-quote-submit:hover,
.blog-quote-submit:focus {
  color: #fff !important;
  background: #092B37;
}

.blog-quote-form .iti {
  width: 100%;
}

.blog-quote-form .was-validated .form-control:invalid {
  border-color: #dc3545;
}

/* Infinite scroll loader */
.latest-blogs-sentinel {
  width: 100%;
  height: 1px;
  margin-top: 8px;
}

.latest-blogs-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 0 8px;
}

.latest-blogs-loader[hidden] {
  display: none !important;
}

.latest-blogs-loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blog-gold);
  animation: pydBlogPulse 1s ease-in-out infinite;
}

.latest-blogs-loader-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.latest-blogs-loader-dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pydBlogPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .blog-single-sidebar {
    position: static;
    top: auto;
    margin-top: 10px;
  }

  .blog-single-hero {
    min-height: 300px;
    padding: 130px 0 60px;
  }

  .blog-single-hero__title {
    font-size: 38px;
  }
}

@media (max-width: 767px) {
  .latest-blogs-sec,
  .blog-single-content-sec {
    padding: 40px 0;
  }

  .blog-single-hero {
    min-height: 260px;
    padding: 110px 0 48px;
  }

  .blog-single-hero__title {
    font-size: 30px;
  }

  .blog-card-thumb img,
  .blog-card-thumb-placeholder {
    height: 200px;
  }

  .blog-card-title {
    font-size: 20px;
  }

  .blog-single-entry h2 {
    font-size: 24px;
  }
}
