/* ============================================================
   Blog system styles
   Used by /blog.php (listing) and /blog/<slug>.php (single)
   ============================================================ */

/* -------- Shared hero -------- */
.blog-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--secondColor);
  background-image:
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 168, 0, 0.18) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(255, 168, 0, 0.12) 0%,
      transparent 45%
    ),
    linear-gradient(135deg, #0d2f29 0%, var(--secondColor) 100%);
  color: #fff;
  overflow: hidden;
}

.blog-hero h1 {
  color: #fff;
  margin: 12px 0 18px;
}

.blog-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
}

.blog-hero .custom-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.blog-hero .custom-breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-hero .custom-breadcrumb a:hover {
  color: var(--primeColor);
}

.blog-hero .custom-breadcrumb .title {
  color: var(--primeColor);
  font-weight: 500;
}

/* -------- Listing grid -------- */
.blog-listing {
  padding: 80px 0 100px;
  background: #f8f3e8;
}

.blog-listing .post-item {
  margin-bottom: 32px;
}

.blogs-wrapper {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(18, 63, 54, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(18, 63, 54, 0.06);
}

.blogs-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(18, 63, 54, 0.16);
}

.blogs-wrapper .blog-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f0e9d8;
}

.blogs-wrapper .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blogs-wrapper:hover .blog-img img {
  transform: scale(1.06);
}

.blogs-wrapper .blog-info {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blogs-wrapper .blog-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 168, 0, 0.12);
  color: var(--primeColor);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
}

.blogs-wrapper .blog-title h3,
.blogs-wrapper .blog-title h4 {
  margin: 0 0 12px;
  color: var(--secondColor);
  line-height: 1.3;
}

.blogs-wrapper .blog-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.blogs-wrapper .blog-title a:hover {
  color: var(--primeColor);
}

.blogs-wrapper .blog_excerpt p {
  color: #4a5752;
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blogs-wrapper .blog-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px dashed rgba(18, 63, 54, 0.15);
}

.blogs-wrapper .get_data {
  color: #6a7672;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blogs-wrapper .get_data .fa {
  color: var(--primeColor);
}

.blogs-wrapper .blog-readmore a {
  color: var(--secondColor);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    gap 0.25s ease,
    color 0.25s ease;
}

.blogs-wrapper .blog-readmore a:hover {
  color: var(--primeColor);
  gap: 14px;
}

.blogs-wrapper .blog-readmore-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primeColor);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* ============================================================
   Single blog post
   ============================================================ */

body.single-blog-page {
  background: #f8f3e8;
}

.single-blogs-page {
  padding: 180px 0 80px;
}

.single-blogs-page .container {
  max-width: 1280px;
}

.single-blogs-page .c-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(18, 63, 54, 0.06);
  color: var(--secondColor);
  font-size: 14px;
  font-weight: 500;
}

.single-blogs-page .c-breadcrumb a {
  color: var(--secondColor);
  text-decoration: none;
  transition: color 0.2s ease;
}

.single-blogs-page .c-breadcrumb a:hover {
  color: var(--primeColor);
}

.single-blogs-page .c-breadcrumb span[aria-hidden="true"] {
  color: var(--primeColor);
  font-weight: 700;
}

.single-blogs-page .s-blog-title h1 {
  color: var(--secondColor);
  font-family: "PP Editorial New", "Playfair Display", serif;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.18;
  font-weight: 500;
  margin: 0 0 18px;
}

.single-blogs-page .tag-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid rgba(18, 63, 54, 0.1);
  border-radius: 999px;
  font-size: 14px;
  color: #4a5752;
  margin-bottom: 28px;
}

.single-blogs-page .tag-date .fa {
  color: var(--primeColor);
}

.single-blogs-page .tag-date .dot {
  color: var(--primeColor);
}

.single-blogs-page .tag-category {
  color: var(--secondColor);
  font-weight: 600;
}

.single-blogs-page .s-banner {
  margin: 0 0 36px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(18, 63, 54, 0.12);
  aspect-ratio: 16 / 9;
  background: #f0e9d8;
}

.single-blogs-page .s-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-blogs-page .s-content {
  color: #2c3a36;
  font-size: 16.5px;
  line-height: 1.85;
}

.single-blogs-page .s-content p {
  margin: 0 0 20px;
}

.single-blogs-page .s-content h2 {
  font-family: "PP Editorial New", "Playfair Display", serif;
  font-size: clamp(26px, 2.6vw, 36px);
  color: var(--secondColor);
  font-weight: 500;
  line-height: 1.25;
  margin: 44px 0 18px;
  padding-top: 12px;
  scroll-margin-top: 120px;
}

.single-blogs-page .s-content h3 {
  font-family: "PP Editorial New", "Playfair Display", serif;
  font-size: clamp(20px, 1.9vw, 26px);
  color: var(--secondColor);
  font-weight: 500;
  margin: 30px 0 14px;
  scroll-margin-top: 120px;
}

.single-blogs-page .s-content a {
  color: var(--primeColor);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.single-blogs-page .s-content a:hover {
  color: var(--secondColor);
}

.single-blogs-page .s-content ul,
.single-blogs-page .s-content ol {
  margin: 0 0 20px 22px;
  padding: 0;
}

.single-blogs-page .s-content ul li,
.single-blogs-page .s-content ol li {
  margin-bottom: 8px;
}

.single-blogs-page .s-content blockquote {
  border-left: 4px solid var(--primeColor);
  background: #fff;
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 12px;
  font-style: italic;
  color: var(--secondColor);
}

.single-blogs-page .s-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(18, 63, 54, 0.06);
}

.single-blogs-page .s-content table td,
.single-blogs-page .s-content table th {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(18, 63, 54, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 14.5px;
}

.single-blogs-page .s-content table tr:first-child td,
.single-blogs-page .s-content table th {
  background: var(--secondColor);
  color: #fff;
}

/* -------- FAQ accordion (single post) -------- */
.single-blogs-page .faqs {
  margin: 50px 0 40px;
  background: none;
  box-shadow: none;
  padding: 0;
}

.single-blogs-page .faqs .accordion .card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(18, 63, 54, 0.08);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(18, 63, 54, 0.04);
}

.single-blogs-page .faqs .card-header {
  padding: 0;
  background: #fff !important;
  border: 0;
}

.single-blogs-page .faqs .collapsible-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  text-align: left;
  color: var(--secondColor);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.single-blogs-page .faqs .collapsible-link:hover {
  background: rgba(255, 168, 0, 0.06);
}

.single-blogs-page .faqs .collapsible-link strong {
  color: var(--primeColor);
  margin-right: 6px;
}

.single-blogs-page .faqs .faq-toggle-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 168, 0, 0.12);
  color: var(--primeColor);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.single-blogs-page
  .faqs
  .collapsible-link[aria-expanded="true"]
  .faq-toggle-icon {
  background: var(--primeColor);
  color: #fff;
  transform: rotate(45deg);
}

.single-blogs-page .faqs .card-body {
  padding: 20px 22px 15px 22px;
  color: #4a5752;
  font-size: 15px;
  line-height: 1.75;
}

/* -------- Author box -------- */
.single-blogs-page .author-box {
  margin-top: 40px;
  padding: 28px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(18, 63, 54, 0.08);
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.single-blogs-page .author-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primeColor), #ffb733);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  font-family: "PP Editorial New", "Playfair Display", serif;
}

.single-blogs-page .author-info h3,
.single-blogs-page .author-user {
  font-family: "PP Editorial New", "Playfair Display", serif;
  color: var(--secondColor);
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 500;
}

.single-blogs-page .author-bio {
  color: #4a5752;
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
}

/* -------- Sidebar -------- */
.blog-sidebar {
  position: sticky;
  top: 110px;
  background: #fff;
  border-radius: 22px;
  padding: 26px;
  border: 1px solid rgba(18, 63, 54, 0.08);
  box-shadow: 0 12px 32px rgba(18, 63, 54, 0.06);
}

.blog-sidebar .blog-logo {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(18, 63, 54, 0.1);
  margin-bottom: 20px;
}

.blog-sidebar .blog-logo img {
  max-width: 170px;
  height: auto;
}

.blog-sidebar .share-box {
  background: linear-gradient(135deg, var(--primeColor) 0%, #ffb733 100%);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 22px;
  color: #fff;
}

.blog-sidebar .share-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.blog-sidebar .blog-share-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}

.blog-sidebar .blog-share-list a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
}

.blog-sidebar .blog-share-list a:hover {
  background: #fff;
  color: var(--primeColor);
  transform: translateY(-2px);
}

/* -------- TOC -------- */
.blog-sidebar .toc {
  background: rgba(255, 168, 0, 0.08);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 168, 0, 0.2);
}

.blog-sidebar .toc-heading h4 {
  font-family: "PP Editorial New", "Playfair Display", serif;
  font-size: 20px;
  color: var(--secondColor);
  margin: 0 0 14px;
  font-weight: 500;
  border-bottom: 1px dashed rgba(18, 63, 54, 0.2);
  padding-bottom: 10px;
}

.blog-sidebar .toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 360px;
  overflow-y: auto;
  counter-reset: toc;
}

.blog-sidebar .toc-list li {
  counter-increment: toc;
  margin-bottom: 4px;
}

.blog-sidebar .toc-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  color: var(--secondColor);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.blog-sidebar .toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--primeColor);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.blog-sidebar .toc-list a:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--primeColor);
}

.blog-sidebar .toc-list a.active {
  background: var(--secondColor);
  color: #fff;
}

.blog-sidebar .toc-list a.active::before {
  color: var(--primeColor);
}

/* -------- Recent blogs section -------- */
.s-blog-sec2 {
  padding: 80px 0;
  background: var(--secondColor);
  background-image:
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 168, 0, 0.12) 0%,
      transparent 40%
    ),
    linear-gradient(135deg, #0d2f29 0%, var(--secondColor) 100%);
  color: #fff;
}

.s-blog-sec2 .head50 h2 {
  color: #fff;
}

.s-blog-sec2 .recent-blogs .slider_clm {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  margin: 0 12px 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease;
}

.s-blog-sec2 .recent-blogs .slider_clm:hover {
  transform: translateY(-6px);
}

.s-blog-sec2 .recent-blogs .thumbnail_wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.s-blog-sec2 .recent-blogs .thumbnail_wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-blog-sec2 .recent-blogs .blog-info {
  padding: 20px 22px 22px;
}

.s-blog-sec2 .recent-blogs .blog-info h3 {
  margin: 8px 0 14px;
  color: var(--secondColor);
  font-size: 18px;
  line-height: 1.35;
}

.s-blog-sec2 .recent-blogs .blog-info h3 a {
  color: inherit;
  text-decoration: none;
}

.s-blog-sec2 .recent-blogs .blog-info h3 a:hover {
  color: var(--primeColor);
}

.s-blog-sec2 .recent-blogs .blog-category {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255, 168, 0, 0.15);
  color: var(--primeColor);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border-radius: 999px;
}

.s-blog-sec2 .recent-blogs .blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed rgba(18, 63, 54, 0.12);
}

.s-blog-sec2 .recent-blogs .get_data {
  font-size: 12.5px;
  color: #6a7672;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.s-blog-sec2 .recent-blogs .simple_btn {
  color: var(--primeColor);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

.s-blog-sec2 .recent-blogs .simple_btn:hover {
  color: var(--secondColor);
}

/* -------- Visually hidden helper -------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------- Responsive -------- */
@media (max-width: 991.98px) {
  .single-blogs-page {
    padding: 150px 0 60px;
  }

  .single-blogs-page .right-col {
    margin-top: 36px;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-listing {
    padding: 60px 0 80px;
  }

  .blog-hero {
    padding: 160px 0 60px;
  }
}

@media (max-width: 575.98px) {
  .single-blogs-page .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .single-blogs-page .faqs .collapsible-link {
    font-size: 14.5px;
    padding: 14px 16px;
  }

  .single-blogs-page .s-content {
    font-size: 15.5px;
  }
}
