/* ==========================================================================
   Code Islah — style.css (refreshed UI + motion)
   Performance rules used here:
   - animations/transitions only touch transform, opacity (compositor-only),
     plus small one-off paints on hover (box-shadow / colour)
   - no `transition: all`, no width/left/top animation, no infinite loops
   - hover effects only on real hover devices; everything respects
     prefers-reduced-motion
   All original class names are kept, so no HTML/JS changes are needed.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: arabic-bolder;
  src: url(/fonts/Hidayatullah.ttf);
  font-display: swap;
}

@font-face {
  font-family: AAAGoldenLotusRegular;
  src: url(/fonts/AAAGoldenLotusRegular.ttf);
  font-display: swap;
}

@font-face {
  font-family: customFont;
  src: url(/fonts/KoyaSans-Regular.ttf);
  font-display: swap;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-accent) transparent;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--clr-accent);
  color: #fff;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.lead {
  text-wrap: balance;
}

input,
button,
textarea,
select {
  font: inherit;
  outline: 0;
  border: 0;
  border-radius: var(--rounded);
}

body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture,
label,
select {
  margin: 0;
}

ul,
li {
  list-style-type: none;
  margin: 0;
  line-height: 2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* GLOBAL VARIABLES */

:root {
  --clr-bg: linear-gradient(90deg, var(--clr-accent), var(--clr-light-50));
  --clr-primary: rgba(42, 83, 65, 0.9);
  --clr-secondary: rgba(156, 180, 169, 0.8);
  --clr-accent: rgba(68, 157, 143, 1);
  --clr-dark: rgba(12, 35, 24, 1);
  --clr-dark-50: rgba(12, 35, 24, 0.5);
  --clr-light: rgba(15, 249, 144, 1);
  --clr-light-50: rgba(15, 249, 144, 0.5);
  --clr-white: rgba(223, 247, 234, 0.7);
  --clr-warn: #fda99e;
  --clr-btn: linear-gradient(
    to left,
    rgba(246, 218, 136, 1),
    rgba(203, 165, 37, 1)
  );
  --clr-border: rgba(127, 150, 145, 1);
  --clr-flow: rgba(201, 228, 208, 1);
  --clr-glass: rgba(255, 255, 255, 0.1);
  --clr-html: #e37631;
  --clr-css: #469aba;
  --clr-js: #cbcb41;

  --size-100: 0.25rem;
  --size-200: 0.625rem;
  --size-300: 1rem;
  --size-400: 1.5rem;
  --size-500: 2rem;
  --size-600: 2.5rem;
  --size-700: 3rem;
  --size-800: 4rem;

  --size-solid-100: 10px;
  --size-solid-200: 25px;
  --size-solid-300: 35px;
  --size-solid-400: 50px;
  --size-solid-500: 75px;
  --size-solid-600: 100px;

  --rounded: 8px;
  --circle: 50%;

  --padd-btn: 5px;
  --padd-tiny: 5px;
  --padd-normal: 10px;
  --padd-medium: 18px;
  --padd-high: 25px;

  --margin-normal: 10px;
  --margin-medium: 18px;
  --margin-high: 25px;

  --fs-100: 0.725rem;
  --fs-200: 0.9rem;
  --fs-300: 0.95rem;
  --fs-400: 1.3rem;
  --fs-500: 2rem;
  --fs-600: 2.5rem;
  --fs-700: 3rem;

  --fw-100: 300;
  --fw-200: 400;
  --fw-300: 500;
  --fw-400: 600;
  --fw-500: 700;
  --fw-600: 900;

  --width-100: 100%;
  --width-75: 75%;
  --width-50: 50%;
  --width-25: 25%;
  --width-10: 10%;

  --blur-glass: 15px;
  --blur-abs: 30px;

  /* motion + depth tokens */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-soft: 0 4px 14px -4px rgba(12, 35, 24, 0.35);
  --shadow-lift: 0 14px 28px -10px rgba(12, 35, 24, 0.55),
    0 0 18px -2px var(--clr-light-50);
}

body {
  font: 500 var(--size-300) / 1.5 customFont, sans-serif;
  overflow-x: hidden;
  /* max-height: 100vh; */
  background: var(--clr-bg);
  color: var(--clr-dark-50);
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  background-size: contain;
  /* background-color: hsl(195, 60%, 20%); FOR DARK MODE */
}

/* utility */

.p {
  font-weight: var(--fw-200);
  font-size: var(--fs-200);
  color: var(--clr-dark-50);
}

.h1,
.h2,
.h3,
.h4,
.h5 {
  color: var(--clr-dark);
}

.h5 {
  font-size: clamp(var(--fs-200), 100vw, var(--fs-300));
}

.h4 {
  font-size: var(--fs-400);
  letter-spacing: var(--size-100);
  font-weight: var(--fw-600);
  font-family: arabic-bolder;
  padding-block: var(--size-200);
}

.h3 {
  font-size: min(var(--fs-700), 7vw);
  padding: var(--size-200);
}

.h2 {
  font-size: var(--fs-400);
}

.h1 {
  font-size: var(--fs-500);
}

.btn {
  outline: 1px solid rgba(246, 218, 136, 1);
  padding: var(--padd-btn);
  text-transform: uppercase;
  font-weight: var(--fw-500);
  color: var(--clr-primary);
  background: var(--clr-btn);
  background-size: 200% 100%;
  background-position: 100% 0;
}

button,
.btn {
  cursor: pointer;
  transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out),
    background-position 450ms var(--ease-out), filter 200ms;
}

button:disabled,
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.cursorPointer {
  cursor: pointer;
}

.smoother {
  transition: opacity 450ms linear, transform 450ms linear, color 450ms linear;
}

input[type="checkbox"] {
  accent-color: var(--clr-light);
}
input[type="radio"] {
  accent-color: var(--clr-accent);
}

.active {
  border-bottom: 1px solid var(--clr-accent);
  border-top-right-radius: var(--rounded);
  border-bottom-right-radius: var(--rounded);
}

i.bi {
  font-size: var(--size-solid-200) !important;
}

.logo,
.thumbnail,
.icon,
.toggler {
  width: var(--size-solid-300);
  height: var(--size-solid-300);
}

.logo:active,
.thumbnail:active,
.icon:active,
.toggler:active svg {
  transform: scale(0.95);
  color: var(--clr-accent);
}

.aspect-1 {
  aspect-ratio: 1;
}

.flow * + * {
  margin-top: var(--size-400);
}

.flow-tiny * + * {
  margin-top: var(--size-200);
}

.lead {
  font-size: var(--fs-300);
  font-weight: var(--fw-300);
}

.d-none {
  display: none;
}

.d-inline {
  display: inline;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.flex {
  flex: 1;
}

.flex-dir-col {
  flex-direction: column;
}

.justify-content-start {
  justify-content: start;
}

.justify-content-center {
  justify-content: center;
}

.space-between {
  justify-content: space-between;
}

.space-evenly {
  justify-content: space-evenly;
}

.align-self-center {
  align-self: center;
}

.align-self-end {
  align-self: end;
}

.align-between {
  align-content: space-between;
}

.align-evenly {
  align-content: space-evenly;
}

.justify-self-center {
  justify-self: center;
}

.justify-self-end {
  justify-self: end;
}

.align-items-center {
  align-items: center;
}
.align-items-end {
  align-items: end;
}

.d-grid {
  display: grid;
}

.gap-100 {
  gap: var(--size-100);
}

.gap-200 {
  gap: var(--size-200);
}

.gap-300 {
  gap: var(--size-300);
}

.gap-400 {
  gap: var(--size-400);
}

.grid-column-100 {
  grid-column: 1 / -1;
}

.col-2 {
  columns: 2;
}

.place-content-center {
  place-content: center;
}

.place-items-center {
  place-items: center;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.fs-100 {
  font-size: var(--fs-100);
}

.fs-200 {
  font-size: var(--fs-200);
}

.fs-300 {
  font-size: var(--fs-300);
}

.fs-400 {
  font-size: var(--fs-400);
}

.fs-500 {
  font-size: var(--fs-500);
}

.fs-600 {
  font-size: var(--fs-600);
}

.fw-100 {
  font-weight: var(--fw-100);
}

.fw-200 {
  font-weight: var(--fw-200);
}

.fw-300 {
  font-weight: var(--fw-300);
}

.fw-400 {
  font-weight: var(--fw-400);
}

.fw-500 {
  font-weight: var(--fw-500);
}

.fw-600 {
  font-weight: var(--fw-600);
}

.uppercase {
  text-transform: uppercase;
}

.arabic-bolder {
  font-family: arabic-bolder;
}

.arabic-linear {
  font-family: arabic-linear;
}

.arabic-flatten {
  font-family: arabic-flatten;
}

.AAAGoldenLotusRegular {
  font-family: AAAGoldenLotusRegular;
}

.p-tiny {
  padding: var(--padd-tiny);
}

.p-normal {
  padding: var(--padd-normal);
}

.p-medium {
  padding: var(--padd-medium);
}

.p-high {
  padding: var(--padd-high);
}

.p-inline-normal {
  padding-inline: var(--padd-normal);
}

.p-inline-medium {
  padding-inline: var(--padd-medium);
}

.p-inline-high {
  padding-inline: var(--padd-high);
}

.p-block-normal {
  padding-block: var(--padd-normal);
}

.p-block-medium {
  padding-block: var(--padd-medium);
}

.p-block-high {
  padding-block: var(--padd-high);
}

.m-inline-normal {
  margin-inline: var(--padd-normal);
}

.m-inline-medium {
  margin-inline: var(--padd-medium);
}

.m-inline-high {
  margin-inline: var(--padd-high);
}

.m-block-normal {
  margin-block: var(--padd-normal);
}

.m-block-medium {
  margin-block: var(--padd-medium);
}

.m-block-high {
  margin-block: var(--padd-high);
}

.m-normal {
  margin: var(--padd-normal);
}

.m-medium {
  margin: var(--padd-medium);
}

.m-high {
  margin: var(--padd-high);
}

.m-top {
  margin-top: var(--margin-high);
}

.m-top-tiny {
  margin-top: var(--size-solid-100);
}

.m-bottom {
  margin-bottom: var(--margin-high);
}

.m-bottom-tiny {
  margin-bottom: var(--size-solid-100);
}

.m-auto {
  margin: 0 auto !important;
}

.m-right {
  margin: 0 0 0 auto;
}

.m-left {
  margin: 0 auto 0 0;
}

.pointer-auto {
  pointer-events: auto;
}

.pointer-none {
  pointer-events: none;
}

.opacity-1 {
  opacity: 1;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-0 {
  opacity: 0;
}

.shadow {
  box-shadow: 0 0 10px 2px var(--clr-light-50);
}
.darkShadow {
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
}

.text-shadow {
  text-shadow: 0 0 3px var(--clr-dark), 0 0 25px var(--clr-white);
}

.rounded {
  border-radius: var(--rounded);
}

.circle {
  aspect-ratio: 1;
  border-radius: var(--circle);
}

.pos-ab {
  position: absolute;
}

.inset-0 {
  inset: 0;
}

.pos-rel {
  position: relative;
}

.pos-fixed {
  position: fixed;
  z-index: 1000 !important;
}

.top {
  top: 0 !important;
}

.bottom {
  bottom: 0 !important;
}

.left {
  left: 0;
}

.right {
  right: 0;
}

.width-50 {
  width: var(--width-50);
}

.width-100 {
  width: var(--width-100);
}

.width-75 {
  width: var(--width-75);
}

.width-25 {
  width: var(--width-25);
}

.width-10 {
  width: var(--width-10);
}

.min-content {
  width: min-content !important;
  padding-inline: var(--size-solid-100);
  margin: 0 auto;
}

.height-0 {
  height: 0;
  overflow: hidden;
}

.height-solid {
  height: 300px;
}

.index-1 {
  z-index: 1;
}

.index-100 {
  z-index: 100;
}

.index-0 {
  z-index: -1;
}

.border-common {
  border: 1px solid var(--clr-accent);
}

.border-left {
  border-left: 5px solid var(--clr-light);
}
.border-bottom {
  border-bottom: 2px solid var(--clr-accent);
}

.outline-common {
  outline: 3px solid var(--clr-border);
}

.linear-grad {
  background: linear-gradient(45deg, var(--clr-light-50), var(--clr-dark-50));
}

.linear-grad-odd {
  background: linear-gradient(45deg, #eee, transparent);
}

.transition {
  transition: height 400ms var(--ease-out), opacity 400ms var(--ease-out),
    transform 400ms var(--ease-out), background-color 400ms, color 400ms;
}

.blur-effect {
  backdrop-filter: blur(var(--blur-glass));
}

.blur-front {
  filter: blur(var(--blur-abs));
}

.blur-high {
  backdrop-filter: blur(100px);
}

.white-filter {
  filter: brightness(1000%) contrast(100%) saturate(0%) blur(var(--blur-abs));
}

.blue-filter {
  filter: sepia(30%) hue-rotate(180deg) saturate(300%) brightness(90%)
    blur(var(--blur-abs));
}

.overflow-hidden {
  overflow: hidden;
}

.clr-bg-primary {
  background: var(--clr-primary);
}

.clr-bg-secondary {
  background: var(--clr-secondary);
}

.clr-bg-accent {
  background: var(--clr-accent);
}

.clr-bg-light {
  background: var(--clr-light);
}

.clr-bg-light-50 {
  background: var(--clr-light-50);
}

.clr-bg-dark {
  background: var(--clr-dark);
}

.clr-bg-dark-50 {
  background: var(--clr-dark-50);
}

.clr-bg-glass {
  background: var(--clr-glass);
}

.clr-bg-white {
  background: var(--clr-white);
}

.clr-text-primary {
  color: var(--clr-primary);
}

.clr-text-secondary {
  color: var(--clr-secondary);
}

.clr-text-accent {
  color: var(--clr-accent);
}

.clr-text-light {
  color: var(--clr-light);
}

.clr-text-light-50 {
  color: var(--clr-light-50);
}

.clr-text-dark {
  color: var(--clr-dark);
}

.clr-text-dark-50 {
  color: var(--clr-dark-50);
}

.clr-text-white {
  color: var(--clr-white);
}
.clr-text-warn {
  color: var(--clr-warn);
}

/* HOVER & ACTIVE */
.profile:hover {
  transform: translateX(0);
}

a {
  transition: filter 200ms, color 200ms;
}

a:hover {
  filter: brightness(80%);
}

.profile div span:hover,
input:focus,
input[type="button"]:hover,
input[type="submit"]:hover {
  filter: brightness(90%);
}

.btn:active,
a:active {
  transform: scale(0.95);
}

/* hover lifts only on devices that really hover (no sticky hover on touch) */
@media (hover: hover) {
  button:hover,
  .btn:hover {
    transform: translateY(-2px);
    background-position: 0 0;
    box-shadow: 0 6px 14px -6px var(--clr-light);
    user-select: none;
  }

  .post > div:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lift);
  }

  .mentors > .mentor:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
  }

  .counter > div:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
  }
}

/* keyboard focus */
:focus-visible {
  outline: 2px solid var(--clr-light);
  outline-offset: 2px;
}

/* card transitions (hover-out is smooth too) */
.post > div,
.mentors > .mentor,
.counter > div {
  transition: transform 350ms var(--ease-out), box-shadow 350ms var(--ease-out);
}

/* COMMON CLASSES */

.container {
  margin-inline: var(--size-300);
}

section {
  margin-top: var(--size-solid-500);
}

iframe {
  height: 50vh;
  width: 100%;
}

/* PROFILE */
.profile {
  background-repeat: no-repeat;
  height: var(--size-solid-400);
  width: var(--size-solid-400);
  border-radius: var(--rounded);
  box-shadow: var(--shadow-soft);
  transform: translateX(50%);
  transition: transform 300ms var(--ease-out), width 300ms var(--ease-out),
    height 300ms var(--ease-out), border-radius 300ms, background-color 300ms;
  position: fixed;
  top: 18%;
  right: var(--size-100);
  padding: var(--size-200);
  z-index: 10;
  text-align: center;
  overflow: hidden;
  display: grid;
  justify-items: center;
}

.profile img {
  position: absolute;
  padding: var(--size-100);
}
.profile span[data-close] {
  display: none;
}

.profile div i {
  pointer-events: none;
}

/* PROFILE WHEN ACTIVE */
.profile.active {
  background-image: none;
  border: 1px solid var(--clr-flow);
  background-color: var(--clr-accent);
  border-radius: var(--size-400);
  width: min(50%, calc(var(--size-solid-600) * 6));
  height: fit-content;
  transform: translateX(0);
}
.profile.active img {
  position: static;
  width: 25%;
  box-shadow: 0 0 2px 3px var(--clr-light-50);
}

.profile.active span[data-close] {
  display: block;
  color: var(--clr-warn);
  text-align: right;
  position: absolute;
  right: var(--size-300);
  top: var(--size-100);
  transition: transform 300ms;
  cursor: pointer;
  user-select: none;
}
.profile.active span[data-close]:hover {
  color: coral;
}

.profile.active > div {
  display: flex;
  gap: var(--size-500);
}

/* NOTICE */
.notice {
  font-weight: var(--fw-500);
  color: var(--clr-primary);
  width: max-content;
  height: min-content;
  margin: 0 auto;
  padding: var(--size-200);
  background-color: var(--clr-flow);
  border-radius: var(--rounded);
  transform: translateY(100%);
  transition: transform 900ms;
  position: fixed;
  left: 45%;
  z-index: 1000 !important;
}

/* HEADER */

.banner {
  background: var(--clr-btn);
  background-clip: text;
  color: transparent;
}

.nav {
  grid-template-columns: 1fr auto 1fr;
  z-index: 1000 !important;
}

.navbar-md-collapse > ul li:nth-child(4) {
  position: relative;
}

#navbar > ul li:nth-child(4)::before {
  content: attr(data-counted);
  width: 25px;
  height: 25px;
  background: var(--clr-btn);
  position: absolute;
  right: 0;
  text-align: center;
  color: var(--clr-primary);
  font-weight: var(--fw-500);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 3px 3px -1px var(--clr-light);
}

.main {
  background: url(/img/pattern-top.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: 0 -100px;
}

.main .h1 span {
  position: relative;
  display: inline-block;
  transition: transform 100ms, color 300ms;
  text-shadow: 0 0 20px var(--clr-light);
  animation: textGlow 1s linear;
}
@keyframes textGlow {
  from {
    text-shadow: 0 0 20px var(--clr-light);
  }
  to {
    text-shadow: 0 0 20px var(--clr-accent);
  }
}

.explore,
.layout,
.mentorWrapper {
  position: relative;
}

body::after,
body::before,
.explore::after,
.explore::before,
.layout::after,
.layout::before,
.mentorWrapper::after,
.mentorWrapper::before {
  content: "";
  position: absolute;
  right: 0;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.15);
  transform: skewY(-205deg);
  z-index: -100;
  pointer-events: none;
}

body::after {
  top: 10vh;
  width: 30%;
}
body::before {
  top: 18vh;
  width: 35%;
}
.explore::after {
  top: 8vh;
  left: -5%;
  width: 30%;
}
.explore::before {
  top: 5vh;
  left: -5%;
  width: 25%;
}
.layout::after {
  bottom: 50%;
  left: -5%;
  width: 60%;
  height: 150px;
}
.layout::before {
  top: 15vh;
  left: -5%;
  width: 35%;
}
.mentorWrapper::after {
  top: -2%;
  right: -5%;
  width: 40%;
  height: 300px;
}
.mentorWrapper::before {
  top: 0;
  right: -5%;
  width: 35%;
  height: 300px;
}

.header__text {
  background-color: var(--clr-light-50);
  clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
  color: var(--clr-dark-50) !important;
}

.post {
  grid-template-columns: 1fr;
}

.post > div {
  display: grid;
  align-content: space-between;
  justify-content: center;
}

.post > div > h4 {
  padding: var(--size-400);
  color: var(--clr-light);
  position: relative;
  font-size: var(--fs-500);
}

.post > div > h4::before {
  content: "";
  background-repeat: no-repeat;
  overflow: hidden;
  width: 50%;
  height: 200px;
  position: absolute;
  top: 0;
  left: 5%;
  opacity: 0.2;
  z-index: -1;
}

.post > div:first-child > h4::before {
  background-image: url("data:image/svg+xml,%3Csvg fill='rgba(223, 247, 234, .7)' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 512 512' enable-background='new 0 0 512 512' xml:space='preserve' stroke='%23dff7eab3'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cg id='c133de6af664cd4f011a55de6b001b19'%3E%3Cpath display='inline' d='M483.111,0.501l-42.59,461.314l-184.524,49.684L71.47,461.815L28.889,0.501H483.111z M397.29,94.302 H255.831H111.866l6.885,55.708h137.08h7.7l-7.7,3.205l-132.07,55.006l4.38,54.453l127.69,0.414l68.438,0.217l-4.381,72.606 l-64.058,18.035v-0.057l-0.525,0.146l-61.864-15.617l-3.754-45.07h-0.205H132.1h-0.202l7.511,87.007l116.423,34.429v-0.062 l0.21,0.062l115.799-33.802l15.021-172.761h-131.03h-0.323l0.323-0.14l135.83-58.071L397.29,94.302z'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.post > div:nth-child(2) > h4::before {
  background-image: url("data:image/svg+xml,%3Csvg fill='rgba(223, 247, 234, .7)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --%3E%3Cpath d='M0 32v448h448V32H0zm243.8 349.4c0 43.6-25.6 63.5-62.9 63.5-33.7 0-53.2-17.4-63.2-38.5l34.3-20.7c6.6 11.7 12.6 21.6 27.1 21.6 13.8 0 22.6-5.4 22.6-26.5V237.7h42.1v143.7zm99.6 63.5c-39.1 0-64.4-18.6-76.7-43l34.3-19.8c9 14.7 20.8 25.6 41.5 25.6 17.4 0 28.6-8.7 28.6-20.8 0-14.4-11.4-19.5-30.7-28l-10.5-4.5c-30.4-12.9-50.5-29.2-50.5-63.5 0-31.6 24.1-55.6 61.6-55.6 26.8 0 46 9.3 59.8 33.7L368 290c-7.2-12.9-15-18-27.1-18-12.3 0-20.1 7.8-20.1 18 0 12.6 7.8 17.7 25.9 25.6l10.5 4.5c35.8 15.3 55.9 31 55.9 66.2 0 37.8-29.8 58.6-69.7 58.6z'/%3E%3C/svg%3E");
}
.post > div:nth-child(3) > h4::before {
  background-image: url("data:image/svg+xml,%3Csvg fill='rgba(223, 247, 234, .7)' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3C!--! Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc. --%3E%3Cpath d='M333.5,201.4c0-22.1-15.6-34.3-43-34.3h-50.4v71.2h42.5C315.4,238.2,333.5,225,333.5,201.4z M517,188.6 c-9.5-30.9-10.9-68.8-9.8-98.1c1.1-30.5-22.7-58.5-54.7-58.5H123.7c-32.1,0-55.8,28.1-54.7,58.5c1,29.3-0.3,67.2-9.8,98.1 c-9.6,31-25.7,50.6-52.2,53.1v28.5c26.4,2.5,42.6,22.1,52.2,53.1c9.5,30.9,10.9,68.8,9.8,98.1c-1.1,30.5,22.7,58.5,54.7,58.5h328.7 c32.1,0,55.8-28.1,54.7-58.5c-1-29.3,0.3-67.2,9.8-98.1c9.6-31,25.7-50.6,52.1-53.1v-28.5C542.7,239.2,526.5,219.6,517,188.6z M300.2,375.1h-97.9V136.8h97.4c43.3,0,71.7,23.4,71.7,59.4c0,25.3-19.1,47.9-43.5,51.8v1.3c33.2,3.6,55.5,26.6,55.5,58.3 C383.4,349.7,352.1,375.1,300.2,375.1z M290.2,266.4h-50.1v78.4h52.3c34.2,0,52.3-13.7,52.3-39.5 C344.7,279.6,326.1,266.4,290.2,266.4z'/%3E%3C/svg%3E");
}
.post > div:nth-child(4) > h4::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='%23dff7eab3'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Ctitle%3Ereact%3C/title%3E%3Crect width='24' height='24' fill='none'%3E%3C/rect%3E%3Cpath d='M12,10.11A1.87,1.87,0,1,1,10.13,12,1.88,1.88,0,0,1,12,10.11M7.37,20c.63.38,2-.2,3.6-1.7a24.22,24.22,0,0,1-1.51-1.9A22.7,22.7,0,0,1,7.06,16c-.51,2.14-.32,3.61.31,4m.71-5.74-.29-.51a7.91,7.91,0,0,0-.29.86c.27.06.57.11.88.16l-.3-.51m6.54-.76.81-1.5-.81-1.5c-.3-.53-.62-1-.91-1.47C13.17,9,12.6,9,12,9s-1.17,0-1.71,0c-.29.47-.61.94-.91,1.47L8.57,12l.81,1.5c.3.53.62,1,.91,1.47.54,0,1.11,0,1.71,0s1.17,0,1.71,0c.29-.47.61-.94.91-1.47M12,6.78c-.19.22-.39.45-.59.72h1.18c-.2-.27-.4-.5-.59-.72m0,10.44c.19-.22.39-.45.59-.72H11.41c.2.27.4.5.59.72M16.62,4c-.62-.38-2,.2-3.59,1.7a24.22,24.22,0,0,1,1.51,1.9,22.7,22.7,0,0,1,2.4.36c.51-2.14.32-3.61-.32-4m-.7,5.74.29.51a7.91,7.91,0,0,0,.29-.86c-.27-.06-.57-.11-.88-.16l.3.51m1.45-7c1.47.84,1.63,3.05,1,5.63,2.54.75,4.37,2,4.37,3.68s-1.83,2.93-4.37,3.68c.62,2.58.46,4.79-1,5.63s-3.45-.12-5.37-1.95c-1.92,1.83-3.91,2.79-5.38,1.95s-1.62-3-1-5.63c-2.54-.75-4.37-2-4.37-3.68S3.08,9.07,5.62,8.32c-.62-2.58-.46-4.79,1-5.63s3.46.12,5.38,1.95c1.92-1.83,3.91-2.79,5.37-1.95M17.08,12A22.51,22.51,0,0,1,18,14.26c2.1-.63,3.28-1.53,3.28-2.26S20.07,10.37,18,9.74A22.51,22.51,0,0,1,17.08,12M6.92,12A22.51,22.51,0,0,1,6,9.74c-2.1.63-3.28,1.53-3.28,2.26S3.93,13.63,6,14.26A22.51,22.51,0,0,1,6.92,12m9,2.26-.3.51c.31,0,.61-.1.88-.16a7.91,7.91,0,0,0-.29-.86l-.29.51M13,18.3c1.59,1.5,3,2.08,3.59,1.7s.83-1.82.32-4a22.7,22.7,0,0,1-2.4.36A24.22,24.22,0,0,1,13,18.3M8.08,9.74l.3-.51c-.31,0-.61.1-.88.16a7.91,7.91,0,0,0,.29.86l.29-.51M11,5.7C9.38,4.2,8,3.62,7.37,4s-.82,1.82-.31,4a22.7,22.7,0,0,1,2.4-.36A24.22,24.22,0,0,1,11,5.7Z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
}
.post > div:nth-child(5) > h4::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg' fill='%23dff7eab3'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Ctitle%3Enode-js%3C/title%3E%3Cg id='Layer_2' data-name='Layer 2'%3E%3Cg id='invisible_box' data-name='invisible box'%3E%3Crect width='48' height='48' fill='none'%3E%3C/rect%3E%3C/g%3E%3Cg id='Q3_icons' data-name='Q3 icons'%3E%3Cg%3E%3Cpath d='M42.3,11.8,25.7,2.4a4,4,0,0,0-3.4,0L5.7,11.8A3.4,3.4,0,0,0,4,14.7V33.3a3.4,3.4,0,0,0,1.7,2.9l4.4,2.5a7.2,7.2,0,0,0,3.8,1c3.1,0,4.9-1.9,4.9-5.1V16.3a.5.5,0,0,0-.5-.5H16.2a.5.5,0,0,0-.5.5V34.6c0,1.5-1.5,2.9-3.9,1.7L7.2,33.7a.5.5,0,0,1-.2-.4V14.7a.8.8,0,0,1,.2-.5L23.7,4.9h.6l16.5,9.3a.8.8,0,0,1,.2.5V33.3a.5.5,0,0,1-.2.4L24.3,43a.6.6,0,0,1-.6,0l-4.2-2.4a.3.3,0,0,0-.4,0l-2.5,1.1c-.3.1-.7.2.1.7l5.6,3.1a3.1,3.1,0,0,0,3.4,0l16.6-9.3A3.4,3.4,0,0,0,44,33.3V14.7A3.4,3.4,0,0,0,42.3,11.8Z'%3E%3C/path%3E%3Cpath d='M29.1,30.3c-4.4,0-5.3-1-5.7-3.1a.4.4,0,0,0-.4-.4H20.8a.4.4,0,0,0-.4.4c0,2.7,1.5,6,8.7,6,5.2,0,8.2-2,8.2-5.5s-2.4-4.5-7.5-5.1-5.6-1-5.6-2.2.4-2.2,4.2-2.2,4.7.7,5.2,2.9a.5.5,0,0,0,.5.4h2.1l.4-.2a.4.4,0,0,0,.1-.3c-.3-3.9-3-5.7-8.3-5.7s-7.5,2-7.5,5.2,2.8,4.5,7.3,5,5.9,1.2,5.9,2.3S32.6,30.3,29.1,30.3Z'%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.post > div:nth-child(6) > h4::before {
  background-image: url("data:image/svg+xml,%3Csvg fill='%23dff7eab3' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Cpath d='M126.67 98.44c-4.56 1.16-7.38.05-9.91-3.75-5.68-8.51-11.95-16.63-18-24.9-.78-1.07-1.59-2.12-2.6-3.45C89 76 81.85 85.2 75.14 94.77c-2.4 3.42-4.92 4.91-9.4 3.7l26.92-36.13L67.6 29.71c4.31-.84 7.29-.41 9.93 3.45 5.83 8.52 12.26 16.63 18.67 25.21 6.45-8.55 12.8-16.67 18.8-25.11 2.41-3.42 5-4.72 9.33-3.46-3.28 4.35-6.49 8.63-9.72 12.88-4.36 5.73-8.64 11.53-13.16 17.14-1.61 2-1.35 3.3.09 5.19C109.9 76 118.16 87.1 126.67 98.44zM1.33 61.74c.72-3.61 1.2-7.29 2.2-10.83 6-21.43 30.6-30.34 47.5-17.06C60.93 41.64 63.39 52.62 62.9 65H7.1c-.84 22.21 15.15 35.62 35.53 28.78 7.15-2.4 11.36-8 13.47-15 1.07-3.51 2.84-4.06 6.14-3.06-1.69 8.76-5.52 16.08-13.52 20.66-12 6.86-29.13 4.64-38.14-4.89C5.26 85.89 3 78.92 2 71.39c-.15-1.2-.46-2.38-.7-3.57q.03-3.04.03-6.08zm5.87-1.49h50.43c-.33-16.06-10.33-27.47-24-27.57-15-.12-25.78 11.02-26.43 27.57z'/%3E%3C/svg%3E");
}
.post > div:nth-child(7) > h4::before {
  background-image: url("data:image/svg+xml,%3Csvg fill='%23dff7eab3' viewBox='0 0 32 32' version='1.1' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Ctitle%3Emongodb%3C/title%3E%3Cpath d='M15.821 23.185s0-10.361 0.344-10.36c0.266 0 0.612 13.365 0.612 13.365-0.476-0.056-0.956-2.199-0.956-3.005zM22.489 12.945c-0.919-4.016-2.932-7.469-5.708-10.134l-0.007-0.006c-0.338-0.516-0.647-1.108-0.895-1.732l-0.024-0.068c0.001 0.020 0.001 0.044 0.001 0.068 0 0.565-0.253 1.070-0.652 1.409l-0.003 0.002c-3.574 3.034-5.848 7.505-5.923 12.508l-0 0.013c-0.001 0.062-0.001 0.135-0.001 0.208 0 4.957 2.385 9.357 6.070 12.115l0.039 0.028 0.087 0.063q0.241 1.784 0.412 3.576h0.601c0.166-1.491 0.39-2.796 0.683-4.076l-0.046 0.239c0.396-0.275 0.742-0.56 1.065-0.869l-0.003 0.003c2.801-2.597 4.549-6.297 4.549-10.404 0-0.061-0-0.121-0.001-0.182l0 0.009c-0.003-0.981-0.092-1.94-0.261-2.871l0.015 0.099z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
}

.post > div p {
  padding: var(--size-400);
}

.post div button {
  width: 100%;
  padding: var(--size-200);
  background: var(--clr-btn);
  color: var(--clr-accent);
  font-weight: var(--fw-500);
}

/* WHY ANALOGY */

.whyAnalogy ul li {
  position: relative;
  padding: var(--padd-normal);
  color: var(--clr-white);
  margin: 0 auto;
}

.whyAnalogy ul li::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 80%;
  background: var(--clr-dark);
  margin: 0 auto;
  transform: skewX(45deg);
  border-bottom: 1px solid var(--clr-flow);
  border-left: 10px solid var(--clr-accent);
  box-shadow: 0 0 10px 2px var(--clr-light-50);
  font-weight: var(--fw-600);
  border-radius: var(--rounded);
}

/* WHY ANALOGY GLOWING EFFECT (transform only) */

.whyAnalogy ul li {
  padding-bottom: 10px;
  position: relative;
}

.whyAnalogy ul li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0 auto;
  width: 100%;
  height: 3px;
  border-radius: var(--rounded);
  background: linear-gradient(90deg, var(--clr-light-50), var(--clr-light));
  transform-origin: 0 50%;
  transform: translateX(95%) scaleX(0);
}

.whyAnalogy ul li:nth-child(1)::after {
  animation: glow 3.5s var(--ease-out) 1.3s forwards;
}

.whyAnalogy ul li:nth-child(2)::after {
  animation: glow 4s var(--ease-out) 1.6s forwards;
}

.whyAnalogy ul li:nth-child(3)::after {
  animation: glow 4.5s var(--ease-out) 1.9s forwards;
}

.whyAnalogy ul li:nth-child(4)::after {
  animation: glow 5s var(--ease-out) 2.2s forwards;
}

.whyAnalogy ul li:nth-child(5)::after {
  animation: glow 5.5s var(--ease-out) 2.5s forwards;
}

@keyframes glow {
  0% {
    transform: translateX(10%) scaleX(0.05);
    opacity: 1;
  }

  50% {
    transform: translateX(45%) scaleX(0.1);
  }

  100% {
    transform: translateX(95%) scaleX(0);
    opacity: 0;
  }
}

/* MENTORS */
.mentors {
  grid-template-columns: 1fr;
  gap: var(--size-200);
}

.overlay {
  background: var(--clr-btn);
  height: var(--size-solid-600);
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 100%);
  z-index: -1;
  border-top-left-radius: var(--rounded);
  border-top-right-radius: var(--rounded);
}

.mentor {
  display: grid;
  align-content: space-between;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.mentor img {
  width: 50%;
  background: var(--clr-accent);
}

.mentor .btn {
  display: inline-block;
}

/* TOOLTIP WINDOW*/
.tooltipWindow {
  height: 100%;
  transform: translateX(-100%);
  z-index: 1000;
}

.tXtoggler {
  transform: translateX(0);
}

.close {
  display: inline-block;
  text-align: right !important;
  width: 95%;
  font-size: var(--fs-400);
  cursor: pointer;
}

/* FOOTER BOTTOM */
.footer {
  background-image: url("/img/pattern-bottom.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-size: cover;
  grid-template-columns: 1fr;
}

.footer * {
  text-align: center;
}

.footer div li {
  cursor: pointer;
}

.footer-md div:first-child {
  width: max(25vw, 50%);
  margin: 0 auto;
  padding-top: var(--size-300);
}

.footer-md div:nth-child(4) {
  padding-bottom: var(--size-300);
}

.footer-md div:nth-child(2) *:not(:first-child) {
  margin-left: var(--size-300);
}

/* footer polish */
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.footer div li {
  transition: color 200ms;
}

.footer div li:hover {
  color: var(--clr-light);
}

.footer i.bi {
  display: inline-block;
  transition: transform 250ms var(--ease-spring), color 200ms;
}

@media (hover: hover) {
  .footer i.bi:hover {
    transform: translateY(-3px) scale(1.15);
  }
}

/* HEADER / NAV POLISH */
header.blur-effect {
  border-bottom: 1px solid rgba(223, 247, 234, 0.12);
}

header.pos-fixed {
  top: 0;
  left: 0;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, 0.45);
  animation: slideDown 350ms var(--ease-out) backwards;
}

#navbar a {
  position: relative;
}

#navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--clr-btn);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease-out);
}

#navbar a:hover {
  filter: none;
}

#navbar a:hover::after,
#navbar li.active a::after {
  transform: scaleX(1);
  transform-origin: left;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
}

/* FOR TABLET 768px */
@media (min-width: 48em) {
  :root {
    --fs-100: 0.8rem;
    --fs-300: 1rem;
  }

  .h1 {
    font-size: var(--fs-700);
  }

  .h2 {
    font-size: var(--fs-600);
  }

  .width-md-50 {
    width: var(--width-50);
  }

  .width-md-75 {
    width: var(--width-75);
  }

  .lead {
    font-size: var(--fs-400);
    font-weight: var(--fw-100);
  }

  .logo {
    width: 100%;
  }

  .main {
    background-position: 0 -250px;
  }

  .header__text {
    width: 50%;
    margin: 0 0 0 auto;
    clip-path: polygon(5% 0%, 100% 0%, 100% 100%, 0% 100%);
    color: var(--clr-primary);
  }

  .header__text-md {
    width: 50ch;
    margin: 0 auto;
  }

  .h4 {
    font-size: var(--fs-400);
    letter-spacing: var(--size-100);
    font-weight: var(--fw-600);
    font-family: arabic-bolder;
    padding-block: var(--size-200);
  }

  .d-flex-md {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-auto-flow: column;
    gap: var(--size-500);
  }

  .nav-md-visible {
    grid-template-columns: 10% 20% 70%;
    justify-content: space-between;
    align-items: center;
    padding-block: var(--size-100);
  }

  .toggler-md-hide {
    display: none;
  }

  .navbar-md-collapse {
    opacity: 1;
    height: 100%;
    font-size: var(--fs-200);
  }

  .navbar-md-collapse > ul {
    display: grid;
    grid-auto-flow: column;
    justify-content: end;
    gap: var(--size-100);
    width: 100%;
  }

  .navbar-md-collapse > ul li {
    padding: var(--size-100);
  }

  .post {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }

  .mentors {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .sideBySide-md {
    display: flex;
    padding: var(--size-solid-100);
  }

  .sideBySide-md * {
    width: 50%;
    margin: 0 auto;
    line-height: 1.5;
  }

  .footer {
    background-position: 100%;
  }

  .footer-md {
    width: 70%;
    grid-template-areas:
      ". logo . "
      ". icons email"
      ". links .";
    gap: var(--size-300);
    justify-content: center;
  }

  .footer-md div:first-child {
    grid-area: logo;
    min-width: 50%;
    margin: 0 auto;
    padding: var(--size-300);
  }

  .footer-md div:nth-child(2) {
    grid-area: icons;
  }

  .footer-md div:nth-child(3) {
    grid-area: links;
  }

  .footer-md div:nth-child(4) {
    grid-area: email;
    margin: 0 auto;
  }
}

@media (min-width: 64em) {
  :root {
    --fs-100: 0.9rem;
    --fs-300: 1.3rem;
    --fs-600: 2rem;
    --size-solid-500: 100px;
  }

  .banner {
    font-size: var(--fs-600);
    white-space: nowrap;
  }

  .navbar-md-collapse > ul {
    gap: var(--size-300);
  }

  .whyAnalogy ul li::before {
    margin: 0 auto;
    width: 85%;
  }

  .main {
    background-position: 0 -450px;
  }

  .mentors {
    grid-template-columns: repeat(3, 1fr);
  }

  .header__text {
    width: 40%;
  }

  .footer-md {
    width: 70%;
    grid-template-columns: fit-content 1fr auto;
    grid-template-areas:
      "logo links icons "
      "logo links email";
    justify-content: center;
    gap: var(--size-800);
    align-items: center;
    padding-block: var(--size-800);
  }

  .footer-md div:nth-child(2) {
    grid-area: icons;
    justify-self: start;
  }

  .footer-md div:nth-child(3) {
    grid-area: links;
  }

  .footer-md div:nth-child(4) {
    grid-area: email;
  }

  .footer-md div:first-child {
    grid-area: logo;
    min-width: 100%;
    width: 25vw;
  }
}

/* Media For Profile Section */
@media (max-width: 400px) {
  .profile.active {
    width: 65%;
  }
  .profile > div:last-child {
    display: flex;
    justify-content: center;
    gap: var(--size-100);
  }
}
@media (min-width: 1400px) {
  .profile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: none;
    border: 1px solid var(--clr-flow);
    background-color: var(--clr-accent);
    border-radius: var(--size-400);
    width: calc(var(--size-solid-600) * 2.6);
    transform: translateX(0);
    border-style: solid;
    top: 15%;
  }

  .profile img {
    width: var(--size-700);
    position: absolute;
    right: 1%;
    padding: var(--size-100);
  }

  .profile.active {
    width: min(40%, 450px);
    height: min-content;
    display: grid;
    justify-content: center;
  }

  .profile.active img {
    width: 15%;
    position: static;
  }

  .profile div {
    display: grid;
    gap: var(--size-400);
    margin-top: var(--size-100);
  }

  .profile div.profName {
    display: none;
  }
  .profile div.profName + div {
    display: flex;
    padding: var(--size-200);
  }

  .profile div[data-lastChild] {
    display: grid;
    justify-items: left;
  }
}

/* ==========================================================================
   SCROLL REVEAL  (main.js adds .animate through IntersectionObserver)
   Uses keyframes with `backwards` fill so hover transforms still work
   after the reveal, and per-item stagger never delays hover effects.
   ========================================================================== */

.animate-top {
  opacity: 0;
  transform: translateY(32px);
}

.animate-scale {
  opacity: 0;
  transform: scale(0.92);
}

.animate-z {
  opacity: 0;
  transform: perspective(600px) rotateY(90deg) scale(0.9);
}

.animate-w {
  opacity: 0;
  transform: translateX(-36px);
}

.animate-right {
  opacity: 0;
  transform: translateX(36px);
}

[class*="animate-"].animate {
  opacity: 1;
  transform: none;
  animation-duration: 700ms;
  animation-timing-function: var(--ease-out);
  animation-fill-mode: backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}

.animate-top.animate {
  animation-name: revealUp;
}

.animate-scale.animate {
  animation-name: revealScale;
}

.animate-z.animate {
  animation-name: revealFlip;
}

.animate-w.animate {
  animation-name: revealLeft;
}

.animate-right.animate {
  animation-name: revealRight;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
}

@keyframes revealScale {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}

@keyframes revealFlip {
  from {
    opacity: 0;
    transform: perspective(600px) rotateY(90deg) scale(0.9);
  }
}

@keyframes revealLeft {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }
}

@keyframes revealRight {
  from {
    opacity: 0;
    transform: translateX(36px);
  }
}

/* stagger */
.post > :nth-child(1) {
  --i: 0;
}
.post > :nth-child(2) {
  --i: 1;
}
.post > :nth-child(3) {
  --i: 2;
}
.post > :nth-child(4) {
  --i: 3;
}
.post > :nth-child(5) {
  --i: 4;
}
.post > :nth-child(6) {
  --i: 5;
}
.post > :nth-child(7) {
  --i: 6;
}
.mentors > :nth-child(1) {
  --i: 0;
}
.mentors > :nth-child(2) {
  --i: 1;
}
.mentors > :nth-child(3) {
  --i: 2;
}
.mentors > :nth-child(4) {
  --i: 0;
}
.mentors > :nth-child(5) {
  --i: 1;
}
.mentors > :nth-child(6) {
  --i: 2;
}
.whyAnalogy li:nth-child(1) {
  --i: 0;
}
.whyAnalogy li:nth-child(2) {
  --i: 1;
}
.whyAnalogy li:nth-child(3) {
  --i: 2;
}
.whyAnalogy li:nth-child(4) {
  --i: 3;
}
.whyAnalogy li:nth-child(5) {
  --i: 4;
}

/* scroll progress bar: scroll-driven, runs off the main thread */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    html::before {
      content: "";
      position: fixed;
      inset: 0 0 auto 0;
      height: 3px;
      background: var(--clr-btn);
      transform-origin: 0 50%;
      transform: scaleX(0);
      z-index: 2000;
      pointer-events: none;
      animation: scrollProgress linear both;
      animation-timeline: scroll(root block);
    }
  }
}

@keyframes scrollProgress {
  to {
    transform: scaleX(1);
  }
}

/* no JS -> never leave content hidden */
@media (scripting: none) {
  [class*="animate-"] {
    opacity: 1;
    transform: none;
  }
}

/* accessibility: honour reduced-motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  [class*="animate-"] {
    opacity: 1;
    transform: none;
  }
}
