/* Transparent header overlay on hero — turns solid after scrolling past the top.
   Scoped to landing.css only (loaded for home.ejs); other pages keep the
   default sticky/solid header from header.css. */
.site-header {
  position: fixed;
  background: transparent;
  box-shadow: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: #2A2774;
  box-shadow: 0 2px 12px rgba(42, 39, 116, 0.25);
}

/* Hero */
.hero {
  position: relative;
  background-image: url('/images/Abest_bg_AI_01.png');
  background-color: #2A2774;
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: #fff;
  padding: 2rem 0;
  text-align: center;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

/* .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(42,39,116,0.92) 30%, rgba(42,39,116,0.55) 100%);
} */
.hero-inner {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gold-shine {
  font-size: 120px;
  background: linear-gradient(90deg,
      #B87518 0%,
      #fff2a8 10%,
      #E9A928 20%,
      #FFF2A8 30%,
      #E9A928 40%,
      #FFF2A8 50%,
      #E9A928 60%,
      #FFD84D 70%,
      #FFF2A8 80%,
      #E9A928 90%,
      #B87518 100%);
  background-size: 250% auto;
  color: transparent;
  background-clip: text;
  animation: goldShine 10s linear infinite;
}

@keyframes goldShine {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 250% center;
  }
}

.hero-inner h1,
.hero-inner h2,
.hero-inner p,
.hero-inner .hero-actions {
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards;
}

.hero-inner h1 {
  animation-delay: 0.1s;
}

.hero-inner h2 {
  animation-delay: 0.25s;
}

.hero-inner p {
  animation-delay: 0.4s;
}

.hero-inner .hero-actions {
  animation-delay: 0.55s;
}

.hero h1 {
  color: #ffffff;
  font-size: 46px;
  margin-bottom: 1rem;
}

.hero h2 {
  color: #FFC845;
  font-size: 70px;
  display: inline-block;
  padding: 0.5rem 2rem;
  border: 1px solid #ffffff;
  background:
    linear-gradient(to right, #fff 10px, transparent 10px) top left / 10px 10px no-repeat,
    linear-gradient(to bottom, #fff 10px, transparent 10px) top left / 10px 10px no-repeat,
    linear-gradient(to left, #fff 10px, transparent 10px) top right / 10px 10px no-repeat,
    linear-gradient(to bottom, #fff 10px, transparent 10px) top right / 10px 10px no-repeat,
    linear-gradient(to right, #fff 10px, transparent 10px) bottom left / 10px 10px no-repeat,
    linear-gradient(to top, #fff 10px, transparent 10px) bottom left / 10px 10px no-repeat,
    linear-gradient(to left, #fff 10px, transparent 10px) bottom right / 10px 10px no-repeat,
    linear-gradient(to top, #fff 10px, transparent 10px) bottom right / 10px 10px no-repeat;
}

.hero p {
  font-size: 20px;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.18;
}

.hero-blob-pink {
  width: 220px;
  height: 220px;
  background: var(--color-pink);
  top: -60px;
  right: 8%;
}

.hero-blob-yellow {
  width: 140px;
  height: 140px;
  background: var(--color-gold);
  bottom: -30px;
  right: 20%;
}

@media (max-width: 767.98px) {
  .hero-blob {
    display: none;
  }

  .hero {
    align-items: center;
    padding: 6rem 1.5rem;
    min-height: auto;
  }

  .hero h1 {
    font-size: 32px;
    margin-bottom: 0.75rem;
  }

  .hero .gold-shine {
    font-size: 70px;
  }

  .hero h2 {
    font-size: 60px;
    padding: 0.4rem 1rem;
  }

  .hero p {
    font-size: 18px;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero h2 {
    font-size: 48px;
    padding: 0.35rem 0.75rem;
  }

  .hero p {
    font-size: 16px;
  }
}

.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.65rem 1.5rem;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.floating-element {
  animation: floatY 4s ease-in-out infinite;
}

/* Methodology */
.method-section {
  background: #fff;
  overflow: hidden;
}

.method-layout {
  min-height: 430px;
}

.method-section .method-title {
  color: #2a2774;
  font-size: clamp(2.75rem, 5vw, 4.4rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.method-text {
  color: #161616;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 2rem;
  max-width: 620px;
}

.method-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .method-section {
    text-align: center;
  }

  .method-section .method-title,
  .method-text {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575.98px) {
  .method-layout {
    min-height: 0;
  }
}

/* Featured courses */
#courses {
  overflow: hidden;
}

#courses .featured-courses-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.46fr) minmax(0, 2.25fr);
  gap: clamp(1rem, 2.4vw, 2.5rem);
  align-items: stretch;
}

#courses .featured-courses-intro {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0.35rem;
}

#courses .section-title {
  color: #2A2774;
  font-size: clamp(2.45rem, 4.3vw, 3.8rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-align: left;
  max-width: 390px;
  margin-bottom: 1.5rem;
}

#courses .section-title::after {
  display: none;
}

#courses .section-subtitle {
  color: #000;
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  max-width: 420px;
  margin-bottom: 1.8rem;
}

#courses .featured-courses-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

#courses .featured-courses-nav {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

#courses .course-scroll-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 1.65rem;
  line-height: 1;
  padding: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

#courses .course-scroll-btn:hover {
  color: var(--color-pink);
  transform: translateY(-1px);
}

#courses .featured-courses-showcase {
  min-width: 0;
}

#courses .courses-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 0 0 1rem;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#courses .courses-scroll::-webkit-scrollbar {
  display: none;
}

#courses .snap-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  scroll-snap-align: start;
}

#courses .featured-course-card {
  background: #f4f4f4;
  border-color: #d7d7d7;
  border-radius: 12px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 560px;
}

#courses .featured-course-card:hover {
  box-shadow: var(--shadow-lg);
}

#courses .course-card-thumb {
  position: relative;
  margin: 1rem 1rem 0;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #2A2774;
}

#courses .course-card-thumb img,
#courses .course-card-thumb .placeholder-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

#courses .course-card-thumb .placeholder-img {
  height: auto;
}

#courses .course-card-level {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: var(--color-gold);
  color: var(--color-navy-dark);
}

#courses .featured-course-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem 1rem 1rem;
}

#courses .featured-course-card h5 {
  color: #2A2774;
  font-size: clamp(1.1rem, 1.45vw, 1.35rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

#courses .course-card-desc {
  margin: 0 0 1rem;
  color: #4f4f4f;
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

#courses .course-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: #222;
  font-size: 0.9rem;
  line-height: 1.35;
}

#courses .course-meta-list i {
  color: var(--color-pink);
  margin-right: 0.35rem;
}

#courses .course-meta-list li {
  min-height: 1.35rem;
}

#courses .featured-course-card .btn-navy {
  margin-top: auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #2A2774;
  border-color: #2A2774;
  font-size: 1rem;
}

@media (max-width: 991.98px) {
  #courses .featured-courses-layout {
    grid-template-columns: 1fr;
  }

  #courses .featured-courses-intro {
    min-height: 0;
    align-items: center;
    text-align: center;
  }

  #courses .section-title,
  #courses .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  #courses .featured-courses-nav {
    margin-top: 1.5rem;
  }

  #courses .snap-card {
    flex-basis: min(420px, 86vw);
  }
}

@media (max-width: 575.98px) {
  #courses .featured-course-card {
    min-height: 540px;
  }

  #courses .course-card-thumb {
    margin: 0.75rem 0.75rem 0;
  }

  #courses .featured-course-card h5 {
    font-size: 1.28rem;
  }
}

/* Video intro */
#video-intro {
  background: url('/images/abest_bg_3.png') no-repeat center center/cover;
  overflow: hidden;
}

#video-intro .video-intro-layout {
  display: grid;
  justify-items: center;
  gap: 1.75rem;
}

#video-intro .video-intro-content {
  text-align: center;
}

#video-intro .section-title {
  color: var(--color-navy);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 0.95;
  margin-bottom: 0;
  text-align: center;
}

#video-intro .section-title::after {
  background: var(--color-pink);
}

#video-intro .video-intro-player {
  position: relative;
  width: min(100%, 992px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 14px;
  background:
    radial-gradient(circle at 14% 18%, rgba(240, 98, 146, 0.24), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(255, 200, 69, 0.24), transparent 28%),
    var(--color-navy);
  box-shadow: 0 20px 50px rgba(42, 39, 116, 0.22);
}

#video-intro .video-intro-player::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: 1;
  pointer-events: none;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(42, 39, 116, 0.18);
}

#video-intro .video-intro-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 575.98px) {
  #video-intro .video-intro-player {
    border-width: 5px;
    border-radius: 10px;
  }
}

/* Instructors */
.instructor-card {
  background: var(--color-navy);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow);
}

.instructor-photo {
  padding: 1.5rem 1.5rem 0;
  text-align: center;
}

.instructor-photo img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(1);
  transition: filter 0.4s ease;
}

.instructor-card:hover .instructor-photo img {
  filter: grayscale(0);
}

.instructor-photo .placeholder-img {
  height: 200px;
  border-radius: var(--radius);
}

.instructor-body {
  background: var(--color-navy-dark);
  padding: 1.5rem;
  color: #fff;
}

.instructor-body h5 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.instructor-role {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.instructor-bio {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

/* Teachers */
#teachers {
  background: #fff;
}

#teachers .container {
  max-width: 1080px;
}

#teachers .teachers-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
  margin-bottom: 2.25rem;
}

#teachers .section-title {
  color: var(--color-navy);
  font-size: clamp(2.4rem, 4.2vw, 3.9rem);
  line-height: 0.95;
  text-align: left;
  margin: 0;
}

#teachers .section-title::after {
  display: none;
}

#teachers .section-subtitle {
  color: #111;
  font-size: clamp(0.95rem, 1.4vw, 1.12rem);
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  margin: 0;
  max-width: 600px;
}

#teachers .teachers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

#teachers .teacher-feature-card {
  position: relative;
  min-height: 285px;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 200, 69, 0.24), transparent 22%),
    radial-gradient(circle at 88% 82%, rgba(240, 98, 146, 0.22), transparent 24%),
    linear-gradient(135deg, #2a2774 0%, #20195f 62%, #321d79 100%);
  color: #fff;
  padding: 1.5rem;
}

#teachers .teacher-feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    repeating-radial-gradient(circle at 80% 28%, rgba(255, 200, 69, 0.28) 0 1px, transparent 1px 16px);
  background-size: 14px 14px, auto;
  opacity: 0.35;
}

#teachers .teacher-card-content {
  position: relative;
  z-index: 2;
  width: 58%;
  min-height: 205px;
  padding-bottom: 3.5rem;
}

#teachers .teacher-feature-card h3 {
  color: var(--color-gold);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 0.95;
  margin-bottom: 0.35rem;
}

#teachers .teacher-role {
  color: #fff;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

#teachers .teacher-highlights {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  line-height: 1.25;
}

#teachers .teacher-highlights li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.5rem;
}

#teachers .teacher-highlights i {
  color: var(--color-gold);
  font-size: 0.95rem;
  margin-top: 0.1rem;
}

#teachers .teacher-card-photo {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 47%;
  height: 100%;
}

#teachers .teacher-card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(32, 25, 95, 0.95) 0%, rgba(32, 25, 95, 0.25) 44%, rgba(32, 25, 95, 0) 100%);
}

#teachers .teacher-card-photo img,
#teachers .teacher-card-photo .placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.08);
}

#teachers .teacher-card-photo .placeholder-img {
  aspect-ratio: auto;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-gold) 100%);
}

#teachers .teacher-card-actions {
  position: absolute;
  z-index: 3;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

#teachers .teacher-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--color-gold);
  color: var(--color-navy-dark);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

#teachers .teacher-profile-btn:hover {
  color: var(--color-navy-dark);
  background: var(--color-gold-light);
}

#teachers .teacher-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 48%;
  min-height: 24px;
  border-radius: 999px;
  background: var(--color-pink);
  color: #fff;
  border: 2px solid #fff;
  padding: 0.25rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
}

#teachers .teachers-more {
  text-align: center;
  margin-top: 2rem;
}

#teachers .teachers-more .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #111;
  border-color: #111;
  background: #fff;
}

@media (max-width: 991.98px) {

  #teachers .teachers-heading,
  #teachers .teachers-grid {
    grid-template-columns: 1fr;
  }

  #teachers .section-title,
  #teachers .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575.98px) {
  #teachers .teacher-feature-card {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 1.25rem;
  }

  #teachers .teacher-card-content {
    width: 100%;
    min-height: 0;
    padding-bottom: 0;
    order: 2;
  }

  #teachers .teacher-card-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    order: 1;
    margin-bottom: 1rem;
    min-height: 220px;
  }

  #teachers .teacher-card-photo::after {
    background: linear-gradient(180deg, rgba(32, 25, 95, 0.15) 0%, rgba(32, 25, 95, 0.95) 100%);
  }

  #teachers .teacher-card-photo img,
  #teachers .teacher-card-photo .placeholder-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
  }

  #teachers .teacher-card-actions {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  #teachers .teacher-status-pill {
    max-width: 100%;
  }
}

/* Student products */
.bg-yellow {
  background: var(--color-gold);
}

.bg-yellow .section-title,
.bg-yellow .section-subtitle {
  color: var(--color-navy);
}

.badge-pink {
  display: inline-block;
  background: var(--color-pink);
  color: #fff;
  font-weight: 600;
  font-size: 0.75rem;
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 0.75rem;
}

.student-product-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.student-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(42, 39, 116, 0.08);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.student-product-card h5 {
  color: var(--color-navy);
}

.product-student {
  color: var(--color-text-light);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--shadow);
  position: relative;
}

.quote-mark {
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
  font-size: 3.5rem;
  color: var(--color-gold);
  opacity: 0.3;
  line-height: 1;
  font-weight: 700;
}

.testimonial-card .quote {
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author .student-name {
  font-weight: 700;
  color: var(--color-navy);
}

.testimonial-author .student-course {
  color: var(--color-text-light);
}

.post-card-thumb {
  aspect-ratio: 16/10;
}

.bg-alt {
  background: var(--color-bg-alt);
}

/* Register test form */
.register-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  text-align: left;
}

.register-card h2 {
  color: var(--color-navy);
}

#registerTest .form-control:focus {
  border-color: var(--color-pink);
  box-shadow: 0 0 0 0.2rem rgba(240, 98, 146, 0.25);
}