body {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  line-height:1.7;
}

/* Glass frame: slightly bigger and perfectly behind the image */
.glassmorphism-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Adjust these calc values for your desired frame thickness */
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  z-index: 1;
}

/* Image appears above the glass frame */
.framed-image {
  position: relative;
  z-index: 2;
  border-radius: 16px; /* Match or slightly less than .glassmorphism-bg */
  width: 100%; /* or set a fixed size if required */
  display: block;
}

@font-face {
    font-family: 'TrashHand';
    src: url('../../asset/fonts/trashhand/TrashHand.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
.handwritten {
    font-family: 'TrashHand', cursive, sans-serif;
    font-size: 2.5rem;
}

/* Teachers page */
.teachers_course-card-container {
      transition: all 0.3s ease;
}

.teachers_course-card-container:hover {
    transform: translateY(-8px);
    box-shadow: rgba(151, 65, 252, 0.3) 0 20px 40px -5px,
                rgba(0, 0, 0, 0.3) 0 10px 15px -5px;
}

/* Animate the two star icons slightly upward */
.teachers_course-card-container img {
    transition: transform 0.3s ease;
}

.teachers_course-card-container:hover img {
    transform: translateY(-2px); /* move up slightly */
}

.teachers_course-card {
  background-image: linear-gradient(144deg,#AF40FF, #5B42F3 50%,#00DDEB);
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
  padding: 3px;
}

/* for Homepage */
.homepage_fade-in-hero {
  opacity: 0;
  transform: scale(0.95);
  animation: homepageFadeInHero 0.3s ease-in-out forwards;
}

@keyframes homepageFadeInHero {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.homepage_arrow-swipe-reveal {
  mask-image: linear-gradient(to bottom right, black 10%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom right, black 10%, black 100%);
  mask-size: 200% 200%;
  -webkit-mask-size: 200% 200%;
  mask-position: top left;
  -webkit-mask-position: top left;
  opacity: 0;
  animation: homepageSwipeRevealArrow 0.6s ease-in-out 0.4s forwards;
}

@keyframes homepageSwipeRevealArrow {
  0% {
    opacity: 0;
    mask-position: top left;
    -webkit-mask-position: top left;
  }
  100% {
    opacity: 1;
    mask-position: bottom right;
    -webkit-mask-position: bottom right;
  }
}

/* Fallback for Older Browsers */
@supports not (mask-image: linear-gradient(to bottom right, red, blue)) {
  .homepage_arrow-swipe-reveal {
    animation: homepageFallbackFadeIn 0.6s ease-in-out 0.4s forwards;
  }
  @keyframes homepageFallbackFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* -- */

.homepage_intro-text {
  background: linear-gradient(90deg, #27a8fc, #a259f7, #fc5cbf, #ff8854, #fdcb4d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.homepage_teachers-background::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('/asset/backgrounds/homepage-teachers.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  z-index: 0;
}

.homepage_teachers-background > * {
  position: relative;
  z-index: 1;
}

.homepage_why-choose-us-card {
  border-radius: 20px;
  padding: 1px 2px 1px 1px; /* Controls "border" thickness */
  background: none;
  transition: all 0.3s;
  position: relative;
}
.homepage_why-choose-us-card:hover {
  background-image: linear-gradient(163deg, #00ff75 0%, #3700ff 100%);
  box-shadow: 0px 0px 40px rgba(0, 255, 117, 0.2);
}
.homepage_why-choose-us-card .inner {
  background-color: #2a5428;
  border-radius: 17px;
  transition: transform 0.2s;
  color: white;
  height: 100%;
}
.homepage_why-choose-us-card .inner:hover {
  transform: scale(0.98);
}
