/* ==========================================================================
   SHIV KNOWLEDGE — PREMIUM CATEGORY LISTING PAGE (listing-post.php)
   Scoped Styles for Spiritual Editorial Layout
   ========================================================================== */

:root {
  --sk-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sk-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sk-navy: #073763;
  --sk-navy-dark: #0A2540;
  --sk-copper: #A65B2A;
  --sk-gold: #C5832B;
  --sk-gold-light: #E5B869;
  --sk-ivory-bg: #FAF7F0;
  --sk-card-bg: #FFFFFF;
  --sk-border-subtle: #ECE5D8;
  --sk-border-accent: rgba(197, 131, 43, 0.35);
  --sk-text-main: #243247;
  --sk-text-muted: #64748b;
  --sk-text-dark: #073763;
}

/* Suppress unwanted external ShareThis floating horizontal bar across the listing page */
#st-2,
.st-sticky-share-buttons {
  display: none !important;
}

/* Page Container Wrapper */
.sk-listing-page-wrap {
  background-color: #FAF8F5;
  min-height: auto;
  padding-bottom: 40px;
}

.sk-listing-page-wrap .row {
  align-items: flex-start;
}

.sk-listing-page-wrap .wow {
  visibility: visible !important;
}

/* ==========================================================================
   1. CATEGORY HEADER / HERO AREA
   ========================================================================== */

.sk-category-hero {
  position: relative;
  background-color: #FAF4EB;
  background-image: 
    linear-gradient(to bottom, rgba(250, 244, 235, 0.92) 0%, rgba(250, 244, 235, 0.85) 60%, rgba(250, 244, 235, 0.95) 100%),
    url('../imgs/explore-himalayas-bg.svg');
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 44px 0 46px;
  border-bottom: 1px solid rgba(197, 131, 43, 0.22);
  margin-bottom: 38px;
  text-align: center;
  box-shadow: inset 0 -4px 12px rgba(11, 45, 79, 0.02);
}

.sk-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Breadcrumb Navigation */
.sk-breadcrumb-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.sk-breadcrumb-nav a {
  color: #7A6F62;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sk-breadcrumb-nav a:hover {
  color: var(--sk-navy);
  text-decoration: none;
}

.sk-breadcrumb-nav .sk-bc-sep {
  color: #B5A898;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
}

.sk-breadcrumb-nav .sk-bc-current {
  color: var(--sk-copper);
  font-weight: 600;
}

/* Trishul Crest Ornament (Below Heading) */
.sk-hero-crest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px auto 16px;
}

.sk-crest-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(197, 131, 43, 0.5));
}

.sk-crest-line.sk-line-right {
  background: linear-gradient(to left, transparent, rgba(197, 131, 43, 0.5));
}

.sk-hero-trishul-img {
  width: auto;
  height: 32px;
  max-height: 32px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(7, 55, 99, 0.15));
}

/* Dynamic Category Title */
.sk-category-title {
  font-family: var(--sk-font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--sk-navy);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  text-transform: capitalize;
}

/* Category Description from Database */
.sk-category-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #554A3E;
  margin: 0 auto 18px;
  max-width: 760px;
  font-weight: 400;
}

/* Category Meta Badges */
.sk-category-meta-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sk-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sk-copper);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(197, 131, 43, 0.3);
  padding: 4px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sk-category-badge i {
  font-size: 11px;
  color: var(--sk-gold);
}

/* ==========================================================================
   2. MAIN CONTENT LAYOUT
   ========================================================================== */

.sk-listing-main-content {
  position: relative;
}

/* ==========================================================================
   3. LEAD / FEATURED SHOWCASE CARD (Article 1)
   ========================================================================== */

.sk-featured-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--sk-border-subtle);
  box-shadow: 0 4px 20px rgba(11, 45, 79, 0.04);
  overflow: hidden;
  margin-bottom: 34px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sk-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(11, 45, 79, 0.08);
  border-color: rgba(197, 131, 43, 0.45);
}

.sk-featured-img-wrap {
  position: relative;
  width: 100%;
  background: #FAF6EE;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px 16px 0 0;
}

.sk-featured-img-wrap a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.sk-featured-img-wrap img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 750px;
  object-fit: cover;
  margin: 0 auto;
  transition: transform 0.45s ease;
  image-rendering: -webkit-optimize-contrast;
}

.sk-featured-card:hover .sk-featured-img-wrap img {
  transform: scale(1.02);
}

.sk-featured-pill {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(7, 55, 99, 0.92);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sk-featured-body {
  padding: 26px 28px 26px;
}

.sk-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.sk-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--sk-copper);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.sk-card-tag:hover {
  color: var(--sk-navy);
  text-decoration: none;
}

.sk-card-date {
  font-size: 12px;
  color: #8C7F72;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.sk-card-date i {
  color: var(--sk-gold);
  font-size: 11px;
}

.sk-featured-title {
  font-family: var(--sk-font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--sk-navy);
  line-height: 1.32;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.sk-featured-title a {
  color: var(--sk-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sk-featured-card:hover .sk-featured-title a {
  color: var(--sk-copper);
}

.sk-featured-desc {
  font-size: 14.5px;
  line-height: 1.62;
  color: #475569;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sk-featured-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid #F3EDE4;
}

.sk-btn-read-story {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--sk-navy) 0%, #062B4F 100%);
  color: #ffffff;
  padding: 8px 22px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 3px 10px rgba(7, 55, 99, 0.22);
}

.sk-btn-read-story:hover {
  background: var(--sk-copper);
  color: #ffffff;
  text-decoration: none;
  transform: translateX(2px);
  box-shadow: 0 5px 14px rgba(166, 91, 42, 0.3);
}

.sk-btn-read-story i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.sk-btn-read-story:hover i {
  transform: translateX(3px);
}

/* ==========================================================================
   4. SECTION SUBHEAD (More Stories in Category)
   ========================================================================== */

.sk-listing-subhead {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 24px;
}

.sk-subhead-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sk-subhead-trishul {
  width: auto;
  height: 24px;
  max-height: 24px;
  object-fit: contain;
  display: block;
}

.sk-subhead-title {
  font-family: var(--sk-font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--sk-navy);
  margin: 0;
  letter-spacing: -0.01em;
}

.sk-subhead-title span {
  color: var(--sk-copper);
}

.sk-subhead-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(197, 131, 43, 0.45) 0%, rgba(197, 131, 43, 0.1) 80%, transparent 100%);
}

/* ==========================================================================
   5. 2-COLUMN EDITORIAL ARTICLE GRID (Articles 2+)
   ========================================================================== */

.sk-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}

.sk-article-grid-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--sk-border-subtle);
  box-shadow: 0 3px 14px rgba(11, 45, 79, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sk-article-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(11, 45, 79, 0.08);
  border-color: rgba(197, 131, 43, 0.45);
}

/* Card Image Header — Complete Uncropped Artwork */
.sk-grid-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #FAF6EE;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sk-grid-thumb a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.sk-grid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform 0.35s ease;
  image-rendering: -webkit-optimize-contrast;
}

.sk-article-grid-card:hover .sk-grid-thumb img {
  transform: scale(1.03);
}

.sk-grid-category-pill {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sk-copper);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(197, 131, 43, 0.3);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Card Body */
.sk-grid-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sk-grid-date {
  font-size: 11.5px;
  color: #8C7F72;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

.sk-grid-date i {
  color: var(--sk-gold);
  font-size: 10.5px;
}

.sk-grid-title {
  font-family: var(--sk-font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--sk-navy);
  line-height: 1.35;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
}

.sk-grid-title a {
  color: var(--sk-navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sk-article-grid-card:hover .sk-grid-title a {
  color: var(--sk-copper);
}

.sk-grid-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: #64748b;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.sk-grid-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid #F3EDE4;
  margin-top: auto;
}

.sk-grid-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--sk-copper);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sk-article-grid-card:hover .sk-grid-link {
  color: var(--sk-navy);
  text-decoration: none;
  transform: translateX(2px);
}

.sk-grid-link i {
  font-size: 10.5px;
  transition: transform 0.2s ease;
}

.sk-article-grid-card:hover .sk-grid-link i {
  transform: translateX(3px);
}

/* ==========================================================================
   6. EMPTY STATE (When Category has 0 records)
   ========================================================================== */

.sk-empty-category-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--sk-border-subtle);
  padding: 48px 24px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(11, 45, 79, 0.04);
}

.sk-empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  opacity: 0.7;
}

.sk-empty-title {
  font-family: var(--sk-font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--sk-navy);
  margin-bottom: 8px;
}

.sk-empty-desc {
  font-size: 14px;
  color: #64748b;
  max-width: 460px;
  margin: 0 auto 20px;
}

.sk-btn-empty-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sk-navy);
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sk-btn-empty-home:hover {
  background: var(--sk-copper);
  color: #ffffff;
  text-decoration: none;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Ultrawide Screens (1920px) */
@media (min-width: 1441px) {
  .sk-category-hero {
    padding: 52px 0 54px;
  }
  .sk-category-title {
    font-size: 42px;
  }
  .sk-category-desc {
    font-size: 16px;
  }
  .sk-featured-title {
    font-size: 26px;
  }
}

/* Small Laptops (992px to 1199px) */
@media (max-width: 1199px) {
  .sk-category-hero {
    padding: 40px 0 42px;
    margin-bottom: 32px;
  }
  .sk-category-title {
    font-size: 34px;
  }
  .sk-featured-body {
    padding: 22px 22px;
  }
  .sk-featured-title {
    font-size: 22px;
  }
  .sk-articles-grid {
    gap: 18px;
  }
  .sk-grid-title {
    font-size: 15.5px;
    min-height: 42px;
  }
}

/* Tablets (768px to 991px) */
@media (max-width: 991px) {
  .sk-category-hero {
    padding: 36px 0 38px;
    margin-bottom: 28px;
  }
  .sk-category-title {
    font-size: 30px;
  }
  .sk-category-desc {
    font-size: 14px;
    margin-bottom: 14px;
  }
  .sk-featured-title {
    font-size: 21px;
  }
  .sk-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .sk-listing-main-content {
    margin-bottom: 36px;
  }
  .sidebar-right {
    margin-top: 20px;
  }
}

/* Mobile Devices (<= 767px) */
@media (max-width: 767px) {
  .sk-category-hero {
    padding: 30px 0 32px;
    margin-bottom: 24px;
  }
  .sk-breadcrumb-nav {
    font-size: 11.5px;
    margin-bottom: 14px;
  }
  .sk-hero-trishul-img {
    height: 24px;
    max-height: 24px;
  }
  .sk-crest-line {
    width: 32px;
  }
  .sk-category-title {
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 8px;
  }
  .sk-category-desc {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 14px;
  }
  .sk-category-badge {
    font-size: 11px;
    padding: 3px 12px;
  }
  .sk-featured-card {
    border-radius: 14px;
    margin-bottom: 26px;
  }
  .sk-featured-body {
    padding: 18px 16px 20px;
  }
  .sk-featured-title {
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .sk-featured-desc {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 16px;
  }
  .sk-subhead-title {
    font-size: 18px;
  }
  .sk-subhead-trishul {
    height: 20px;
  }
  /* Single column on mobile */
  .sk-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sk-article-grid-card {
    border-radius: 14px;
  }
  .sk-grid-body {
    padding: 16px 16px 16px;
  }
  .sk-grid-title {
    font-size: 16px;
    min-height: auto;
  }
  .sidebar-right {
    margin-top: 16px;
  }
}

/* Small Mobile (<= 430px) */
@media (max-width: 430px) {
  .sk-category-hero {
    padding: 26px 0 28px;
    margin-bottom: 20px;
  }
  .sk-category-title {
    font-size: 23px;
  }
  .sk-category-desc {
    font-size: 12.5px;
  }
  .sk-featured-title {
    font-size: 17.5px;
  }
}

/* Micro Mobile (<= 360px) */
@media (max-width: 360px) {
  .sk-category-hero {
    padding: 22px 0 24px;
  }
  .sk-category-title {
    font-size: 21px;
  }
  .sk-featured-body {
    padding: 14px 12px 16px;
  }
  .sk-featured-title {
    font-size: 16.5px;
  }
  .sk-grid-body {
    padding: 12px 12px 14px;
  }
  .sk-grid-title {
    font-size: 15px;
  }
}
