@font-face {
  font-family: "Quicksand";
  src: url("/assets/fonts/Quicksand-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Quicksand";
  src: url("/assets/fonts/Quicksand-Bold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --travmo-blue: #4c7eff;
  --travmo-teal: #38bfa7;
  --travmo-coral: #ff6b6b;
  --travmo-sun: #ffd66b;
  --text: #24263d;
  --muted: #68748d;
  --line: #e1e5e9;
  --surface: #f5f8fc;
  --shadow: 0 24px 60px rgba(47, 67, 108, 0.13);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

body.blog-body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(76, 126, 255, 0.16), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(56, 191, 167, 0.16), transparent 28%),
    linear-gradient(180deg, #f7fbff 0%, #fff 45%, #eef8f6 100%);
  font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.blog-wrap {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(225, 229, 233, 0.76);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.blog-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blog-brand,
.blog-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.blog-brand {
  color: var(--text);
  text-decoration: none;
  font-size: 25px;
  font-weight: 800;
}

.blog-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--travmo-blue), var(--travmo-teal));
  box-shadow: 0 16px 34px rgba(76, 126, 255, 0.2);
}

.blog-link,
.blog-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(225, 229, 233, 0.9);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(47, 67, 108, 0.07);
}

.blog-btn-primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--travmo-blue), var(--travmo-teal));
  box-shadow: 0 18px 34px rgba(76, 126, 255, 0.22);
}

.blog-hero {
  padding: clamp(44px, 7vw, 84px) 0 24px;
}

.blog-kicker {
  margin: 0 0 10px;
  color: var(--travmo-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-hero h1,
.blog-detail h1,
.blog-submit-card h1 {
  max-width: 870px;
  margin: 0;
  color: var(--text);
  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

.blog-hero p,
.blog-submit-card > p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.55;
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.blog-search {
  width: min(520px, 100%);
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(225, 229, 233, 0.95);
  border-radius: 20px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 800;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.blog-search:focus,
.blog-field:focus,
.blog-textarea:focus,
.blog-select:focus {
  border-color: var(--travmo-blue);
  box-shadow: 0 0 0 4px rgba(76, 126, 255, 0.12);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 0 70px;
}

.blog-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(225, 229, 233, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(47, 67, 108, 0.08);
  transform: translateY(0);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

.blog-card:hover {
  border-color: rgba(76, 126, 255, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.blog-card-link {
  display: grid;
  color: inherit;
  text-decoration: none;
}

.blog-card-media {
  position: relative;
  min-height: 218px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 214, 107, 0.34), transparent 24%),
    linear-gradient(135deg, rgba(76, 126, 255, 0.22), rgba(56, 191, 167, 0.22));
}

.blog-card-media img {
  width: 100%;
  height: 218px;
  display: block;
  object-fit: cover;
  transform: scale(1.03);
}

.blog-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.34));
}

.blog-pill {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 1;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.blog-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.blog-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.blog-card-meta,
.blog-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.blog-card-meta span,
.blog-detail-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(76, 126, 255, 0.08);
}

.blog-detail {
  display: none;
  padding: clamp(34px, 6vw, 74px) 0 80px;
}

.blog-detail.is-visible {
  display: block;
}

.blog-detail-shell {
  overflow: hidden;
  border: 1px solid rgba(225, 229, 233, 0.9);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.blog-detail-hero {
  position: relative;
  min-height: 410px;
  display: grid;
  align-content: end;
  overflow: hidden;
  padding: clamp(24px, 5vw, 46px);
  color: #fff;
  isolation: isolate;
}

.blog-detail-hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 214, 107, 0.28), transparent 26%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

.blog-detail-hero h1,
.blog-detail-hero .blog-kicker,
.blog-detail-hero .blog-detail-meta {
  color: #fff;
}

.blog-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  padding: clamp(24px, 5vw, 44px);
}

.blog-article {
  min-width: 0;
}

.blog-article p {
  margin: 0 0 18px;
  color: #3d465c;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.72;
}

.blog-article h2 {
  margin: 30px 0 12px;
  font-size: 30px;
  line-height: 1.1;
}

.blog-article ul {
  margin: 0;
  padding-left: 20px;
  color: #3d465c;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}

.blog-side {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 12%, rgba(56, 191, 167, 0.16), transparent 30%),
    var(--surface);
}

.blog-side strong {
  font-size: 20px;
}

.blog-side span {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.blog-submit-main {
  padding: clamp(36px, 7vw, 78px) 0;
}

.blog-submit-card {
  overflow: hidden;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(225, 229, 233, 0.9);
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 12%, rgba(76, 126, 255, 0.1), transparent 26%),
    #fff;
  box-shadow: var(--shadow);
}

.blog-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.blog-form-group {
  display: grid;
  gap: 8px;
}

.blog-form-group.full {
  grid-column: 1 / -1;
}

.blog-form label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.blog-field,
.blog-select,
.blog-textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(225, 229, 233, 0.95);
  border-radius: 20px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.blog-field,
.blog-select {
  padding: 0 16px;
}

.blog-textarea {
  min-height: 220px;
  padding: 16px;
  resize: vertical;
  line-height: 1.55;
}

.blog-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.blog-status.is-error {
  color: #c03535;
}

.blog-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 900px) {
  .blog-grid,
  .blog-detail-body {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .blog-wrap {
    width: min(100% - 28px, 1160px);
  }

  .blog-header-inner,
  .blog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-nav {
    justify-content: space-between;
  }

  .blog-link,
  .blog-btn {
    flex: 1;
    padding-inline: 12px;
  }

  .blog-hero h1,
  .blog-detail h1,
  .blog-submit-card h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .blog-detail-hero {
    min-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card:hover {
    transform: none;
    transition: none;
  }
}
