/* Reset, typography, layout primitives, motion */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
html.no-scroll {
  overflow: hidden;
}
@media (max-width: 1023px) {
  html.no-scroll-m {
    overflow: hidden;
  }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  opacity: 0;
  transition: opacity 0.25s ease;
}
body.is-ready {
  opacity: 1;
}
body.is-leaving {
  opacity: 0;
  transition-duration: 0.14s;
}
html[lang='bn'] body {
  font-family: var(--font-bn);
  line-height: 1.75;
}
html[lang='en'] body {
  font-family: var(--font-en);
}
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}
html[lang='en'] h1,
html[lang='en'] h2,
html[lang='en'] h3 {
  font-family: var(--font-head-en);
}
html[lang='bn'] h1,
html[lang='bn'] h2,
html[lang='bn'] h3,
html[lang='bn'] h4 {
  line-height: 1.4;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(2rem, 4.4vw + 0.6rem, 3.4rem);
}
h2 {
  font-size: clamp(1.5rem, 2.2vw + 0.8rem, 2.25rem);
}
h3 {
  font-size: 1.15rem;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  color: var(--blue-700);
}
img,
svg {
  max-width: 100%;
  display: block;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
address {
  font-style: normal;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
hr {
  border: 0;
  border-top: 1px solid var(--border);
}
::selection {
  background: var(--blue-100);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.icon {
  flex: none;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 640px) {
  .sr-only-m {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
}
#site-header,
#site-footer {
  display: contents; /* keeps the sticky header's containing block = body */
}
main:focus {
  outline: none;
}

/* layout */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow {
  width: min(100% - 2.5rem, var(--container-narrow));
}
.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.section--tight {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}
.section--flush {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}
.section--tint {
  background: var(--bg-light);
}
.center {
  text-align: center;
}
.mt-md {
  margin-top: 1.5rem;
}
.mt-lg {
  margin-top: 2.5rem;
}
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--courses {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.grid--why {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: translateY(8px);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.5);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(18, 183, 106, 0);
  }
}
.hero-in {
  animation: fadeUp 0.8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
