/* ==========================================================================
   SHRAMIK PORTAL - BLOGS & BLOG DETAIL UPGRADE STYLES
   ========================================================================== */

:root {
  --sh-bl-primary: #0b2545;
  --sh-bl-primary-dark: #07192f;
  --sh-bl-primary-light: #134074;
  --sh-bl-accent: #e06d10;
  --sh-bl-accent-hover: #c45a05;
  --sh-bl-accent-light: #fff3ea;
  --sh-bl-gold: #ffb703;
  --sh-bl-bg-soft: #f4f6fa;
  --sh-bl-border: #e2e8f0;
  --sh-bl-text: #0f172a;
  --sh-bl-text-muted: #64748b;
  --sh-bl-radius-sm: 10px;
  --sh-bl-radius-md: 16px;
  --sh-bl-radius-lg: 20px;
  --sh-bl-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --sh-bl-shadow-md: 0 14px 28px -8px rgba(11, 37, 69, 0.14);
}

/* --------------------------------------------------------------------------
   1. SHARED BLOG SECTION & CARD STYLES (HOME + BLOGS PAGE)
   -------------------------------------------------------------------------- */
.sh-home-blogs-section {
  padding: 65px 0 70px;
  background-color: #ffffff;
  border-top: 1px solid var(--sh-bl-border);
}

.sh-blogs-list-section {
  padding: 50px 0 75px;
  background-color: var(--sh-bl-bg-soft);
}

.sh-blog-card {
  background: #ffffff;
  border: 1px solid var(--sh-bl-border);
  border-radius: var(--sh-bl-radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--sh-bl-shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.sh-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-bl-shadow-md);
  border-color: rgba(224, 109, 16, 0.45);
}

.sh-blog-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.sh-blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.sh-blog-card:hover .sh-blog-card-media img {
  transform: scale(1.05);
}

.sh-blog-tag-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 37, 69, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--sh-bl-gold);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 183, 3, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.sh-blog-card-body {
  padding: 20px 22px 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.sh-blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--sh-bl-text-muted);
  margin-bottom: 10px;
}

.sh-blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sh-blog-meta-item i {
  color: var(--sh-bl-accent);
  font-size: 11.5px;
}

.sh-blog-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 10px;
  color: var(--sh-bl-primary);
}

.sh-blog-card-title a {
  color: var(--sh-bl-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sh-blog-card-title a:hover {
  color: var(--sh-bl-accent);
}

.sh-blog-card-excerpt {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--sh-bl-text-muted);
  margin-bottom: 0;
  flex-grow: 1;
}

.sh-blog-card-footer {
  padding: 13px 22px;
  background: #f8fafc;
  border-top: 1px solid var(--sh-bl-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sh-blog-author {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sh-bl-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sh-blog-author i {
  color: var(--sh-bl-accent);
}

.sh-blog-readmore {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sh-bl-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: gap 0.2s ease, color 0.2s ease;
}

.sh-blog-readmore:hover {
  color: var(--sh-bl-primary);
  gap: 9px;
}

/* --------------------------------------------------------------------------
   2. BLOGS HERO & TOOLBAR
   -------------------------------------------------------------------------- */
.sh-blogs-hero {
  position: relative;
  background: linear-gradient(135deg, #07192f 0%, #0b2545 60%, #134074 100%);
  color: #ffffff;
  padding: 50px 0 60px;
  overflow: hidden;
  border-bottom: 3px solid var(--sh-bl-accent);
}

.sh-blogs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(224, 109, 16, 0.22) 0%, transparent 60%),
              radial-gradient(circle at 15% 85%, rgba(255, 183, 3, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.sh-blogs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.sh-blogs-badge i {
  color: var(--sh-bl-gold);
}

.sh-blogs-hero-title {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 12px;
}

.sh-blogs-hero-title span {
  color: var(--sh-bl-gold);
}

.sh-blogs-hero-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 780px;
  margin: 0 auto 18px;
  line-height: 1.65;
}

.sh-blog-toolbar {
  background: #ffffff;
  border: 1px solid var(--sh-bl-border);
  border-radius: var(--sh-bl-radius-md);
  padding: 20px 22px;
  box-shadow: var(--sh-bl-shadow-sm);
  margin-bottom: 32px;
}

.sh-blog-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.sh-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 25px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  background: #f1f5f9;
  color: var(--sh-bl-primary);
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.sh-filter-pill:hover,
.sh-filter-pill.active {
  background: var(--sh-bl-primary);
  color: #ffffff;
  border-color: var(--sh-bl-primary);
}

.sh-filter-pill.active {
  box-shadow: 0 4px 12px rgba(11, 37, 69, 0.2);
}

/* --------------------------------------------------------------------------
   3. BLOG DETAIL PAGE
   -------------------------------------------------------------------------- */
.sh-blog-detail-hero {
  position: relative;
  background: linear-gradient(135deg, #07192f 0%, #0b2545 65%, #134074 100%);
  color: #ffffff;
  padding: 45px 0 55px;
  border-bottom: 3px solid var(--sh-bl-accent);
  overflow: hidden;
}

.sh-blog-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(224, 109, 16, 0.22) 0%, transparent 55%);
  pointer-events: none;
}

.sh-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(224, 109, 16, 0.22);
  color: var(--sh-bl-gold);
  border: 1px solid rgba(255, 183, 3, 0.4);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.sh-detail-title {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 16px;
}

.sh-detail-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.sh-detail-meta-bar span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sh-detail-meta-bar i {
  color: var(--sh-bl-gold);
}

.sh-blog-detail-body-section {
  padding: 45px 0 70px;
  background: var(--sh-bl-bg-soft);
}

.sh-article-card {
  background: #ffffff;
  border: 1px solid var(--sh-bl-border);
  border-radius: var(--sh-bl-radius-lg);
  overflow: hidden;
  box-shadow: var(--sh-bl-shadow-sm);
}

.sh-article-cover {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--sh-bl-border);
}

.sh-article-content {
  padding: 32px 34px;
  color: #1e293b;
  font-size: 15.5px;
  line-height: 1.85;
}

.sh-article-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sh-bl-primary);
  margin: 26px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.sh-article-content h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--sh-bl-primary-light);
  margin: 20px 0 10px;
}

.sh-article-content p {
  margin-bottom: 15px;
}

.sh-article-content ul,
.sh-article-content ol {
  margin: 12px 0 18px;
  padding-left: 22px;
}

.sh-article-content li {
  margin-bottom: 9px;
}

.sh-article-content a {
  color: var(--sh-bl-accent);
  font-weight: 600;
  text-decoration: underline;
}

.sh-article-content blockquote,
.sh-article-content .blockquote {
  background: var(--sh-bl-accent-light);
  border-left: 4px solid var(--sh-bl-accent);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 22px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--sh-bl-primary);
}

.sh-article-content blockquote p:last-child,
.sh-article-content .blockquote p:last-child {
  margin-bottom: 0;
}

.sh-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.sh-article-footer-bar {
  padding: 20px 34px;
  background: #f8fafc;
  border-top: 1px solid var(--sh-bl-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Sidebar */
.sh-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--sh-bl-border);
  border-radius: var(--sh-bl-radius-md);
  padding: 22px;
  box-shadow: var(--sh-bl-shadow-sm);
  margin-bottom: 24px;
}

.sh-sidebar-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--sh-bl-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sh-sidebar-title i {
  color: var(--sh-bl-accent);
}

.sh-recent-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.sh-recent-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sh-recent-post-item:hover {
  transform: translateX(3px);
}

.sh-recent-thumb {
  width: 74px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--sh-bl-border);
}

.sh-recent-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--sh-bl-primary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.sh-recent-post-item:hover .sh-recent-title {
  color: var(--sh-bl-accent);
}

.sh-recent-date {
  font-size: 11.5px;
  color: var(--sh-bl-text-muted);
}

.sh-sidebar-cta {
  background: linear-gradient(135deg, #07192f 0%, #0b2545 65%, #134074 100%);
  color: #ffffff;
  border-radius: var(--sh-bl-radius-md);
  padding: 24px;
  box-shadow: var(--sh-bl-shadow-md);
}

.sh-sidebar-cta h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.sh-sidebar-cta p {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

@media (max-width: 767.98px) {
  .sh-article-content {
    padding: 22px 18px;
    font-size: 14.5px;
  }

  .sh-article-footer-bar {
    padding: 16px 18px;
  }
}
