/* BASE STYLES
   Shared defaults for the website. Page and component styles may override these rules.
   Each section below has matching start and end dividers for easier navigation.
*/

/* ----------------- Global reset (spacing and box sizing) ----------------- */

/* these apply everywhere */

/* Remove default spacing and use border-box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----------------- End of Global reset (spacing and box sizing) ----------------- */

/* ----------------- Body background, font, and text color ----------------- */

/* Set the global font, background, and text color */
body {

  background-color: #000;   /* black */
  background-image:
    radial-gradient(
      circle at 8% 4%,
      rgba(245, 185, 66, 0.07),
      transparent 26%
    ),
    radial-gradient(
      circle at 92% 88%,
      rgba(111, 145, 190, 0.05),
      transparent 28%
    ),
    linear-gradient(180deg, #0b0b0b 0%, #101010 52%, #090909 100%);
    /*I have added background-image and linear-gradient for making body and main conrainer similar */
  background-repeat: no-repeat;
  color: #fff;              /* white text */
  font-family: "Schibsted Grotesk", sans-serif;
}

/* ----------------- End of Body background, font, and text color ----------------- */

/* ----------------- Main content background ----------------- */

/* Lightweight layered background for the mobile-first main content area */
main {
  background-color: #0b0b0b;
  background-image:
    radial-gradient(
      circle at 8% 4%,
      rgba(245, 185, 66, 0.07),
      transparent 26%
    ),
    radial-gradient(
      circle at 92% 88%,
      rgba(111, 145, 190, 0.05),
      transparent 28%
    ),
    linear-gradient(180deg, #0b0b0b 0%, #101010 52%, #090909 100%);
  background-repeat: no-repeat;
}

/* ----------------- End of Main content background ----------------- */

/* ----------------- H1 and H2 heading styles and gold decorations ----------------- */

/* Main heading style used across the site */
h1 {
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  color: #FFFFFF;
}

/* Section heading style */
h2 {
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #d6a84f;;
}

/* Gold marker and fading underline for primary titles inside page content */
main h1,
main h2 {
  position: relative;
  padding-left: 14px;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

main h1::before,
main h2::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 11px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(#f5b942, #f7d88a);
  box-shadow: 0 0 12px rgba(245, 185, 66, 0.28);
}

main h1::after,
main h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 14px;
  height: 1px;
  background: linear-gradient(90deg, #f5b942, transparent);
  transform-origin: left;
  transition: transform 650ms 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------- End of H1 and H2 heading styles and gold decorations ----------------- */

/* ----------------- H3 heading styles and gold dot ----------------- */

/* Set H3 font size, weight, line height, and color. */
h3 {
  font-weight: 600;
  font-size: clamp(1.2rem, 1.05rem + 0.65vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #f7d88a;
}

/* Smaller gold marker for subtitles inside page content */
main h3 {
  position: relative;
  padding-left: 14px;
  margin-bottom: 10px;
}

main h3::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #f5b942;
  box-shadow: 0 0 9px rgba(245, 185, 66, 0.5);
  transition: transform 400ms 120ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------- End of H3 heading styles and gold dot ----------------- */

/* ----------------- H4 heading styles and gold dash ----------------- */

/* Fourth-level heading style */
h4 {
  font-weight: 550;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.4;
  letter-spacing: 0.025em;
  color: #b9c8df;
}

/* Quiet gold dash for fourth-level headings inside page content */
main h4 {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

main h4::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: #f5b942;
  transform-origin: left;
  transition: transform 400ms 100ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------- End of H4 heading styles and gold dash ----------------- */

/* ----------------- Heading reveal animations ----------------- */

/* JavaScript adds these classes when a heading enters the viewport */
main .heading-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease,
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

main h3.heading-reveal {
  transform: translateX(-12px);
}

main h4.heading-reveal {
  transform: translateY(8px);
}

main .heading-reveal.heading-visible {
  opacity: 1;
  transform: none;
}

main h1.heading-reveal::after,
main h2.heading-reveal::after,
main h3.heading-reveal::before,
main h4.heading-reveal::before {
  transform: scale(0);
}

main h1.heading-visible::after,
main h2.heading-visible::after,
main h3.heading-visible::before,
main h4.heading-visible::before {
  transform: scale(1);
}

/* ----------------- End of Heading reveal animations ----------------- */

/* ----------------- Reduced motion for headings ----------------- */

@media (prefers-reduced-motion: reduce) {
  main .heading-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  main h1::after,
  main h2::after,
  main h3::before,
  main h4::before {
    transform: scale(1);
    transition: none;
  }

}

/* ----------------- End of Reduced motion for headings ----------------- */

/* ----------------- H5 heading styles ----------------- */

/* Fifth-level heading style */
h5 {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #e7e1e1;

}

/* ----------------- End of H5 heading styles ----------------- */

/* ----------------- Paragraphs and emphasized text ----------------- */

/* Default paragraph text style */
p {
  font-size: 16px;
  line-height: 1.5;
  color: #e7e1e1;
}

/* Keep long paragraphs readable and important text clear */
main p {
  max-width: 70ch;
}

main strong {
  color: #ffffff;
  font-weight: 650;
}

/* ----------------- End of Paragraphs and emphasized text ----------------- */

/* ----------------- Global link colors and interaction states ----------------- */

/* shared link states for the whole website */

/* Default link style */
a {
  color: #6b76f3;
  transition: color 0.2s ease;
}

/* Visited link style */
a:visited {
  color: #9dbef7;
}

/* Hover state for links */
a:hover {
  color: #ababab;
}

/* Active state while clicking a link */
a:active {
  color: #888888;
}

/* Focus state for keyboard navigation */
a:focus {
  outline: 1px solid #ffffff;
  outline-offset: 2px;
}

/* ----------------- End of Global link colors and interaction states ----------------- */

/* ----------------- Breadcrumb navigation ----------------- */

/* Simple breadcrumbs used on the website's top-level pages. */
main .page-breadcrumbs {
  min-width: 0;
  padding: 2px 2px 0;
  color: #ababab;
  font-size: 0.86rem;
  line-height: 1.4;
}

main .page-breadcrumbs ol {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

main .page-breadcrumbs li {
  display: flex;
  min-width: 0;
  margin: 0;
  padding: 0;
}

main .page-breadcrumbs li + li::before {
  content: "\203A";
  flex: 0 0 auto;
  margin: 0 8px;
  color: #666666;
}

main .page-breadcrumbs a,
main .page-breadcrumbs a:visited {
  color: #f7d88a;
  text-decoration: none;
}

main .page-breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

main .page-breadcrumbs [aria-current="page"] {
  overflow: hidden;
  color: #d7d7d7;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ----------------- End of Breadcrumb navigation ----------------- */

/* ----------------- Google Maps link styles ----------------- */

/* Clearly identify links that open a work location in Google Maps */
.google-maps-link,
.google-maps-link:visited {
  color: #4da3ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.google-maps-link::after {
  content: " — View on Google Maps \2197";
  font-size: 0.9em;
}

.google-maps-link:hover {
  color: #82c4ff;
}

.google-maps-link:active {
  color: #b5dbff;
}

/* ----------------- End of Google Maps link styles ----------------- */

/* ----------------- List spacing ----------------- */

/* Set default spacing for unordered lists */
ul {
  padding-left: 20px;
  margin: 10px 0;
}

/* Add spacing between list items */
li {
  margin-bottom: 6px;
}

/* ----------------- End of List spacing ----------------- */

/* ----------------- Shared page container spacing ----------------- */

/* Shared page container with side and bottom spacing */
.container {
  padding-left: 16px;   /* mobile side spacing */
  padding-right: 16px;  /* mobile side spacing */
  padding-bottom: 30px;  /* spacing inside */
  margin: 0 auto;
}

/* Add space between the header area and the main page content */
main.container {
  padding-top: 16px;
}

/* ----------------- End of Shared page container spacing ----------------- */

/* ----------------- site-back-link styles and spacing ----------------- */

/* reusable pill-style back link used across lessons, policy pages, and experience pages */

/* Shared back link appearance */
.site-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #3a3a3a;
  border-radius: 999px;
  background-color: #111111;
  color: #e7e1e1;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Highlight the back link slightly on hover */
.site-back-link:hover {
  background-color: #1f2638;
  border-color: #6b76f3;
  color: #ffffff;
}

/* Keep keyboard focus visible for accessibility */
.site-back-link:focus {
  outline: 2px solid #9dbef7;
  outline-offset: 2px;
}

/* Add a subtle pressed effect while the link is clicked */
.site-back-link:active {
  transform: translateY(1px);
}

/* Add space below the first back link when it sits inside an opening paragraph */
p > .site-back-link {
  margin-bottom: 20px;
}

/* Add space above a standalone back link before the next block or footer area */
main > .site-back-link {
  margin-top: 24px;
}

/* ----------------- End of site-back-link styles and spacing ----------------- */

/* ----------------- Tablet styles (768px and wider) — placeholder ----------------- */

/* Tablet rules will be added here. */

/* ----------------- End of Tablet styles (768px and wider) — placeholder ----------------- */

/* ----------------- Desktop styles (1158px and wider) — placeholder ----------------- */

/* Desktop rules will be added here. */

/* ----------------- End of Desktop styles (1158px and wider) — placeholder ----------------- */
