/**
 * Gameosophy - Modern Game Development Blog & Publication Stylesheet
 * Brand-aligned, developer-focused, fully responsive & performant.
 */

:root {
  --gm-blog-primary: #6a11cb;
  --gm-blog-primary-end: #2575fc;
  --gm-blog-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  --gm-blog-gradient-hover: linear-gradient(135deg, #590ec0 0%, #1d65e0 100%);
  --gm-blog-dark-bg: #0b0f19;
  --gm-blog-dark-surface: #131b2e;
  --gm-blog-dark-card: #182238;
  --gm-blog-text-dark: #0f172a;
  --gm-blog-text-muted: #64748b;
  --gm-blog-text-sub: #94a3b8;
  --gm-blog-border: #e2e8f0;
  --gm-blog-border-subtle: #f1f5f9;
  --gm-blog-bg-soft: #f8fafc;
  --gm-blog-radius-sm: 8px;
  --gm-blog-radius-md: 12px;
  --gm-blog-radius-lg: 16px;
  --gm-blog-radius-xl: 20px;
  --gm-blog-radius-pill: 9999px;
  --gm-blog-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --gm-blog-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --gm-blog-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.09);
  --gm-blog-shadow-glow: 0 8px 25px rgba(106, 17, 203, 0.28);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.gm-blog-hero-section {
  position: relative;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(99, 102, 241, 0.22), transparent 70%),
              radial-gradient(800px 400px at 80% 30%, rgba(37, 117, 252, 0.15), transparent 60%),
              linear-gradient(180deg, #090d16 0%, #0f172a 100%);
  padding: 96px 0 64px 0;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gm-blog-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.gm-blog-hero-container {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.gm-blog-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--gm-blog-radius-pill);
  font-size: 12.5px;
  color: var(--gm-blog-text-sub);
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.gm-blog-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.gm-blog-breadcrumb a:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

.gm-blog-breadcrumb .sep {
  opacity: 0.4;
}

.gm-blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(106, 17, 203, 0.25);
  border: 1px solid rgba(165, 180, 252, 0.35);
  border-radius: var(--gm-blog-radius-pill);
  color: #c7d2fe;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.gm-blog-hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.gm-blog-hero-title span.highlight {
  background: linear-gradient(135deg, #a5b4fc 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gm-blog-hero-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto 32px auto;
}

/* Hero Live Search Box */
.gm-blog-search-box-wrap {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}

.gm-blog-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--gm-blog-radius-pill);
  padding: 6px 8px 6px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gm-blog-search-form:focus-within {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 0 2px #6366f1;
  transform: translateY(-1px);
}

.gm-blog-search-icon {
  color: #64748b;
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
}

.gm-blog-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  padding: 8px 0;
  font-family: inherit;
}

.gm-blog-search-input::placeholder {
  color: #94a3b8;
}

.gm-blog-search-clear-btn {
  display: none;
  background: none;
  border: none;
  color: #94a3b8;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 14px;
}

.gm-blog-search-clear-btn:hover {
  color: #475569;
}

.gm-blog-search-submit-btn {
  background: var(--gm-blog-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--gm-blog-radius-pill);
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gm-blog-search-submit-btn:hover {
  background: var(--gm-blog-gradient-hover);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
  transform: translateY(-1px);
}

/* Live Search Autocomplete Popup Dropdown */
.gm-blog-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--gm-blog-radius-lg);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.06);
  z-index: 100;
  overflow: hidden;
  display: none;
  text-align: left;
}

.gm-blog-search-dropdown.is-open {
  display: block;
  animation: gmDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gmDropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.gm-search-results-list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  max-height: 380px;
  overflow-y: auto;
}

.gm-search-result-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  color: #0f172a;
  text-decoration: none;
  transition: background 0.15s ease;
}

.gm-search-result-item a:hover,
.gm-search-result-item.is-active a {
  background: #f1f5f9;
}

.gm-search-result-thumb {
  width: 58px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

.gm-search-result-info {
  flex: 1;
  min-width: 0;
}

.gm-search-result-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.gm-search-result-meta {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gm-search-result-meta .cat-badge {
  color: #6366f1;
  font-weight: 600;
}

.gm-search-no-results {
  padding: 24px 18px;
  text-align: center;
  color: #64748b;
  font-size: 13.5px;
}

/* ==========================================================================
   2. CATEGORY NAVIGATION FILTER BAR
   ========================================================================== */
.gm-blog-cat-nav-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--gm-blog-border);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--gm-blog-shadow-sm);
}

.gm-blog-cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 0;
  scrollbar-width: none;
}

.gm-blog-cat-nav-inner::-webkit-scrollbar {
  display: none;
}

.gm-blog-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--gm-blog-radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
}

.gm-blog-cat-pill:hover {
  color: var(--gm-blog-primary);
  border-color: rgba(99, 102, 241, 0.35);
  background: #eef2ff;
  text-decoration: none;
  transform: translateY(-1px);
}

.gm-blog-cat-pill.active {
  background: var(--gm-blog-gradient) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3) !important;
  transform: translateY(-1px);
}

.gm-blog-cat-pill.active .count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.gm-blog-cat-pill .count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #64748b;
  margin-left: 2px;
  transition: all 0.2s ease;
}

/* ==========================================================================
   3. FEATURED ARTICLE SHOWCASE
   ========================================================================== */
.gm-blog-featured-section {
  padding: 40px 0 20px 0;
}

.gm-blog-featured-card {
  background: #ffffff;
  border: 1px solid var(--gm-blog-border);
  border-radius: var(--gm-blog-radius-xl);
  overflow: hidden;
  box-shadow: var(--gm-blog-shadow-md);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gm-blog-featured-card:hover {
  box-shadow: var(--gm-blog-shadow-lg);
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.3);
}

.gm-featured-thumb-wrap {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  background: #0f172a;
}

.gm-featured-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gm-blog-featured-card:hover .gm-featured-thumb-wrap img {
  transform: scale(1.04);
}

.gm-featured-badge-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--gm-blog-gradient);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--gm-blog-radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

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

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

.gm-featured-cat-tag {
  color: #6366f1;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}

.gm-featured-cat-tag:hover {
  text-decoration: underline;
}

.gm-featured-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--gm-blog-text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.gm-featured-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gm-featured-title a:hover {
  color: #6366f1;
}

.gm-featured-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gm-blog-text-muted);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gm-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--gm-blog-border-subtle);
}

.gm-featured-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.gm-featured-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gm-blog-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.gm-btn-read-featured {
  background: var(--gm-blog-gradient);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: var(--gm-blog-radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(106, 17, 203, 0.28);
  transition: all 0.2s ease;
}

.gm-btn-read-featured:hover {
  background: var(--gm-blog-gradient-hover);
  box-shadow: 0 6px 18px rgba(106, 17, 203, 0.4);
  transform: translateY(-1px);
}

.gm-btn-read-featured i {
  transition: transform 0.2s ease;
}

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

/* ==========================================================================
   4. MAIN BLOG LAYOUT (GRID + SIDEBAR)
   ========================================================================== */
.gm-blog-main-layout {
  padding: 36px 0 60px 0;
}

.gm-blog-section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.gm-blog-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gm-blog-text-dark);
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gm-blog-section-title i {
  color: #6366f1;
  font-size: 20px;
}

.gm-blog-results-badge {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: var(--gm-blog-radius-pill);
}

/* Responsive Grid */
.gm-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Article Card */
.gm-blog-card {
  background: #ffffff;
  border: 1px solid var(--gm-blog-border);
  border-radius: var(--gm-blog-radius-lg);
  overflow: hidden;
  box-shadow: var(--gm-blog-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gm-blog-card:hover {
  box-shadow: var(--gm-blog-shadow-md);
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.3);
}

.gm-blog-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.gm-blog-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gm-card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--gm-blog-radius-pill);
  letter-spacing: 0.03em;
  text-decoration: none !important;
  z-index: 2;
  transition: background 0.15s ease;
}

.gm-card-category-badge:hover {
  background: #6366f1;
  color: #ffffff !important;
}

.gm-card-reading-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

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

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

.gm-blog-card-meta i {
  font-size: 11px;
}

.gm-blog-card-title {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--gm-blog-text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px;
}

.gm-blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.gm-blog-card-title a:hover {
  color: #6366f1;
}

.gm-blog-card-excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gm-blog-text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.gm-blog-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--gm-blog-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gm-btn-read-more {
  font-size: 13px;
  font-weight: 700;
  color: #6366f1 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

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

.gm-btn-read-more:hover {
  color: #4338ca !important;
}

.gm-btn-read-more:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   5. COMPACT SIDEBAR
   ========================================================================== */
.gm-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.gm-blog-sidebar-card {
  background: #ffffff;
  border: 1px solid var(--gm-blog-border);
  border-radius: var(--gm-blog-radius-lg);
  padding: 22px;
  box-shadow: var(--gm-blog-shadow-sm);
}

.gm-sidebar-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--gm-blog-text-dark);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}

.gm-sidebar-card-title i {
  color: #6366f1;
  font-size: 15px;
}

/* Sidebar Search Widget */
.gm-sidebar-search-form {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--gm-blog-radius-md);
  padding: 4px 6px 4px 14px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.gm-sidebar-search-form:focus-within {
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.gm-sidebar-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13.5px;
  outline: none;
  padding: 6px 0;
  font-family: inherit;
  color: #0f172a;
}

.gm-sidebar-search-btn {
  background: var(--gm-blog-gradient);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.gm-sidebar-search-btn:hover {
  transform: translateY(-1px);
}

/* Sidebar Categories List */
.gm-sidebar-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gm-sidebar-cat-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all 0.15s ease;
}

.gm-sidebar-cat-item a:hover,
.gm-sidebar-cat-item.active a {
  background: #eef2ff;
  color: #6366f1;
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateX(3px);
}

.gm-sidebar-cat-item .count-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #64748b;
}

.gm-sidebar-cat-item.active .count-badge,
.gm-sidebar-cat-item a:hover .count-badge {
  background: #6366f1;
  color: #ffffff;
}

/* Sidebar Latest Posts List */
.gm-sidebar-latest-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gm-sidebar-latest-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  text-decoration: none;
  group: true;
}

.gm-sidebar-latest-thumb {
  width: 72px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0f172a;
  transition: transform 0.3s ease;
}

.gm-sidebar-latest-item a:hover .gm-sidebar-latest-thumb {
  transform: scale(1.05);
}

.gm-sidebar-latest-info {
  flex: 1;
  min-width: 0;
}

.gm-sidebar-latest-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.gm-sidebar-latest-item a:hover .gm-sidebar-latest-title {
  color: #6366f1;
}

.gm-sidebar-latest-date {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Sidebar Newsletter Widget */
.gm-sidebar-newsletter-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  color: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.gm-sidebar-newsletter-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.gm-sidebar-newsletter-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(165, 180, 252, 0.3);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.gm-sidebar-newsletter-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.gm-sidebar-newsletter-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: #94a3b8;
  margin-bottom: 16px;
}

.gm-sidebar-newsletter-form input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  outline: none;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.gm-sidebar-newsletter-form input::placeholder {
  color: #94a3b8;
}

.gm-sidebar-newsletter-form input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: #818cf8;
}

.gm-sidebar-newsletter-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: var(--gm-blog-gradient);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3);
  transition: all 0.2s ease;
}

.gm-sidebar-newsletter-btn:hover {
  background: var(--gm-blog-gradient-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   6. CLEAN EMPTY STATE
   ========================================================================== */
.gm-blog-empty-state {
  padding: 60px 24px;
  text-align: center;
  background: #ffffff;
  border: 1.5px dashed var(--gm-blog-border);
  border-radius: var(--gm-blog-radius-xl);
  margin: 12px 0 32px 0;
}

.gm-empty-icon-wrap {
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
  font-size: 26px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gm-empty-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gm-blog-text-dark);
  margin-bottom: 8px;
}

.gm-empty-text {
  font-size: 14px;
  color: var(--gm-blog-text-muted);
  max-width: 440px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
}

.gm-btn-empty-action {
  background: var(--gm-blog-gradient);
  color: #ffffff !important;
  padding: 8px 20px;
  border-radius: var(--gm-blog-radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   7. PAGINATION
   ========================================================================== */
.gm-blog-pagination-wrap {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.gm-blog-pagination-wrap .pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.gm-blog-pagination-wrap .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.gm-blog-pagination-wrap .page-item .page-link:hover {
  color: #6366f1;
  border-color: #c7d2fe;
  background: #f8fafc;
}

.gm-blog-pagination-wrap .page-item.active .page-link {
  background: var(--gm-blog-gradient) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3) !important;
}

.gm-blog-pagination-wrap .page-item.disabled .page-link {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   8. FULL-WIDTH BOTTOM NEWSLETTER SECTION
   ========================================================================== */
.gm-blog-newsletter-section {
  padding: 60px 0 80px 0;
}

.gm-blog-newsletter-banner {
  background: radial-gradient(1000px 400px at 50% 0%, rgba(99, 102, 241, 0.25), transparent 70%),
              linear-gradient(135deg, #090d16 0%, #111827 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--gm-blog-radius-xl);
  padding: 56px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--gm-blog-shadow-lg);
}

.gm-blog-newsletter-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.gm-newsletter-banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.gm-newsletter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(165, 180, 252, 0.35);
  border-radius: var(--gm-blog-radius-pill);
  color: #c7d2fe;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.gm-newsletter-heading {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.gm-newsletter-subtitle {
  font-size: 15px;
  line-height: 1.65;
  color: #94a3b8;
  margin-bottom: 28px;
}

.gm-newsletter-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto 14px auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--gm-blog-radius-pill);
  padding: 6px 6px 6px 20px;
  transition: all 0.2s ease;
}

.gm-newsletter-form-row:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.gm-newsletter-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 14.5px;
  outline: none;
  font-family: inherit;
}

.gm-newsletter-input::placeholder {
  color: #94a3b8;
}

.gm-newsletter-submit-btn {
  background: var(--gm-blog-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--gm-blog-radius-pill);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(106, 17, 203, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gm-newsletter-submit-btn:hover {
  background: var(--gm-blog-gradient-hover);
  transform: translateY(-1px);
}

.gm-newsletter-trust-note {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.gm-newsletter-trust-note i {
  color: #10b981;
}

/* Toast alert container for newsletter */
.gm-blog-toast-msg {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-top: 14px;
  display: none;
}

.gm-blog-toast-msg.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.gm-blog-toast-msg.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* ==========================================================================
   9. BLOG DETAIL PAGE SPECIFIC STYLES
   ========================================================================== */
.gm-blog-detail-article {
  background: #ffffff;
  border: 1px solid var(--gm-blog-border);
  border-radius: var(--gm-blog-radius-xl);
  padding: 36px 40px;
  box-shadow: var(--gm-blog-shadow-sm);
}

.gm-detail-header {
  margin-bottom: 24px;
}

.gm-detail-category-badge {
  display: inline-block;
  background: #eef2ff;
  color: #6366f1;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: var(--gm-blog-radius-pill);
  text-decoration: none !important;
  margin-bottom: 12px;
}

.gm-detail-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--gm-blog-text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.gm-detail-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--gm-blog-text-muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gm-blog-border-subtle);
  flex-wrap: wrap;
}

.gm-detail-hero-img-wrap {
  border-radius: var(--gm-blog-radius-lg);
  overflow: hidden;
  margin: 24px 0 32px 0;
  box-shadow: var(--gm-blog-shadow-md);
  background: #0f172a;
}

.gm-detail-hero-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.gm-detail-prose {
  font-size: 16px;
  line-height: 1.8;
  color: #334155;
}

.gm-detail-prose h2,
.gm-detail-prose h3,
.gm-detail-prose h4 {
  color: #0f172a;
  font-weight: 800;
  margin-top: 32px;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.gm-detail-prose p {
  margin-bottom: 18px;
}

.gm-detail-prose ul,
.gm-detail-prose ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.gm-detail-prose li {
  margin-bottom: 8px;
}

.gm-detail-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--gm-blog-radius-md);
  margin: 20px 0;
}

.gm-detail-prose blockquote {
  border-left: 4px solid #6366f1;
  padding: 12px 20px;
  background: #f8fafc;
  border-radius: 0 var(--gm-blog-radius-md) var(--gm-blog-radius-md) 0;
  color: #475569;
  font-style: italic;
  margin: 24px 0;
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1199px) {
  .gm-blog-hero-title {
    font-size: 32px;
  }
  .gm-featured-title {
    font-size: 22px;
  }
}

@media (max-width: 991px) {
  .gm-blog-hero-section {
    padding: 76px 0 54px 0;
  }
  .gm-blog-featured-card {
    grid-template-columns: 1fr;
  }
  .gm-featured-thumb-wrap {
    min-height: 240px;
  }
  .gm-featured-content {
    padding: 28px 24px;
  }
  .gm-blog-grid {
    grid-template-columns: 1fr;
  }
  .gm-blog-sidebar {
    margin-top: 36px;
  }
}

@media (max-width: 767px) {
  .gm-blog-hero-section {
    padding: 60px 0 48px 0;
  }
  .gm-blog-hero-title {
    font-size: 26px;
  }
  .gm-blog-hero-subtitle {
    font-size: 14.5px;
    margin-bottom: 24px;
  }
  .gm-blog-search-form {
    flex-wrap: wrap;
    border-radius: var(--gm-blog-radius-lg);
    padding: 8px 12px;
  }
  .gm-blog-search-submit-btn {
    width: 100%;
    margin-top: 8px;
    justify-content: center;
  }
  .gm-blog-newsletter-banner {
    padding: 36px 20px;
  }
  .gm-newsletter-heading {
    font-size: 24px;
  }
  .gm-newsletter-form-row {
    flex-direction: column;
    border-radius: var(--gm-blog-radius-lg);
    padding: 12px;
  }
  .gm-newsletter-input {
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
  }
  .gm-newsletter-submit-btn {
    width: 100%;
  }
  .gm-blog-detail-article {
    padding: 24px 18px;
  }
  .gm-detail-title {
    font-size: 24px;
  }
}
