/* KidBridge - Main Stylesheet
   Minimalist, Mobile-First Design
   Main Background: #f5f1e5
   Card Background: #FFF8ED
   Brand Blue: #3B82F6
   Headers & Slate Accents: #2c3e50 / #3b5978
*/

:root {
  --bg-main: #f5f1e5;
  --bg-card: #FFF8ED;
  --bg-card-hover: #fffdf7;
  --text-main: #232d38;
  --text-muted: #5e6d7e;
  --text-light: #8392a5;
  --brand-blue: #3B82F6;
  --brand-blue-hover: #2563EB;
  --primary: #2c3e50;
  --primary-hover: #1e2b37;
  --primary-accent: #3b5978;
  --accent-gold: #d97706;
  --accent-gold-bg: #fef3c7;
  --accent-green: #059669;
  --accent-green-bg: #d1fae5;
  --border-subtle: #e5dac9;
  --border-card: #eadecd;
  --shadow-sm: 0 1px 3px rgba(44, 62, 80, 0.05);
  --shadow-md: 0 4px 12px rgba(44, 62, 80, 0.08);
  --shadow-lg: 0 10px 24px rgba(44, 62, 80, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-blue-hover);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==================== Header ==================== */
.site-header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-blue);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
  background-color: rgba(59, 130, 246, 0.08);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--brand-blue);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.btn-header-cta:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
}

/* ==================== Hero Section ==================== */
.hero-section {
  padding: 2.25rem 0 1.25rem;
  text-align: center;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-accent);
  box-shadow: var(--shadow-sm);
}

/* ==================== Promo Banner ==================== */
.promo-banner {
  background: linear-gradient(135deg, #f0f7ff 0%, #fffbf2 100%);
  border: 1.5px solid #dbeafe;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.promo-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.5;
}

.promo-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  background-color: var(--brand-blue);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.25);
}

.promo-pill:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.35);
}

.promo-line-text {
  font-weight: 500;
}

.promo-separator {
  color: #94a3b8;
  font-weight: bold;
}

/* ==================== Search & Filter Bar ==================== */
.filters-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.search-box-row {
  margin-bottom: 1.25rem;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 50px;
  padding: 0 3rem 0 3rem;
  font-size: 1rem;
  background-color: #fff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.search-clear-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  display: none;
  font-size: 1.1rem;
  padding: 0.25rem;
}

.search-clear-btn:hover {
  color: var(--primary);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: center;
}

.filter-control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.filter-select {
  height: 42px;
  padding: 0 2rem 0 0.85rem;
  background-color: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235e6d7e' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) center;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.filter-select:disabled {
  background-color: #f1ede4;
  cursor: not-allowed;
  opacity: 0.6;
}

.filter-select:focus {
  border-color: var(--brand-blue);
}

.filter-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-card);
}

.toggle-recommended {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  user-select: none;
}

.toggle-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-subtle);
  border-radius: 5px;
  background-color: #fff;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: all 0.2s ease;
}

.toggle-checkbox:checked {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.toggle-checkbox:checked::before {
  content: "★";
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.filter-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.results-count {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.results-count strong {
  color: var(--primary);
  font-weight: 800;
}

.btn-reset-filters {
  background: none;
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-filters:hover {
  background-color: #fff;
  color: var(--primary);
  border-color: var(--primary);
}

/* Category Quick Pills */
.category-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.category-pill {
  white-space: nowrap;
  padding: 0.45rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.category-pill:hover {
  border-color: var(--brand-blue);
  background-color: #fff;
}

.category-pill.active {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

/* ==================== Cards Grid ==================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.3);
  background-color: var(--bg-card-hover);
}

.card-recommended-flag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background-color: var(--accent-gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Strictly square container for logos and photos */
.card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #ece5d8;
  overflow: hidden;
}

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

.card:hover .card-image {
  transform: scale(1.03);
}

.card-badge-category {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  background-color: rgba(44, 62, 80, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

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

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

.card-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.86rem;
}

.card-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--text-muted);
}

.card-meta-item strong {
  color: var(--primary);
  font-weight: 600;
}

.card-meta-icon {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.card-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card footer with horizontal buttons aligned */
.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.card-action-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-blue);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 0.8rem;
  height: 34px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-detail:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-1px);
}

.btn-write-wrapper {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-write-wrapper a, .btn-contact-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand-blue) !important;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 0.8rem;
  height: 34px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-write-wrapper a:hover, .btn-contact-blue:hover {
  background-color: var(--brand-blue-hover) !important;
  transform: translateY(-1px);
}

/* Pagination / Load more */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-load-more {
  background-color: var(--primary);
  color: #fff;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-load-more:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.no-results-message {
  text-align: center;
  padding: 4rem 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.no-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.no-results-message h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* ==================== Detail Page (/catalog/[id]/) ==================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.25rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

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

.breadcrumbs-sep {
  color: var(--text-light);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
}

.detail-main {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.detail-gallery {
  margin-bottom: 2rem;
}

.gallery-main-img-wrap {
  width: 100%;
  max-height: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #ece5d8;
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
}

.gallery-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.gallery-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.gallery-thumb.active {
  border-color: var(--brand-blue);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-header {
  margin-bottom: 1.5rem;
}

.detail-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.badge-rec-large {
  background-color: var(--accent-gold);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-category-large {
  background-color: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.detail-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
}

.detail-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  background-color: rgba(44, 62, 80, 0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.2rem;
}

.spec-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.detail-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.5rem 0 0.85rem;
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-card);
}

.detail-text-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  white-space: pre-line;
  margin-bottom: 2rem;
}

/* Reviews Box */
.detail-reviews-box {
  background-color: #fffdf9;
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.reviews-title-wrap {
  flex: 1;
  min-width: 240px;
}

.reviews-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.reviews-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.btn-review-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: var(--brand-blue);
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.btn-review-action:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.35);
}

.btn-review-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #2563EB !important;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.btn-review-link:hover {
  background-color: var(--brand-blue);
  color: #fff !important;
}

.reviews-raw-content {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* Detail Sidebar */
.detail-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.btn-contact-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
  background-color: var(--brand-blue);
  color: #fff !important;
}

.btn-contact-action:hover {
  background-color: var(--brand-blue-hover);
}

.raw-write-buttons {
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.raw-write-buttons a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  background-color: var(--brand-blue);
  color: #fff !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

.raw-write-buttons a:hover {
  background-color: var(--brand-blue-hover);
}

.safe-deal-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 1rem;
  text-align: center;
}

/* Similar cards on detail page */
.similar-services-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-card);
}

.similar-services-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* ==================== Guide & Blog Pages ==================== */
.blog-header {
  padding: 2.25rem 0 1.5rem;
  text-align: center;
}

.blog-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.blog-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Country Hubs Bar */
.country-hubs-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.85rem 1.25rem;
  background-color: rgba(59, 130, 246, 0.04);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(59, 130, 246, 0.25);
}

.country-hubs-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.25rem;
}

.country-hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background-color: #fff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.country-hub-chip:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(59, 130, 246, 0.18);
}

.country-hub-arrow {
  color: var(--brand-blue);
  font-weight: 800;
}

/* Multi-line Blog Filters */
.blog-filters-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-row-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  min-width: 65px;
}

.blog-meta-count {
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-card);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Multiline Guide Filters */
.guide-filters-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.filter-group-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.filter-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.guide-pill {
  padding: 0.45rem 1rem;
  background-color: #fff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.guide-pill:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.guide-pill.active {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.3);
}

.blog-card-media {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background-color: #ece5d8;
  overflow: hidden;
}

.blog-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.blog-country-tag {
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: var(--brand-blue);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.blog-category-tag {
  background-color: rgba(44, 62, 80, 0.08);
  color: var(--primary);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.blog-card-title a {
  color: var(--primary);
}

.blog-card-title a:hover {
  color: var(--brand-blue);
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-card);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Single Article */
.article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.article-header {
  margin-bottom: 2rem;
  text-align: center;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.article-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.article-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.article-cover {
  width: 100%;
  max-height: 440px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-card);
}

.article-cover img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.article-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--border-card);
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.75rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--brand-blue);
  padding: 0.85rem 1.25rem;
  background-color: rgba(59, 130, 246, 0.05);
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Telegram Bot Callout Banner */
.bot-callout {
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  border: 1.5px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.bot-callout-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bot-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.bot-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0369a1;
  margin-bottom: 0.2rem;
}

.bot-subtitle {
  font-size: 0.9rem;
  color: #0c4a6e;
}

.btn-bot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #0284c7;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-bot:hover {
  background-color: #0369a1;
  transform: translateY(-1px);
}

.article-cta-box {
  margin-top: 3rem;
  background-color: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.article-cta-box h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.article-cta-box p {
  color: #e5dac9;
  margin-bottom: 1.25rem;
}

.btn-cta-catalog {
  display: inline-block;
  background-color: #fff;
  color: var(--primary) !important;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.btn-cta-catalog:hover {
  background-color: var(--bg-card);
  transform: translateY(-2px);
}

/* ==================== Add Service Page ==================== */
.add-service-page {
  max-width: 820px;
  margin: 1.5rem auto 3.5rem;
}

.add-service-hero {
  text-align: center;
  margin-bottom: 2.25rem;
}

.add-service-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.add-service-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 1.25rem;
}

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #2563EB;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.step-card {
  background-color: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: border-color 0.2s ease;
}

.step-card:hover {
  border-color: var(--brand-blue);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.step-pill {
  background-color: var(--brand-blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.step-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.step-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.btn-step-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--brand-blue);
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-step-action:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.benefits-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #fdfbf7 100%);
  border: 1.5px solid #dbeafe;
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.benefits-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.benefit-check {
  color: #059669;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.benefit-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.5;
}

/* ==================== Footer ==================== */
.site-footer {
  margin-top: auto;
  background-color: #1e293b;
  color: #f8fafc;
  padding: 2.75rem 0 2rem;
  border-top: 1px solid #334155;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.footer-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: -0.01em;
}

.footer-slogan {
  font-size: 0.95rem;
  color: #94a3b8;
  max-width: 450px;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.footer-nav a {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #60a5fa;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  width: 100%;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-copyright a {
  color: #60a5fa;
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #334155;
  color: #f1f5f9 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-btn:hover {
  background-color: var(--brand-blue);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.35);
}

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .site-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .site-nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-card);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .filter-grid {
    grid-template-columns: 1fr;
  }
  .detail-main {
    padding: 1.25rem;
  }
  .article-content {
    padding: 1.5rem;
  }
  .gallery-main-img {
    height: 280px;
  }
}
