/* ═══════════════════════════════════════════════════════════════════
   PIVOT AIDE — BLOG MODULE STYLES (blog.css)
   Complements styles.css — Uses existing design tokens & typography
   ═══════════════════════════════════════════════════════════════════ */

/* ── HERO BANNER ── */
.blog-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 180px 0 120px 0;
  background: radial-gradient(circle at 50% 20%, rgba(70, 130, 180, 0.15), transparent 70%), var(--steel-700);
  border-bottom: 1px solid var(--border-light);
  overflow: visible;
  text-align: center;
  z-index: 20;
}

.blog-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 25;
}

.blog-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(216, 183, 74, 0.12);
  border: 1px solid rgba(216, 183, 74, 0.35);
  color: var(--yellow);
  padding: 8px 18px;
  border-radius: var(--pill-radius);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.blog-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
  animation: dotPulse 1.8s infinite ease-in-out;
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px var(--yellow);
  }
  50% {
    transform: scale(1.4);
    box-shadow: 0 0 18px var(--yellow), 0 0 30px rgba(216, 183, 74, 0.6);
  }
}

.blog-hero-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: var(--fw-black);
  color: var(--steel-100);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.blog-hero-title em {
  font-style: italic;
  font-family: var(--font-serif);
  background: linear-gradient(135deg, #ffffff 0%, var(--yellow) 50%, #fef08a 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s linear infinite;
}

@keyframes textShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.blog-hero-sub {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--steel-200);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.blog-search-box {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  transition: transform 0.3s ease;
  z-index: 30;
}

.blog-search-box:focus-within {
  transform: scale(1.02);
}

.blog-search-input {
  width: 100%;
  padding: 18px 24px 18px 54px;
  background: rgba(21, 34, 50, 0.75);
  border: 1px solid rgba(216, 183, 74, 0.3);
  border-radius: 16px;
  color: var(--steel-100);
  font-size: 16px;
  font-family: var(--font-ui);
  outline: none;
  backdrop-filter: blur(14px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-search-input:focus {
  border-color: var(--yellow);
  background: rgba(21, 34, 50, 0.95);
  box-shadow: 0 0 25px rgba(216, 183, 74, 0.35), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.blog-search-input::placeholder {
  color: var(--steel-300);
  transition: opacity 0.3s ease;
}

.blog-search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFE885;
  filter: drop-shadow(0 0 6px rgba(255, 232, 133, 0.7));
  pointer-events: none;
  transition: all 0.3s ease;
}

.blog-search-box:focus-within .blog-search-icon {
  color: #FFFFFF;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
  transform: translateY(-50%) scale(1.18);
}

/* ── SEARCH DROPDOWN SUGGESTIONS MENU ── */
.search-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(18, 30, 45, 0.98);
  border: 1px solid rgba(216, 183, 74, 0.4);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(216, 183, 74, 0.2);
  max-height: 380px;
  overflow-y: auto;
  z-index: 99999;
  display: none;
  padding: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 183, 74, 0.4) rgba(15, 25, 38, 0.5);
}

.search-dropdown-menu.active {
  display: block;
  animation: dropdownSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dropdownSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-dropdown-section-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  padding: 8px 12px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.search-dropdown-item:hover,
.search-dropdown-item.focused {
  background: rgba(216, 183, 74, 0.15);
  transform: translateX(4px);
}

.search-dropdown-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0b1d39;
}

.search-dropdown-info {
  flex-grow: 1;
  min-width: 0;
  text-align: left;
}

.search-dropdown-title {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.search-dropdown-meta {
  color: #94a3b8;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-dropdown-badge {
  background: rgba(32, 78, 65, 0.7);
  color: #20e382;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.search-dropdown-empty {
  padding: 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.search-dropdown-footer {
  padding: 10px 14px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  text-align: center;
}

.search-dropdown-view-all {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.search-dropdown-view-all:hover {
  gap: 10px;
}

/* ── CATEGORIES BAR (STATIC) ── */
.blog-categories-wrapper {
  background: var(--steel-700);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 70px;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.categories-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 4px;
}

.category-pill {
  background: rgba(29, 59, 85, 0.5);
  border: 1px solid var(--border-light);
  color: var(--steel-200);
  padding: 9px 20px;
  border-radius: var(--pill-radius);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  animation: pillPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.category-pill:nth-child(1) { animation-delay: 0.05s; }
.category-pill:nth-child(2) { animation-delay: 0.1s; }
.category-pill:nth-child(3) { animation-delay: 0.15s; }
.category-pill:nth-child(4) { animation-delay: 0.2s; }
.category-pill:nth-child(5) { animation-delay: 0.25s; }
.category-pill:nth-child(6) { animation-delay: 0.3s; }
.category-pill:nth-child(7) { animation-delay: 0.35s; }
.category-pill:nth-child(8) { animation-delay: 0.4s; }

@keyframes pillPop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.category-pill:hover {
  background: rgba(216, 183, 74, 0.18);
  color: var(--yellow);
  border-color: var(--yellow);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 20px rgba(216, 183, 74, 0.25);
}

.category-pill.active {
  background: linear-gradient(135deg, var(--yellow) 0%, #e5c158 100%);
  color: var(--steel-700);
  border-color: var(--yellow);
  font-weight: 700;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 20px rgba(216, 183, 74, 0.5), 0 6px 18px rgba(216, 183, 74, 0.35);
  animation: activePulse 2.5s infinite ease-in-out;
}

.category-pill:active {
  transform: scale(0.94) !important;
}

@keyframes activePulse {
  0%, 100% {
    box-shadow: 0 0 16px rgba(216, 183, 74, 0.5), 0 6px 18px rgba(216, 183, 74, 0.35);
  }
  50% {
    box-shadow: 0 0 26px rgba(216, 183, 74, 0.75), 0 8px 24px rgba(216, 183, 74, 0.5);
  }
}

/* ── FEATURED POST SECTION ── */
.featured-section {
  padding: 50px 0 30px 0;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  background: #152232;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--card-radius);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  animation: featuredEntrance 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.featured-card:hover {
  border-color: rgba(216, 183, 74, 0.5);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(216, 183, 74, 0.2);
}

@keyframes featuredEntrance {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.featured-img-wrap {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover .featured-img {
  transform: scale(1.06);
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, var(--yellow) 0%, #e5c158 100%);
  color: var(--steel-700);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--pill-radius);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 16px rgba(216, 183, 74, 0.4);
  z-index: 2;
  animation: badgeGlowPulse 2.4s infinite ease-in-out;
}

@keyframes badgeGlowPulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(216, 183, 74, 0.4);
  }
  50% {
    box-shadow: 0 0 24px rgba(216, 183, 74, 0.75), 0 4px 20px rgba(216, 183, 74, 0.5);
  }
}

.featured-content {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-category {
  color: var(--steel-300);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.featured-title {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 700;
  color: var(--steel-100);
  line-height: 1.25;
  margin-bottom: 16px;
}

.featured-excerpt {
  color: var(--steel-200);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: 24px;
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), #e5c158);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-700);
  font-weight: 800;
  font-size: 17px;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(216, 183, 74, 0.3);
}

.featured-card:hover .author-avatar {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 0 20px rgba(216, 183, 74, 0.6);
}

.featured-content .btn-primary {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.featured-content .btn-primary:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(216, 183, 74, 0.45);
}

.author-info strong {
  display: block;
  color: var(--steel-100);
  font-size: var(--text-sm);
}

.author-info span {
  color: var(--steel-300);
  font-size: var(--text-xs);
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--yellow);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: gap 0.25s ease;
}

.read-more-btn:hover {
  gap: 14px;
}

/* ── MAIN LAYOUT (GRID + SIDEBAR) ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 40px 0 100px 0;
}

/* ── BLOG CARDS GRID ── */
/* ── BLOG CARDS GRID (NEW DESIGN MATCHING REFERENCE IMAGE) ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: #152232;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.blog-card:hover {
  border-color: rgba(216, 183, 74, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.card-img-wrap {
  position: relative;
  height: 210px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1d39;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-body {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.card-author-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #e2e8f0;
}

.card-author-inline svg {
  color: #94a3b8;
}

.card-cat-pill {
  background: rgba(30, 70, 60, 0.7);
  border: 1px solid rgba(34, 208, 122, 0.3);
  color: #22d07a;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: var(--yellow);
}

.card-excerpt {
  font-size: 15px;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

.card-read-more {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.card-read-more:hover {
  color: var(--yellow);
  gap: 10px;
}

.card-share-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.card-icon-btn:hover {
  background: var(--yellow);
  color: var(--steel-700);
  border-color: var(--yellow);
  transform: translateY(-2px);
}

.author-mini-name {
  font-size: var(--text-xs);
  color: var(--steel-200);
  font-weight: 500;
}

/* ── SIDEBAR WIDGETS ── */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  padding: 28px;
  backdrop-filter: blur(10px);
}

.widget-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--steel-100);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.categories-list {
  list-style: none;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-light);
  color: var(--steel-200);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-item:last-child {
  border-bottom: none;
}

.category-item:hover {
  color: var(--yellow);
  padding-left: 6px;
}

.category-count {
  background: rgba(29, 59, 85, 0.8);
  border: 1px solid var(--border-light);
  padding: 2px 8px;
  border-radius: var(--pill-radius);
  font-size: 11px;
  color: var(--steel-300);
}

.recent-post-item {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: center;
  text-decoration: none;
}

.recent-post-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-post-info h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--steel-100);
  line-height: 1.3;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.recent-post-item:hover h4 {
  color: var(--yellow);
}

.recent-post-date {
  font-size: var(--text-xs);
  color: var(--steel-300);
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge {
  background: rgba(29, 59, 85, 0.6);
  border: 1px solid var(--border-light);
  color: var(--steel-200);
  font-size: var(--text-xs);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tag-badge:hover {
  background: var(--yellow);
  color: var(--steel-700);
  border-color: var(--yellow);
}

.cta-widget {
  background: linear-gradient(135deg, rgba(29, 59, 85, 0.9), rgba(11, 29, 57, 0.95));
  border: 1px solid var(--yellow);
  text-align: center;
}

.cta-widget h3 {
  font-size: 20px;
  color: var(--steel-100);
  margin-bottom: 12px;
}

.cta-widget p {
  font-size: var(--text-xs);
  color: var(--steel-200);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ── PAGINATION ANIMATIONS ── */
.blog-pagination-wrapper {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 24px;
  background: rgba(21, 34, 50, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  animation: paginationContainerFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes paginationContainerFade {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.pagination-stats {
  font-size: var(--text-sm);
  color: var(--steel-200);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: statsFadeIn 0.5s ease both;
}

.pagination-stats::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}

@keyframes statsFadeIn {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(29, 59, 85, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--steel-100);
  font-weight: 600;
  font-size: var(--text-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: pageBtnPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes pageBtnPop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-btn:nth-child(1) { animation-delay: 0.05s; }
.page-btn:nth-child(2) { animation-delay: 0.1s; }
.page-btn:nth-child(3) { animation-delay: 0.15s; }
.page-btn:nth-child(4) { animation-delay: 0.2s; }
.page-btn:nth-child(5) { animation-delay: 0.25s; }
.page-btn:nth-child(6) { animation-delay: 0.3s; }
.page-btn:nth-child(7) { animation-delay: 0.35s; }
.page-btn:nth-child(8) { animation-delay: 0.4s; }

.page-btn:hover:not(:disabled) {
  background: rgba(216, 183, 74, 0.2);
  color: var(--yellow);
  border-color: var(--yellow);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 18px rgba(216, 183, 74, 0.25);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--yellow) 0%, #e5c158 100%);
  color: var(--steel-700);
  border-color: var(--yellow);
  font-weight: 800;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 0 22px rgba(216, 183, 74, 0.6), 0 6px 18px rgba(216, 183, 74, 0.4);
  animation: activePageGlow 2.4s infinite ease-in-out;
}

@keyframes activePageGlow {
  0%, 100% {
    box-shadow: 0 0 16px rgba(216, 183, 74, 0.5), 0 6px 18px rgba(216, 183, 74, 0.35);
  }
  50% {
    box-shadow: 0 0 28px rgba(216, 183, 74, 0.8), 0 8px 24px rgba(216, 183, 74, 0.55);
  }
}

.page-btn:active:not(:disabled) {
  transform: scale(0.92) !important;
}

.page-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  background: rgba(29, 59, 85, 0.2);
  border-color: transparent;
}

.page-btn-wide {
  width: auto;
  padding: 0 18px;
  gap: 6px;
}

.page-btn-wide:hover:not(:disabled) {
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════════
   BLOG DETAILS PAGE SPECIFIC STYLES
   ═══════════════════════════════════════════════════════════════════ */

.article-hero {
  padding: 130px 0 50px 0;
  background: var(--steel-700);
  border-bottom: 1px solid var(--border-light);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  color: var(--steel-300);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--steel-200);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--yellow);
}

.article-title-main {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: var(--fw-black);
  color: var(--steel-100);
  line-height: 1.15;
  margin-bottom: 20px;
}

.article-lead-text {
  font-size: var(--text-lg);
  color: var(--steel-200);
  line-height: 1.6;
  max-width: 860px;
  margin-bottom: 30px;
}

.article-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.author-meta-detail {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-large-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--steel-300), var(--yellow));
  color: var(--steel-700);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-details-text strong {
  color: var(--steel-100);
  font-size: var(--text-base);
  display: block;
}

.author-details-text span {
  color: var(--steel-300);
  font-size: var(--text-xs);
}

.article-meta-right {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--steel-300);
  font-size: var(--text-xs);
}

/* ── SOCIAL SHARE BUTTONS ── */
.share-bar-container {
  margin: 30px 0;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.share-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-buttons-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: auto !important;
  height: auto !important;
  min-height: 38px !important;
  padding: 8px 18px !important;
  border-radius: 20px !important;
  background: rgba(29, 59, 85, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
  font-family: var(--font-ui) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  white-space: nowrap !important;
}

.share-btn:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.share-btn.linkedin:hover { background: #0077b5 !important; border-color: #0077b5 !important; color: #fff !important; }
.share-btn.facebook:hover { background: #1877f2 !important; border-color: #1877f2 !important; color: #fff !important; }
.share-btn.twitter:hover { background: #1da1f2 !important; border-color: #1da1f2 !important; color: #fff !important; }
.share-btn.whatsapp:hover { background: #25d366 !important; border-color: #25d366 !important; color: #fff !important; }
.share-btn.telegram:hover { background: #0088cc !important; border-color: #0088cc !important; color: #fff !important; }
.share-btn.pinterest:hover { background: #bd081c !important; border-color: #bd081c !important; color: #fff !important; }
.share-btn.reddit:hover { background: #ff4500 !important; border-color: #ff4500 !important; color: #fff !important; }
.share-btn.email:hover { background: var(--steel-400) !important; border-color: var(--steel-400) !important; color: #fff !important; }
.share-btn.copylink {
  background: rgba(234, 228, 47, 0.15) !important;
  border-color: rgba(234, 228, 47, 0.4) !important;
  color: var(--yellow) !important;
}
.share-btn.copylink:hover {
  background: var(--yellow) !important;
  border-color: var(--yellow) !important;
  color: #0b1c2b !important;
}

/* ── ARTICLE BODY CONTENT ── */
.article-featured-banner {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 20px;
  margin: 40px 0;
  border: 1px solid var(--border-light);
}

.article-content {
  color: var(--steel-200);
  font-size: 18px;
  line-height: 1.75;
  font-family: var(--font-ui);
}

.article-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--steel-100);
  margin: 44px 0 20px 0;
  font-weight: 700;
  line-height: 1.25;
}

.article-content h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  color: var(--steel-100);
  margin: 32px 0 16px 0;
  font-weight: 600;
}

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

.article-content ul,
.article-content ol {
  margin: 0 0 28px 24px;
}

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

.article-quote {
  border-left: 4px solid var(--yellow);
  background: rgba(29, 59, 85, 0.4);
  padding: 24px 30px;
  border-radius: 0 16px 16px 0;
  margin: 36px 0;
  font-style: italic;
  font-size: 20px;
  color: var(--steel-100);
}

.article-quote footer {
  font-style: normal;
  font-size: var(--text-xs);
  color: var(--yellow);
  margin-top: 12px;
  font-weight: 600;
}

/* ── COMMENT SECTION ── */
.comments-container {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.comment-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  padding: 32px;
  margin-bottom: 40px;
}

.comment-form h3 {
  font-size: 20px;
  color: var(--steel-100);
  margin-bottom: 20px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.comment-input,
.comment-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(11, 29, 57, 0.6);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--steel-100);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color 0.2s ease;
}

.comment-input:focus,
.comment-textarea:focus {
  border-color: var(--yellow);
}

.comment-textarea {
  height: 120px;
  resize: vertical;
  margin-bottom: 20px;
}

.comments-list {
  display: flex;
  flex-direction: flex-direction;
  flex-direction: column;
  gap: 20px;
}

.comment-card {
  background: rgba(29, 59, 85, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.comment-author-name {
  font-weight: 600;
  color: var(--steel-100);
  font-size: var(--text-sm);
}

.comment-date {
  font-size: var(--text-xs);
  color: var(--steel-300);
}

.comment-text {
  font-size: var(--text-sm);
  color: var(--steel-200);
  line-height: 1.5;
}

/* ── RESPONSIVE MEDIA QUERIES ── */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-content {
    padding: 30px;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 130px 0 70px 0;
    min-height: 45vh;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .share-bar-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   BLOG PAGE ANIMATIONS & INTERACTIVE MOTION EFFECTS
   ═══════════════════════════════════════════════════════════════════ */

/* Hero Entrance Animations */
.blog-eyebrow {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.blog-hero-title {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.blog-hero-sub {
  animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.blog-search-box {
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Category Pills Bounce & Active Glow */
.category-pill {
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.category-pill:active {
  transform: scale(0.94);
}

/* Featured Post Hover & Reveal Animation */
.featured-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: cardFadeScale 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.featured-card:hover {
  border-color: rgba(216, 183, 74, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(216, 183, 74, 0.15);
  transform: translateY(-6px);
}

.featured-img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-card:hover .featured-img {
  transform: scale(1.05);
}

@keyframes cardFadeScale {
  0% {
    opacity: 0;
    transform: translateY(35px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Blog Cards Grid Entrance & Staggered Reveal */
.blog-card {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.blog-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-card:hover {
  border-color: rgba(216, 183, 74, 0.5) !important;
  transform: translateY(-8px) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(216, 183, 74, 0.12) !important;
}

.blog-card:hover .card-img {
  transform: scale(1.07);
}

/* Card Button & Share Icon Micro-Animations */
.card-read-more {
  transition: color 0.25s ease, gap 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-read-more:hover {
  color: var(--yellow);
  gap: 12px;
}

.card-icon-btn {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-icon-btn:hover {
  background: var(--yellow);
  color: var(--steel-700);
  border-color: var(--yellow);
  transform: translateY(-3px) scale(1.12);
  box-shadow: 0 6px 16px rgba(216, 183, 74, 0.4);
}

/* Sidebar Widgets Micro-Animations */
.sidebar-widget {
  transition: all 0.3s ease;
}

.recent-post-item {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.recent-post-item:hover {
  transform: translateX(6px);
  background: rgba(29, 59, 85, 0.4);
}

.recent-post-thumb {
  transition: transform 0.4s ease;
}

.recent-post-item:hover .recent-post-thumb {
  transform: scale(1.08);
}

.tag-badge {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tag-badge:hover {
  background: var(--yellow);
  color: var(--steel-700);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(216, 183, 74, 0.3);
}

.category-item {
  transition: all 0.25s ease;
}

.category-item:hover {
  padding-left: 14px;
  color: var(--yellow);
}

.category-count {
  transition: all 0.25s ease;
}

.category-item:hover .category-count {
  background: var(--yellow);
  color: var(--steel-700);
}

/* Pagination Control Bounce */
.page-btn {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.05);
}

.page-btn:active:not(:disabled) {
  transform: scale(0.95);
}

/* ═══════════════════════════════════════════════════════════════════
   UNIVERSAL SCROLL-REVEAL SYSTEM (SCROLL UP & DOWN ANIMATIONS)
   ═══════════════════════════════════════════════════════════════════ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.91) translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal-scale.in-view {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* -------------------------------------------------------------------
   BLOG DETAILS PAGE — PRECISE CONTAINER & TYPOGRAPHY ENHANCEMENTS
   ------------------------------------------------------------------- */
.blog-detail-container {
  max-width: 960px !important;
  margin: 0 auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.article-header {
  margin-bottom: 36px;
}

.article-title {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem) !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  line-height: 1.25 !important;
  margin-bottom: 20px !important;
  letter-spacing: -0.02em !important;
}

.article-lead {
  font-size: 1.18rem !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.7 !important;
  margin-bottom: 28px !important;
}

/* Featured Image Banner Container */
.article-banner-wrap {
  width: 100% !important;
  max-height: 480px !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  margin-bottom: 48px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5) !important;
  background: #0b1c2b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.article-banner-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Main Article Content Body Typography */
.article-body-content {
  font-size: 1.08rem !important;
  line-height: 1.85 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  margin-bottom: 60px !important;
}

.article-body-content h2 {
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  margin-top: 44px !important;
  margin-bottom: 18px !important;
  font-family: var(--font-ui) !important;
  border-left: 4px solid var(--yellow) !important;
  padding-left: 14px !important;
  line-height: 1.3 !important;
}

.article-body-content p {
  font-size: 1.05rem !important;
  line-height: 1.85 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 24px !important;
}

.article-body-content ul,
.article-body-content ol {
  margin-bottom: 28px !important;
  padding-left: 24px !important;
  font-size: 1.02rem !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.article-body-content li {
  margin-bottom: 12px !important;
}

.article-body-content strong {
  color: var(--yellow) !important;
  font-weight: 700 !important;
}

.article-quote {
  background: rgba(15, 34, 53, 0.85) !important;
  border-left: 4px solid var(--yellow) !important;
  padding: 24px 28px !important;
  border-radius: 0 12px 12px 0 !important;
  font-style: italic !important;
  font-size: 1.1rem !important;
  color: rgba(255, 255, 255, 0.95) !important;
  margin: 36px 0 !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
}

.article-quote footer {
  font-style: normal !important;
  font-size: 0.88rem !important;
  color: var(--yellow) !important;
  margin-top: 12px !important;
  font-weight: 600 !important;
}

/* Related Grid 3 Cards Layout */
#relatedGrid.blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

@media (max-width: 900px) {
  #relatedGrid.blog-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   BLOG MOBILE & TABLET RESPONSIVE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  /* Sticky Category Bar - Mobile Touch Scrollable Pills */
  .blog-categories-wrapper {
    top: 60px;
    padding: 10px 0;
  }

  .blog-categories-wrapper .container {
    padding-left: 0;
    padding-right: 0;
  }

  .categories-scroll {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding: 4px 16px 8px 16px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE / Edge */
  }

  .categories-scroll::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari/Edge */
  }

  .category-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 8px 16px;
    font-size: 0.85rem;
    animation: none;
  }

  /* Hero Banner Mobile Adjustments */
  .blog-hero {
    padding: 100px 16px 40px 16px;
    min-height: auto;
  }

  .blog-hero-title {
    font-size: 1.85rem !important;
    line-height: 1.25;
  }

  .blog-hero-sub {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .blog-search-box {
    width: 100%;
    max-width: 100%;
  }

  .blog-search-input {
    font-size: 14px;
    padding: 12px 16px 12px 44px;
  }

  /* Featured Card Mobile Stack */
  .featured-section {
    padding: 24px 0 20px 0;
  }

  .featured-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .featured-img-wrap {
    min-height: 200px;
    height: 200px;
  }

  .featured-content {
    padding: 24px 20px;
  }

  .featured-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .featured-excerpt {
    font-size: 0.9rem;
    margin-bottom: 16px;
  }

  .author-meta {
    margin-bottom: 16px;
  }

  /* Blog Layout & Grid Mobile Responsiveness */
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 24px 0 60px 0;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .card-img-wrap {
    height: 190px;
  }

  .blog-pagination-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }

  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .blog-sidebar {
    gap: 24px;
  }

  .sidebar-widget {
    padding: 20px;
  }

  .article-title {
    font-size: 1.75rem !important;
  }

  .article-lead {
    font-size: 1rem !important;
  }

  .article-banner-wrap {
    max-height: 240px !important;
    margin-bottom: 28px !important;
  }
}

