/* =====================================================
   Blog archive + Single post – only on blog pages
   ===================================================== */

/* ---- Archive ---- */
.gs-blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  padding: 30px 0 60px;
}
.gs-blog-main { min-width: 0; }

.gs-blog-header {
  margin-bottom: 32px;
}
.gs-blog-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gs-primary, #1a1a1a);
  margin: 0 0 8px;
}

.gs-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.gs-post-card {
  background: var(--gs-bg, #fff);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.gs-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.gs-post-card a.thumb {
  display: block;
  overflow: hidden;
}
.gs-post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.gs-post-card:hover img {
  transform: scale(1.04);
}
.gs-post-card-body {
  padding: 20px;
}
.gs-post-meta {
  font-size: 12px;
  color: var(--gs-text-muted, #666);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.gs-post-meta a {
  color: var(--gs-accent, #c9a227);
  text-decoration: none;
}
.gs-post-card h2 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  line-height: 1.35;
}
.gs-post-card h2 a {
  color: var(--gs-primary, #1a1a1a);
  text-decoration: none;
}
.gs-post-card h2 a:hover {
  color: var(--gs-accent, #c9a227);
}
.gs-post-card .excerpt {
  font-size: 14px;
  color: var(--gs-text-muted, #666);
  line-height: 1.65;
  margin-bottom: 14px;
}
.gs-post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gs-accent, #c9a227);
  text-decoration: none;
}
.gs-post-card .read-more:hover {
  color: var(--gs-primary, #1a1a1a);
}

/* Pagination blog */
.gs-pagination {
  margin-top: 40px;
  text-align: center;
}
.gs-pagination .nav-links {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.gs-pagination a,
.gs-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--gs-border, #e8e4de);
  color: var(--gs-text, #2d2d2d);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: var(--gs-bg, #fff);
  transition: all 0.2s;
}
.gs-pagination span.current,
.gs-pagination a:hover {
  background: var(--gs-primary, #1a1a1a);
  border-color: var(--gs-primary, #1a1a1a);
  color: #fff;
}

/* Sidebar shared (blog + shop style) */
.gs-blog-sidebar {
  position: sticky;
  top: 100px;
}
.gs-blog-sidebar .widget {
  background: var(--gs-bg, #fff);
  border: 1px solid var(--gs-border, #e8e4de);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}
.gs-blog-sidebar .widget-title {
  font-size: 1.05rem;
  color: var(--gs-primary, #1a1a1a);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gs-accent, #c9a227);
}
.gs-blog-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gs-blog-sidebar ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gs-border, #e8e4de);
  font-size: 14px;
}
.gs-blog-sidebar ul li:last-child { border-bottom: none; }
.gs-blog-sidebar ul li a {
  color: var(--gs-text, #2d2d2d);
  text-decoration: none;
  transition: color 0.2s;
}
.gs-blog-sidebar ul li a:hover {
  color: var(--gs-accent, #c9a227);
}

/* ---- Single post ---- */
.gs-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  padding: 30px 0 60px;
}
.gs-single-main { min-width: 0; }

.gs-single-header {
  margin-bottom: 28px;
}
.gs-single-header h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--gs-primary, #1a1a1a);
  line-height: 1.25;
  margin: 0 0 14px;
}
.gs-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: var(--gs-text-muted, #666);
  align-items: center;
}
.gs-single-meta a {
  color: var(--gs-accent, #c9a227);
  text-decoration: none;
}
.gs-single-thumb {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
}
.gs-single-thumb img {
  width: 100%;
  height: auto;
  display: block;
}
.gs-single-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gs-text, #2d2d2d);
}
.gs-single-content h2,
.gs-single-content h3 {
  color: var(--gs-primary, #1a1a1a);
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}
.gs-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1em 0;
}
.gs-single-content a {
  color: var(--gs-accent, #c9a227);
}
.gs-single-content ul,
.gs-single-content ol {
  padding-left: 1.4em;
  margin-bottom: 1.2em;
}

/* Share buttons */
.gs-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 32px 0;
  padding: 18px 0;
  border-top: 1px solid var(--gs-border, #e8e4de);
  border-bottom: 1px solid var(--gs-border, #e8e4de);
}
.gs-share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gs-text-muted, #666);
  margin-right: 4px;
}
.gs-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gs-bg-light, #f8f5f0);
  color: var(--gs-primary, #1a1a1a);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.gs-share a:hover {
  background: var(--gs-primary, #1a1a1a);
  color: #fff;
  transform: translateY(-2px);
}
.gs-share a.facebook:hover { background: #1877f2; }
.gs-share a.twitter:hover { background: #000; }
.gs-share a.linkedin:hover { background: #0a66c2; }
.gs-share a.pinterest:hover { background: #e60023; }
.gs-share a.whatsapp:hover { background: #25d366; }

/* Author box */
.gs-author-box {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--gs-bg-light, #f8f5f0);
  border-radius: 14px;
  padding: 22px;
  margin: 32px 0;
}
.gs-author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.gs-author-box .author-name {
  font-size: 1.1rem;
  color: var(--gs-primary, #1a1a1a);
  margin: 0 0 6px;
}
.gs-author-box .author-bio {
  font-size: 14px;
  color: var(--gs-text-muted, #666);
  line-height: 1.6;
  margin: 0;
}

/* Related posts */
.gs-related-posts {
  margin: 48px 0 20px;
}
.gs-related-posts > h2 {
  font-size: 1.4rem;
  color: var(--gs-primary, #1a1a1a);
  margin-bottom: 24px;
  text-align: center;
}
.gs-related-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}
.gs-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gs-related-card {
  background: var(--gs-bg, #fff);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  scroll-snap-align: start;
}
.gs-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}
.gs-related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.gs-related-card h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gs-primary, #1a1a1a);
  padding: 12px 14px 14px;
  margin: 0;
  line-height: 1.4;
}
.gs-related-card h3 a {
  color: inherit;
  text-decoration: none;
}
.gs-related-card h3 a:hover {
  color: var(--gs-accent, #c9a227);
}

/* Tags */
.gs-single-tags {
  margin-top: 24px;
  font-size: 13px;
  color: var(--gs-text-muted, #666);
}
.gs-single-tags a {
  display: inline-block;
  background: var(--gs-bg-light, #f8f5f0);
  color: var(--gs-text, #2d2d2d);
  padding: 4px 12px;
  border-radius: 999px;
  margin: 2px 4px 2px 0;
  text-decoration: none;
  font-size: 12px;
  transition: background 0.2s;
}
.gs-single-tags a:hover {
  background: var(--gs-primary, #1a1a1a);
  color: #fff;
}

@media (max-width: 992px) {
  .gs-blog-layout,
  .gs-single-layout {
    grid-template-columns: 1fr;
  }
  .gs-blog-sidebar {
    position: static;
    order: 1;
  }
  .gs-posts-grid {
    grid-template-columns: 1fr;
  }
  .gs-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .gs-post-card img { height: 180px; }
  .gs-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  /* Related horizontal scroll on mobile */
  .gs-related-scroll {
    margin: 0 -15px;
    padding: 0 15px 12px;
  }
  .gs-related-grid {
    display: flex;
    gap: 14px;
    width: max-content;
  }
  .gs-related-card {
    width: 160px;
    flex-shrink: 0;
  }
  .gs-related-card img { height: 110px; }
}

/* ---- TOC ---- */
.gs-single-with-toc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.gs-toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 16px 0;
}
.gs-toc-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gs-text-muted, #666);
  margin-bottom: 12px;
}
.gs-toc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--gs-border, #e8e4de);
}
.gs-toc-nav li { margin: 0; }
.gs-toc-nav a {
  display: block;
  padding: 8px 0 8px 14px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--gs-text-muted, #666);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.2s, border-color 0.2s;
}
.gs-toc-nav a:hover,
.gs-toc-nav a.active {
  color: var(--gs-primary, #1a1a1a);
  border-left-color: var(--gs-accent, #c9a227);
  font-weight: 600;
}
.gs-toc-mobile-btn {
  display: none;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: var(--gs-bg-light, #f8f5f0);
  border: 1px solid var(--gs-border, #e8e4de);
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--gs-primary, #1a1a1a);
  cursor: pointer;
  font-family: inherit;
}
.gs-toc-mobile-panel {
  background: var(--gs-bg, #fff);
  border: 1px solid var(--gs-border, #e8e4de);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.gs-single-with-toc .gs-single-layout {
  grid-column: 2;
}

/* Tables & video in content */
.gs-single-content table,
.gs-tab-panel table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: var(--gs-bg, #fff);
}
.gs-single-content .gs-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.gs-single-content table {
  margin: 0;
  min-width: 480px;
}
.gs-single-content table th {
  background: var(--gs-primary, #1a1a1a);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  padding: 12px 14px;
  text-align: left;
}
.gs-single-content table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gs-border, #e8e4de);
  color: var(--gs-text, #2d2d2d);
  vertical-align: top;
}
.gs-single-content table tr:nth-child(even) td {
  background: var(--gs-bg-light, #f8f5f0);
}
.gs-single-content iframe,
.gs-single-content video {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  min-height: 280px;
  border-radius: 12px;
  margin: 16px 0;
  display: block;
}

/* Comments */
.gs-comments {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gs-border, #e8e4de);
}
.gs-comments .comments-title {
  font-size: 1.35rem;
  color: var(--gs-primary, #1a1a1a);
  margin-bottom: 24px;
}
.gs-comments .comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.gs-comments .comment {
  margin-bottom: 20px;
}
.gs-comments .comment-body {
  background: var(--gs-bg-light, #f8f5f0);
  border-radius: 12px;
  padding: 16px 18px;
}
.gs-comments .children {
  list-style: none;
  padding-left: 28px;
  margin-top: 12px;
  border-left: 2px solid var(--gs-border, #e8e4de);
}
.gs-comments .comment-author {
  font-weight: 600;
  color: var(--gs-primary, #1a1a1a);
  font-size: 14px;
}
.gs-comments .comment-author img {
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.gs-comments .comment-metadata {
  font-size: 12px;
  color: var(--gs-text-muted, #666);
  margin: 4px 0 10px;
}
.gs-comments .comment-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gs-text, #2d2d2d);
}
.gs-comments .reply a {
  font-size: 13px;
  font-weight: 600;
  color: var(--gs-accent, #c9a227);
  text-decoration: none;
}
.gs-comments .comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gs-primary, #1a1a1a);
}
.gs-comments .comment-form input[type="text"],
.gs-comments .comment-form input[type="email"],
.gs-comments .comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gs-border, #e8e4de);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 14px;
  background: var(--gs-bg, #fff);
  color: var(--gs-text, #2d2d2d);
}
.gs-comments .comment-form input:focus,
.gs-comments .comment-form textarea:focus {
  outline: none;
  border-color: var(--gs-accent, #c9a227);
}
.gs-comments .form-submit input {
  background: var(--gs-primary, #1a1a1a);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.gs-comments .form-submit input:hover { opacity: 0.9; }

@media (max-width: 992px) {
  .gs-single-with-toc {
    grid-template-columns: 1fr;
  }
  .gs-toc { display: none; }
  .gs-toc-mobile-btn { display: block; }
  .gs-single-with-toc .gs-single-layout {
    grid-column: 1;
  }
}

/* Single post figures full width */
.gs-single-content figure,
.single-post figure,
.gs-single-main figure {
  width: 100% !important;
  max-width: 100%;
  margin: 1.25em 0;
}
.gs-single-content figure img,
.single-post figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* Category chips on archive (same as Blog Page template) */
.gs-blog-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 20px;
  margin-bottom: 8px;
}
.gs-blog-cats::-webkit-scrollbar { display: none; }
.gs-blog-cat {
  flex: 0 0 auto;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--gs-border, #e8e4de);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--gs-primary, #1a1a1a);
  transition: background 0.25s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s, border-color 0.25s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}
.gs-blog-cat:hover {
  border-color: var(--gs-accent, #c9a227);
  transform: translateY(-1px);
}
.gs-blog-cat.is-active {
  background: var(--gs-primary, #1a1a1a);
  color: #fff;
  border-color: var(--gs-primary, #1a1a1a);
}

/* Pagination page-numbers */
.gs-pagination,
.nav-links,
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 36px 0 20px;
  list-style: none;
  padding: 0;
}
.gs-pagination ul,
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
a.page-numbers,
span.page-numbers,
.gs-pagination a,
.gs-pagination span,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--gs-border, #e8e4de);
  background: #fff;
  color: var(--gs-primary, #1a1a1a);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: background 0.25s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
a.page-numbers:hover,
.gs-pagination a:hover,
.nav-links a:hover {
  border-color: var(--gs-primary, #1a1a1a);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  color: var(--gs-primary, #1a1a1a);
}
span.page-numbers.current,
a.page-numbers.current,
.page-numbers[aria-current="page"],
.gs-pagination span.current,
.nav-links span.current {
  background: var(--gs-primary, #1a1a1a);
  border-color: var(--gs-primary, #1a1a1a);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.2);
}
span.page-numbers.dots,
.page-numbers.dots:hover {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  min-width: 28px;
  cursor: default;
  transform: none;
}
