/* Relocation guides, aligned with Sabahra marketing site */

.guide-page {
  background: var(--white);
}

.guide-site-header {
  position: relative;
  z-index: 200;
}

.guide-site-header .main-nav a[aria-current="page"] {
  color: var(--orange);
}

section.guides-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #004a7c 100%);
  color: var(--white);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.5rem);
}

.guides-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #004a7c 100%);
  color: var(--white);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.5rem);
}

.guides-hero--article {
  padding-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.guides-hero--compact {
  padding: 1.15rem 0 1.25rem;
}

.guides-hero--compact h1 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.guide-main--list {
  padding: 1.35rem 0 clamp(2.5rem, 5vw, 3.5rem);
}

.guide-main--article {
  padding: 1.15rem 0 clamp(2.5rem, 5vw, 3.5rem);
  background: var(--white);
}

.guides-hero-inner {
  max-width: none;
}

.guides-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

section.guides-hero .guides-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.guides-hero h1,
section.guides-hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.12;
  color: var(--white);
}

.guides-hero-lead,
.guide-hero-meta,
section.guides-hero .guides-hero-lead,
section.guides-hero .guide-hero-meta {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 42rem;
}

.guide-breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.guide-breadcrumb a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.guide-breadcrumb a:hover {
  color: var(--orange);
}

.guide-breadcrumb--inline {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.guide-breadcrumb--inline a {
  color: var(--navy-mid);
  font-weight: 600;
}

.guide-breadcrumb--inline a:hover {
  color: var(--orange);
}

.guide-main {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 220px);
}

.guide-page--article .guide-main {
  background: var(--white);
}

.guide-article-shell {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.guide-article-card {
  max-width: none;
  width: 100%;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow);
}

.guide-article-head {
  margin-bottom: 1.25rem;
}

.guide-article-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  color: var(--navy);
  font-weight: 700;
}

.guide-article-meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (min-width: 961px) {
  .guide-article-card {
    padding: clamp(1.35rem, 2vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);
  }

  .guide-body {
    font-size: 1.05rem;
  }
}

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.guide-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.guides-hero--article .guide-tags li {
  background: rgba(255, 255, 255, 0.12);
}

.guide-hero {
  margin: 0 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.guide-body {
  font-size: 1.02rem;
  color: var(--text);
}

.guide-body h2,
.guide-body h3 {
  color: var(--navy);
  margin: 2rem 0 0.75rem;
  line-height: 1.25;
}

.guide-body h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-body h3 {
  font-size: 1.05rem;
}

.guide-body p,
.guide-body ul,
.guide-body ol,
.guide-body blockquote {
  margin: 0 0 1rem;
}

.guide-body ul,
.guide-body ol {
  padding-left: 1.35rem;
}

.guide-body blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--orange);
  background: rgba(0, 18, 48, 0.04);
  border-radius: 0 8px 8px 0;
}

.guide-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1rem 0;
}

.guide-body a {
  color: var(--navy-mid);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.guide-cta {
  margin-top: 2.5rem;
  padding: 1.5rem 1.65rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 51, 91, 0.06), rgba(251, 133, 0, 0.1));
  border: 1px solid var(--border);
}

.guide-cta p {
  margin: 0 0 1rem;
  color: var(--navy);
  font-weight: 500;
}

.guide-cta p:last-child {
  margin-bottom: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 18, 48, 0.12);
}

.guide-card-media {
  position: relative;
  display: block;
  background: var(--navy);
  overflow: hidden;
  isolation: isolate;
}

.guide-card-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: transparent;
}

.guide-card-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.guide-card:hover .guide-card-media img {
  transform: scale(1.04);
}

.guide-card-media--placeholder {
  aspect-ratio: 16 / 9;
  min-height: 12rem;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 55%, #004a7c 100%);
}

.guide-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 18, 48, 0.94) 0%,
    rgba(0, 18, 48, 0.55) 42%,
    rgba(0, 18, 48, 0.08) 72%,
    transparent 100%
  );
  pointer-events: none;
}

.guide-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 1.15rem 1.2rem 1.1rem;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 700;
  line-height: 1.28;
  pointer-events: none;
}

.guide-card-title a {
  pointer-events: auto;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.guide-card-title a:hover,
.guide-card-title a:focus-visible {
  color: #ffe8cc;
}

.guide-card-body {
  padding: 0.95rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.guide-card-body p,
.guide-card-excerpt {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card-body a.guide-card-link {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-mid);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.guide-card:hover a.guide-card-link,
.guide-card-body a.guide-card-link:hover,
.guide-card-body a.guide-card-link:focus-visible {
  color: var(--orange);
}

.guide-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

.guide-empty--404 h1 {
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.site-not-found {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 18, 48, 0.06);
}

.site-not-found__code {
  margin: 0 0 1rem;
  font-size: clamp(3.5rem, 14vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.02em;
}

.site-not-found h1 {
  margin: 0 0 0.85rem;
  color: var(--navy);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.site-not-found__message {
  margin: 0 0 1.75rem;
  color: var(--muted);
  line-height: 1.55;
}

.site-not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.guide-page--not-found .guide-main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.guide-site-footer {
  margin-top: 0;
}

@media (max-width: 960px) {
  .guide-page,
  .guide-page--article {
    padding-top: var(--header-h);
  }

  .guide-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }

  .guide-site-header .header-inner {
    min-height: var(--header-h);
  }

  .guide-article-card {
    padding: 1.15rem;
  }
}

@media (min-width: 961px) {
  .guide-site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
}

.guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.guide-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 74, 124, 0.08);
  color: var(--navy-mid);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.guide-tldr {
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 122, 0, 0.06);
}

.guide-tldr__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}

.guide-tldr p:last-child {
  margin: 0;
  line-height: 1.55;
  color: var(--text);
}
