:root {
  --bg: #f5f9ff;
  --primary: #0c68b5;
  --secondary: #0a4f87;
  --card: #ffffff;
  --text: #162232;
  --muted: #4a6375;
  --border: #c5d8e8;
  --shadow: 0 12px 40px rgba(12, 104, 181, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Heebo", "Assistant", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(15, 139, 217, 0.05), transparent 25%),
    radial-gradient(circle at 90% 10%, rgba(11, 111, 169, 0.06), transparent 23%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 5px 15px 5px;
}

.admin-body .container {
  max-width: 1400px;
}

main.container {
  padding-top: 0;
  padding-bottom: 20px;
}

header {
  background: linear-gradient(135deg, #e2f0ff, #d1e5fb);
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  width: 100%;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: var(--shadow);
  min-width: 200px;
  max-width: 320px;
  flex: 1;
}

.search-form input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 100%;
}

.search-form button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-links a:hover {
  background: #e3eef9;
  text-decoration: none;
}

.hamburger {
  display: none;
  background: #86c8ff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--primary);
  font-size: 22px;
}

.hero {
  padding: 26px 0 10px;
}

.hero-split {
  display: block;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.hero h2.hero-title {
  margin: 4px 0 10px;
  font-size: 30px;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.brand-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 800;
  font-size: 28px;
}

.brand-line.primary {
  color: #0f8bd9;
}

.brand-line.accent {
  color: #0b6fa9;
}

.search-panel {
  margin-top: 16px;
  background: linear-gradient(135deg, #e8f5ff, #d7ecff);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  width: 100%;
}

.search-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-form-large {
  max-width: 100%;
  width: 100%;
  padding: 14px 14px;
}

.search-form-large input {
  font-size: 16px;
  font-weight: 600;
}

.search-form-large button svg {
  width: 22px;
  height: 22px;
}

.search-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(15, 139, 217, 0.06);
  border: 1px dashed #0f8bd9;
  border-radius: 12px;
  padding: 10px 12px;
}

.search-cta .badge {
  background: #0f8bd9;
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.hero-right {
  display: grid;
  gap: 12px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat-card.round {
  border-radius: 20px;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(15, 139, 217, 0.08), transparent 45%);
}

.stat-card h4 {
  margin-top: 0;
}

.stat-icon {
  font-size: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e3eef9;
  color: #0c68b5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: inset 0 0 0 1px rgba(12, 104, 181, 0.12);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.empty-state {
  text-align: center;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: #fff;
}

.journey-card {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.journey-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f1f7ff;
  border-bottom: 1px solid var(--border);
}

.journey-tab {
  padding: 12px;
  border: none;
  background: transparent;
  font-weight: 700;
  color: var(--secondary);
  cursor: pointer;
  border-left: 1px solid var(--border);
}

.journey-tab:first-child {
  border-left: none;
}

.journey-tab.active {
  background: #fff;
  color: var(--primary);
}

.journey-forms {
  padding: 14px;
}

.journey-form {
  display: none;
}

.journey-form.active {
  display: block;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.journey-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
}

.journey-grid input,
.journey-grid select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
}

@media (max-width: 860px) {
  .journey-tabs {
    grid-template-columns: 1fr;
  }
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 18px 0 10px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 46px rgba(15, 139, 217, 0.14);
}

.card h3 {
  margin: 0 0 8px;
}
.list-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
  align-items: stretch;
}
.media-left {
  position: relative;
}
.image-link {
  display: block;
  position: relative;
}
.media-object {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f7fbff;
}
.category-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(12, 104, 181, 0.9);
  color: #fff;
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 12px;
  box-shadow: var(--shadow);
}
.media-heading {
  margin: 0 0 8px;
}
.entry-excerpt p {
  margin: 0 0 8px;
  color: var(--muted);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.add-read-more .read-more {
  font-weight: 700;
  color: var(--primary);
}
.home-articles .media-body {
  display: grid;
  gap: 8px;
  align-content: center;
}
.animate {
  opacity: 1;
  transform: none;
}
.js .animate {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}
.js .animate.in-view {
  opacity: 1;
  transform: translateY(0);
}
.no-js .animate {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .js .animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
.cat-swiper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 36px 4px;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
}
.cat-swiper-ready .cat-swiper {
  overflow-x: hidden;
}
.cat-swiper-wrap {
  position: relative;
  padding: 0 32px;
}
.cat-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}
.cat-nav.prev { right: 4px; }
.cat-nav.next { left: 4px; }
.cat-swiper-ready .cat-nav {
  display: flex;
}
.cat-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: linear-gradient(135deg, #e8f5ff, #f7fbff);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  min-width: 220px;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.cat-slide:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 46px rgba(15, 139, 217, 0.14);
}
.cat-slide a {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.cat-slide p {
  margin: 6px 0 0;
  color: var(--muted);
}
.article-card-thumb img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  background: #f7fbff;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.tag {
  display: inline-block;
  background: #e8f5ff;
  color: var(--secondary);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  margin: 2px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 26px 0 10px;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.btn.secondary {
  background: #e3eef9;
  color: var(--primary);
}

.btn.danger {
  background: #c62828;
  color: #fff;
}

.lead-btn {
  font-size: 18px;
}

.content {
  background: var(--card);
  border-radius: 14px;
  padding: 24px 24px 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.content img {
  max-width: 100%;
  border-radius: 12px;
}
.content iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
}
.content table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.content td,
.content th {
  word-break: break-word;
  padding: 4px;
}
.aside-thumb img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.sticky-lead {
  position: sticky;
  top: 80px;
}

.biz-hero {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.biz-thumb {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.biz-thumb img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
}

.biz-headings h1 {
  margin: 4px 0;
}

.biz-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  background: #e3eef9;
  color: var(--secondary);
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.admin-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f1f7ff;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.media-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.media-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7fbff;
  border: 1px dashed var(--border);
  border-radius: 10px;
  min-height: 140px;
}

.media-thumb img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.media-meta {
  display: grid;
  gap: 4px;
}

.media-meta input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  font-family: inherit;
  font-size: 12px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f7fbff;
  font-size: 14px;
}

.chip input {
  margin: 0;
}

.code-block {
  background: #0f1b2c;
  color: #e2f1ff;
  border-radius: 10px;
  border: 1px solid #1f3550;
  padding: 12px;
  margin: 10px 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.code-block pre {
  margin: 0;
  overflow-x: auto;
  font-family: "Source Code Pro", "Fira Code", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.code-block code {
  color: inherit;
  white-space: pre;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="datetime-local"],
textarea,
select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
}
input[type="tel"] {
  direction: rtl;
  text-align: right;
}

textarea {
  min-height: 120px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.alert {
  padding: 12px 14px;
  background: #e8f5ff;
  border-radius: 10px;
  color: var(--secondary);
  border: 1px solid var(--border);
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(12, 104, 181, 0.05);
}

.footer {
  background: #0f8bd9;
  color: #fff;
  padding: 30px 0;
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.footer .muted {
  color: rgba(255,255,255,0.8);
}

.breadcrumbs {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}

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

.breadcrumbs .active {
  font-weight: 700;
  color: var(--text);
}

.crumb-sep {
  margin: 0 6px;
  color: var(--muted);
}

.filters-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  align-items: start;
}
.results-panel {
  grid-column: 2;
}

.filters {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-group {
  margin-top: 10px;
}

.filter-options {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f8fbff;
  color: var(--text);
}

.filter-link.active {
  border-color: var(--primary);
  background: #e8f2ff;
}

.filters-toggle {
  display: none;
}

.mobile-only {
  display: none;
}

.filter-toggle-btn {
  background: #6ba9fb;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.filter-options.filter-collapsible .collapsed {
  display: none;
}
.btn.small {
  padding: 8px 10px;
  font-size: 13px;
  margin-top: 10px;
}

.tag-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--border);
  padding: 8px;
  border-radius: 10px;
  background: #f8fbff;
}
.clear-filters {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 6px;
}
.clear-filters .btn.small {
  padding: 6px 10px;
}

@media (max-width: 860px) {
  .filters-wrapper {
    grid-template-columns: 1fr;
  }
  .filters {
    display: none;
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    z-index: 12;
    max-height: 70vh;
    overflow: auto;
  }
  .filters.open {
    display: block;
  }
  .filters-toggle {
    display: block;
    margin: 10px 0;
    display: flex;
    justify-content: flex-start;
  }
  .mobile-only {
    display: inline-block;
  }
  .results-panel {
    grid-column: 1;
  }
}

.biz-list {
  display: grid;
  gap: 12px;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: 1fr;
}

.biz-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  grid-template-areas:
    "thumb main actions"
    "thumb desc actions";
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
  height: 100%;
}
.biz-list .card {
  height: 100%;
}
.biz-list .card .biz-row {
  height: 100%;
}

.biz-row-thumb { grid-area: thumb; }
.biz-row-main { grid-area: main; }
.biz-row-actions { grid-area: actions; }

.biz-row-thumb img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

.biz-row-main h3 {
  margin: 0 0 4px;
}

.biz-row-main p {
  margin: 4px 0 0;
}

.biz-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.biz-desc {
  grid-area: desc;
  margin: 4px 0 0;
}

@media (max-width: 700px) {
  .biz-row {
    grid-template-columns: 100px 1fr;
    grid-template-areas:
      "thumb main"
      "thumb actions"
      "desc desc";
  }
  .biz-row-actions {
    justify-content: flex-start;
  }
  .biz-row {
    align-items: center;
  }
}


.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 2000;
}
.modal.open {
  display: flex;
}
.modal-content {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  width: min(480px, 100%);
  position: relative;
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 8px;
  left: 8px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.category-list {
  grid-template-columns: 1fr;
}
.category-list .biz-row {
  grid-template-columns: 110px 1fr auto;
  width: 100%;
}

@media (max-width: 860px) {
  .list-item {
    grid-template-columns: 1fr;
  }
  .media-object {
    height: 200px;
  }
  .cat-slide {
    min-width: 180px;
  }
  .cat-swiper-wrap {
    padding: 0 10px;
  }
  .list-items {
    grid-template-columns: 1fr;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero h2.hero-title {
    font-size: 24px;
  }
  .hero-split {
    grid-template-columns: 1fr;
  }
  .search-form-large {
    max-width: 100%;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    padding: 16px;
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    min-width: 100%;
    width: 100%;
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: inline-block;
  }
  .search-form {
    min-width: 120px;
    max-width: 100%;
    flex: 1;
  }
}
