/*
Theme Name: GI8 VN Guide
Description: Domain-specific Flatsome child theme for gi8vnguide.com.
Author: GI8 VN Guide
Template: flatsome
Version: 1.0.1
Text Domain: gi8vnguide
*/

:root {
  --guide-navy: #17294d;
  --guide-blue: #1677e8;
  --guide-blue-deep: #0e4598;
  --guide-coral: #ff765f;
  --guide-ice: #edf7ff;
  --guide-paper: #ffffff;
  --guide-ink: #172033;
  --guide-muted: #65738b;
  --guide-radius: 18px;
  --guide-shadow: 0 14px 38px rgba(28, 78, 136, 0.13);
}

body.gi8vnguide-site {
  color: var(--guide-ink);
  background: var(--guide-paper);
}

.guide-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--guide-navy);
  transform: translateY(-150%);
}

.guide-skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.guide-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid rgba(23, 41, 77, 0.1);
  background: #f3f8ff;
  box-shadow: 0 8px 24px rgba(23, 65, 125, 0.05);
}

.guide-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 36px));
  min-height: 82px;
  margin: 0 auto;
}

.guide-header__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--guide-navy);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.guide-header__brand:hover {
  color: var(--guide-blue-deep);
}

.guide-header__brand img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: cover;
}

.guide-header__nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.guide-header__nav::-webkit-scrollbar {
  display: none;
}

.guide-header__nav a {
  flex: 0 0 auto;
  padding: 9px 10px;
  border-radius: 999px;
  color: #42516d;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.guide-header__nav a:hover,
.guide-header__nav a:focus-visible {
  color: var(--guide-blue-deep);
  background: #e3efff;
}

.guide-home {
  overflow: hidden;
}

.guide-hero {
  position: relative;
  min-height: clamp(270px, 35vw, 520px);
  display: grid;
  place-items: center;
  background: linear-gradient(110deg, #ffe4d7 0%, #f8fbff 48%, #dcebff 100%);
}

.guide-hero__media,
.guide-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.guide-hero__media img {
  object-fit: cover;
  object-position: center;
}

.guide-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  padding: 42px 0;
  text-align: center;
}

.guide-hero__eyebrow {
  margin: 0 0 10px;
  color: var(--guide-blue-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: 720px;
  margin: 0 auto;
  color: var(--guide-navy);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.95);
}

.guide-hero__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(23, 65, 125, 0.18);
}

.guide-button:hover {
  color: #fff;
  transform: translateY(-1px);
}

.guide-button--coral {
  background: var(--guide-coral);
}

.guide-button--blue {
  background: var(--guide-blue);
}

.guide-showcase {
  padding: 48px 18px 56px;
  background: var(--guide-ice);
}

.guide-container {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.guide-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 0 28px;
  color: #5c6f96;
  font-size: clamp(23px, 3vw, 34px);
}

.guide-section-title::before,
.guide-section-title::after {
  content: "";
  width: min(120px, 16vw);
  height: 1px;
  background: #8ba1c2;
}

.guide-showcase__layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(230px, 1fr);
  gap: 20px;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guide-card,
.guide-tall-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--guide-radius);
  background: #dcecff;
  box-shadow: var(--guide-shadow);
  isolation: isolate;
}

.guide-card {
  aspect-ratio: 1.8 / 1;
}

.guide-tall-card {
  min-height: 100%;
}

.guide-card img,
.guide-tall-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.guide-card:hover img,
.guide-tall-card:hover img {
  transform: scale(1.035);
}

.guide-card::after,
.guide-tall-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 42%, rgba(8, 30, 67, 0.78) 100%);
  pointer-events: none;
}

.guide-card__label {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 15px;
  color: #fff;
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.guide-tall-card .guide-card__label {
  top: 24px;
  bottom: auto;
  font-size: 32px;
}

.guide-topic-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 38px 18px;
  background: #fff;
}

.guide-topic-nav a {
  padding: 9px 16px;
  border: 1px solid #d8e6f5;
  border-radius: 999px;
  color: var(--guide-blue-deep);
  background: #f8fbff;
  font-weight: 700;
}

.guide-editorial {
  width: min(980px, calc(100% - 36px));
  margin: 48px auto 72px;
}

.guide-editorial:empty {
  display: none;
}

.guide-footer {
  padding: 48px 18px 24px;
  color: #dbe5f8;
  background: #303b52;
}

.guide-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.guide-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 25px;
  font-weight: 900;
}

.guide-footer__brand img {
  width: 58px;
  height: 58px;
  border-radius: 15px;
}

.guide-footer h2 {
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-footer ul {
  margin: 0;
  list-style: none;
}

.guide-footer li {
  margin-bottom: 8px;
}

.guide-footer a {
  color: #dbe5f8;
}

.guide-footer a:hover {
  color: #fff;
}

.guide-footer__bottom {
  width: min(1180px, 100%);
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aebbd2;
  font-size: 13px;
}

@media (max-width: 900px) {
  .guide-header__inner {
    display: block;
    width: 100%;
    min-height: 0;
  }

  .guide-header__brand {
    display: flex;
    justify-content: center;
    min-height: 66px;
    padding: 8px 16px;
  }

  .guide-header__brand img {
    width: 42px;
    height: 42px;
  }

  .guide-header__nav {
    justify-content: flex-start;
    gap: 2px;
    padding: 8px 12px;
    background: var(--guide-navy);
  }

  .guide-header__nav a {
    color: #fff;
  }

  .guide-header__nav a:hover,
  .guide-header__nav a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
  }

  .guide-showcase__layout {
    grid-template-columns: 1fr;
  }

  .guide-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-tall-card {
    min-height: 420px;
  }

  .guide-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 549px) {
  .guide-hero {
    min-height: 265px;
  }

  .guide-hero__media img {
    object-position: center;
    opacity: 0.84;
  }

  .guide-hero__inner {
    width: calc(100% - 24px);
    padding: 28px 0;
  }

  .guide-hero h1 {
    font-size: 36px;
  }

  .guide-showcase {
    padding: 34px 12px 42px;
  }

  .guide-card-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .guide-card {
    aspect-ratio: 1.65 / 1;
  }

  .guide-tall-card {
    min-height: 520px;
  }

  .guide-topic-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .guide-topic-nav a {
    flex: 0 0 auto;
  }

  .guide-footer__grid {
    grid-template-columns: 1fr;
  }
}
