body { background-color: #f7f9fc; color: #191c1e; }

.canada-guide-page section[id],
.canada-guide-page nav[id] { scroll-margin-top: 7rem; }

.canada-guide-onpage {
    position: sticky;
    top: 5.5rem;
    z-index: 10;
    padding-top: .75rem;
    padding-bottom: .75rem;
    background: rgba(247, 249, 252, .92);
    backdrop-filter: blur(12px);
}

.canada-guide-onpage a {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    padding: .55rem .8rem;
    border: 1px solid #d8e4e8;
    border-radius: 999px;
    color: #075f73;
    background: #fff;
    font-size: .75rem;
    font-weight: 700;
}

.canada-guide-page a:focus-visible,
.canada-guide-page summary:focus-visible {
    outline: 3px solid rgba(13, 125, 150, .38);
    outline-offset: 3px;
}

.canada-guide-note,
.canada-guide-benefit-grid > div,
.canada-guide-program-grid > div,
.canada-guide-faq,
.canada-guide-resources {
    border-color: #d8e4e8 !important;
    box-shadow: 0 10px 32px rgba(7, 24, 39, 0.035) !important;
}

.canada-guide-benefit-grid > div,
.canada-guide-program-grid > div,
.canada-guide-faq {
    border-radius: 18px !important;
    background: #fff;
}

.canada-guide-benefit-grid > div,
.canada-guide-program-grid > div {
    min-height: 100%;
    padding: 1.25rem !important;
}

.canada-guide-benefit-grid > div:hover,
.canada-guide-program-grid > div:hover,
.canada-guide-faq:hover,
.canada-guide-resources:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 46px rgba(7, 24, 39, 0.08) !important;
}

.canada-guide-benefit-grid h3,
.canada-guide-program-grid h3,
.canada-guide-faq summary {
    line-height: 1.35;
}

.canada-guide-program-grid p,
.canada-guide-benefit-grid p {
    line-height: 1.65;
}

.canada-guide-cta,
.canada-guide-resources {
    border-radius: 22px !important;
}

.canada-guide-resources-section {
    max-width: 1180px;
}

.canada-guide-resources-copy {
    max-width: 30rem;
}

.canada-guide-resources-copy h3 {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.12;
    max-width: 19ch;
}

.canada-guide-resources-copy p {
    max-width: 38ch;
    line-height: 1.65;
}

.canada-guide-resources-actions a {
    min-height: 3.25rem;
    line-height: 1.35;
    text-align: center;
}

main a[href]:focus-visible,
.canada-guide-faq summary:focus-visible,
.canada-guide-benefit-grid > div:focus-within,
.canada-guide-program-grid > div:focus-within {
    outline: 3px solid rgba(13, 125, 150, 0.28);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .canada-guide-onpage {
        top: 4.5rem;
        overflow-x: auto;
        white-space: nowrap;
    }

    .canada-guide-cta a,
    .canada-guide-resources a {
        width: 100%;
        justify-content: center;
    }

    .canada-guide-resources-copy h3 {
        max-width: none;
    }

    .canada-guide-resources-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .canada-guide-onpage {
        scroll-behavior: auto;
    }

    .canada-guide-benefit-grid > div,
    .canada-guide-program-grid > div,
    .canada-guide-faq,
    .canada-guide-resources {
        transition: none !important;
    }

    .canada-guide-benefit-grid > div:hover,
    .canada-guide-program-grid > div:hover,
    .canada-guide-faq:hover,
    .canada-guide-resources:hover {
        transform: none;
    }
}

/* Study hero consistency: align detailed Study destination pages with the global hub reference. */
main > .dest-hero {
  min-height: 548px;
  display: flex;
  align-items: center;
  padding-top: 6.25rem !important;
  padding-bottom: 4rem !important;
  background-color: #040d15 !important;
}

main > .dest-hero .dest-container {
  width: 100%;
}

main > .dest-hero .dest-hero-title {
  max-width: 900px !important;
  font-size: clamp(2rem, 5vw, 3.35rem) !important;
  line-height: 1.06 !important;
  letter-spacing: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.42);
}

main > .dest-hero .dest-hero-desc {
  max-width: 760px !important;
  font-size: clamp(0.98rem, 1.35vw, 1.08rem) !important;
  line-height: 1.55 !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.36);
}

main > .dest-hero > img {
  z-index: 0 !important;
  filter: brightness(0.58) saturate(0.9);
}

main > .dest-hero .dest-hero-overlay {
  z-index: 1 !important;
  background: linear-gradient(90deg, rgba(4, 13, 21, 0.98) 0%, rgba(4, 13, 21, 0.9) 48%, rgba(4, 13, 21, 0.58) 100%) !important;
}

main > .dest-hero .anb-grid-fade,
main > .dest-hero .dest-hero-vignette {
  z-index: 2 !important;
}



@media (max-width: 767px) {
  main > .dest-hero {
    min-height: 560px;
    padding-top: 7rem !important;
    padding-bottom: 3.5rem !important;
  }

  main > .dest-hero .dest-hero-overlay {
    background: linear-gradient(180deg, rgba(4, 13, 21, 0.9) 0%, rgba(4, 13, 21, 0.96) 100%) !important;
  }
}
