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

/* -------- Shared hero -------- */
.blog-hero {
  position: relative;
  padding: 160px 0 80px;
  background: #F8FAFC;
  background-image:
    radial-gradient(
      circle at 15% 20%,
      rgba(225, 28, 43, 0.08) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(8, 16, 52, 0.04) 0%,
      transparent 45%
    );
  color: #081034;
  overflow: hidden;
}

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

.blog-hero p {
  color: rgba(8, 16, 52, 0.75);
  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(8, 16, 52, 0.05);
  color: #081034;
  font-size: 14px;
  border: 1px solid rgba(8, 16, 52, 0.1);
}

.blog-hero .custom-breadcrumb a {
  color: #081034;
  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: #F8FAFC;
}

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

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

.blogs-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(8, 16, 52, 0.14);
  border-color: rgba(225, 28, 43, 0.2);
}

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

.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(225, 28, 43, 0.1);
  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: #475569;
  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(8, 16, 52, 0.12);
}

.blogs-wrapper .get_data {
  color: #64748B;
  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: color 0.25s ease;
}

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

/* -------- Single blog detail -------- */
.single-blogs-page {
  padding: 140px 0 80px;
  background: #F8FAFC;
}

.single-blogs-page .c-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  color: #64748B;
}

.single-blogs-page .c-breadcrumb a {
  color: var(--secondColor);
  font-weight: 600;
  text-decoration: none;
}

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

.single-blogs-page .s-blog-title h1 {
  color: var(--secondColor);
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.single-blogs-page .tag-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #64748B;
  font-size: 14px;
  margin-bottom: 24px;
}

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

.single-blogs-page .tag-category {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(225, 28, 43, 0.1);
  color: var(--primeColor);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

.single-blogs-page .s-banner {
  margin: 0 0 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(8, 16, 52, 0.1);
}

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

.single-blogs-page .s-content {
  color: #475569;
  font-size: 17px;
  line-height: 1.8;
}

.single-blogs-page .s-content h2 {
  color: var(--secondColor);
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.5vw, 32px);
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(225, 28, 43, 0.15);
}

.single-blogs-page .s-content h3 {
  color: var(--secondColor);
  margin: 28px 0 12px;
}

.single-blogs-page .s-content p {
  margin-bottom: 18px;
}

.single-blogs-page .s-content a {
  color: var(--primeColor);
  text-decoration: underline;
}

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

.single-blogs-page .author-box {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  padding: 24px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid rgba(8, 16, 52, 0.08);
  box-shadow: 0 8px 24px rgba(8, 16, 52, 0.06);
}

.single-blogs-page .author-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--secondColor);
  color: var(--primeColor);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 20px;
}

.single-blogs-page .author-user {
  color: var(--secondColor);
  margin: 0 0 8px;
  font-size: 18px;
}

.single-blogs-page .author-bio {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}

.blog-sidebar {
  display: grid;
  gap: 20px;
}

.sidebar-sticky {
  position: sticky;
  top: 120px;
}

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

.blog-sidebar .share-box {
  padding: 20px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(8, 16, 52, 0.08);
}

.blog-sidebar .share-title {
  display: block;
  margin-bottom: 14px;
  color: var(--secondColor);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.blog-share-list .share-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #F8FAFC;
  color: var(--secondColor);
  border: 1px solid rgba(8, 16, 52, 0.08);
  transition: all 0.25s ease;
}

.blog-share-list .share-btn:hover {
  background: var(--primeColor);
  color: #FFFFFF;
  border-color: var(--primeColor);
}

.blog-sidebar .toc {
  padding: 20px;
  border-radius: 14px;
  background: var(--secondColor);
  color: #fff;
}

.blog-sidebar .toc h4 {
  color: var(--primeColor);
  margin: 0 0 14px;
  font-size: 16px;
}

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

.blog-sidebar .toc-list a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.s-blog-sec2 {
  padding: 80px 0;
}

.s-blog-sec2 .slider_clm {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(8, 16, 52, 0.08);
  box-shadow: 0 8px 24px rgba(8, 16, 52, 0.06);
}

.s-blog-sec2 .thumbnail_wrap img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

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

@media (max-width: 991px) {
  .sidebar-sticky {
    position: static;
  }

  .single-blogs-page {
    padding-top: 120px;
  }
}

@media (max-width: 767px) {
  .blog-listing {
    padding: 60px 0 80px;
  }
}
