/* ===== PREMIUM BLOG STYLES — Navy (#0c172a) & Yellow (#ffc400) Theme ===== */

:root {
  --blog-primary: #0c172a;
  --blog-primary-dark: #070e1b;
  --blog-accent: #ffc400;
  --blog-accent-hover: #e6b000;
  --blog-bg: #f5f7fb;
  --blog-card-bg: #ffffff;
  --blog-text-main: #101827;
  --blog-text-muted: #677085;
  --line: #e5e9f2;
}

body {
  background-color: var(--blog-bg);
  color: var(--blog-text-main);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

/* Category & Tag badges */
.blog-card-badge, .blog-post-cat, .blog-tag {
  background: var(--blog-accent) !important;
  color: #101827 !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  padding: 5px 14px !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 12px rgba(255, 196, 0, 0.25) !important;
}

/* Sidebar & Layout */
.blog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  margin-bottom: 60px;
}

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-widget {
  background: var(--blog-card-bg);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(12, 23, 42, 0.05);
  border: 1.5px solid var(--line);
}

.blog-widget-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--blog-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--blog-accent);
}

/* Search Box */
.blog-search-box {
  display: flex;
  gap: 8px;
}

.blog-search-box input {
  flex-grow: 1;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-search-box input:focus {
  border-color: var(--blog-accent);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.2);
}

.blog-search-box button {
  background: var(--blog-accent);
  color: #101827;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.blog-search-box button:hover {
  background: var(--blog-accent-hover);
  transform: translateY(-1px);
}

/* Category Sidebar Links */
.blog-sidebar-cats {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-sidebar-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  background: #f8fafc;
  border-radius: 12px;
  color: var(--blog-text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.blog-sidebar-cats a:hover, .blog-sidebar-cats a.active {
  background: var(--blog-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(12, 23, 42, 0.15) !important;
}

.blog-sidebar-cats a .badge {
  background: #e2e8f0;
  color: var(--blog-text-muted);
  font-size: 0.75rem;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 800;
}

.blog-sidebar-cats a:hover .badge, .blog-sidebar-cats a.active .badge {
  background: var(--blog-accent) !important;
  color: #101827 !important;
}

/* Recent Posts Sidebar */
.blog-sidebar-recent {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-sidebar-recent-item {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s;
}

.blog-sidebar-recent-item:hover {
  transform: translateX(4px);
}

.blog-sidebar-recent-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-sidebar-recent-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--blog-text-main);
  line-height: 1.3;
}

.blog-sidebar-recent-date {
  font-size: 0.75rem;
  color: var(--blog-text-muted);
  margin-top: 2px;
  display: block;
}

/* Blog Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.blog-card {
  position: relative;
  background: var(--blog-card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(12, 23, 42, 0.05);
  border: 1.5px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(12, 23, 42, 0.12);
  border-color: var(--blog-accent);
}

.blog-card-image {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.blog-card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 0.78rem;
  color: var(--blog-text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  font-weight: 600;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.blog-card-title a {
  color: var(--blog-text-main);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card-title a:hover {
  color: #1268d8;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--blog-text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1268d8;
  font-weight: 850;
  font-size: 0.85rem;
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}

.blog-card-link:hover {
  gap: 10px;
  color: var(--blog-primary);
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.blog-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--blog-card-bg);
  color: var(--blog-text-main);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.blog-page-btn:hover {
  border-color: var(--blog-primary);
  background: var(--blog-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.blog-page-btn.active {
  background: var(--blog-accent) !important;
  color: #101827 !important;
  border-color: var(--blog-accent) !important;
  box-shadow: 0 6px 16px rgba(255, 196, 0, 0.3) !important;
}

/* Single Post View */
.blog-post {
  background: var(--blog-card-bg);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 14px 36px rgba(12, 23, 42, 0.06);
  border: 1.5px solid var(--line);
}

.blog-post-header h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin: 16px 0;
  color: var(--blog-primary);
}

.blog-post-featured-image {
  width: 100%;
  height: 420px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  margin-bottom: 36px;
  box-shadow: 0 12px 30px rgba(12, 23, 42, 0.1);
}

.blog-post-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #27303f;
}

.blog-post-body p {
  margin-bottom: 20px;
}

.blog-post-body h2, .blog-post-body h3 {
  color: var(--blog-primary);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 32px 0 16px;
}

.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blog-primary);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 24px;
  transition: gap 0.2s;
}

.blog-post-back:hover {
  gap: 12px;
  color: var(--blog-accent);
}


/* ===== PREMIUM CLEAN NAVY HERO ===== */
.blog-premium-hero {
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(255, 196, 0, 0.12), transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(18, 104, 216, 0.15), transparent 45%),
              linear-gradient(135deg, #070e1b 0%, #0c172a 60%, #16243b 100%);
  color: #ffffff;
  padding: 56px 30px;
  border-radius: 24px;
  margin-bottom: 40px;
  box-shadow: 0 20px 50px rgba(12, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.blog-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blog-accent);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.blog-hero-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 14px;
}

.blog-hero-title span {
  color: var(--blog-accent);
}

.blog-hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-bottom: 30px;
}

.blog-hero-search {
  display: flex;
  gap: 10px;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
  max-width: 620px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .blog-hero-search {
    flex-direction: column;
    border-radius: 20px;
    padding: 12px;
  }
}

.blog-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  padding: 0 16px;
}

.blog-search-input-wrap .search-icon {
  color: #677085;
  font-size: 1.1rem;
}

.blog-search-input-wrap input {
  border: 0;
  outline: 0;
  width: 100%;
  height: 48px;
  font-size: 0.95rem;
  color: #101827;
  background: transparent;
}

.blog-search-btn {
  background: var(--blog-accent);
  color: #101827;
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  min-height: 48px;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 196, 0, 0.4);
}
