/* === Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 80px 22px;
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #0f3443;
  background: linear-gradient(135deg, #4e65ff 0%, #92effd 100%);
  background-attachment: fixed;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
/* Hero‐style banner */
.banner {
  position: relative;
  width: 100%;
  height: 50vh;           /* Fill half the viewport height */
  overflow: hidden;
  margin-bottom: 2.4rem;  /* Space below */
}

.banner img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner h1 {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.6rem 1.2rem;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  background-color: rgba(0, 0, 0, 0.5);
  text-align: center;
  line-height: 1.2;
}

/* Headings */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  margin: 2.4rem 0 1.2rem;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3,
h4 { font-size: 1.25rem; }

/* Paragraphs & Lists */
p,
li {
  max-width: 930px;
  font-size: 1.05rem;
}

ul,
ol {
  margin-left: 1.4rem;
}

/* Gradient accent links */
a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #34e89e 0%, #0f3443 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s ease;
}

a:hover::after,
a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* === Scroll-fade animation === */
.fade-in {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}
