/*
Theme Name: StudyMedic
Theme URI: https://studymedic.com/
Author: StudyMedic
Author URI: https://studymedic.com/
Description: Custom responsive WordPress theme for StudyMedic & StudyMBBS platform.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: studymedic
*/

:root {
  --sm-ease: cubic-bezier(.2, .75, .2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 76px;
  }
}


::selection {
  background: #FFD9E7;
  color: #121629
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  min-height: 100%;
  background: #EEF3FA;
  position: relative;
}

/* Rotating brand gradient */
body::before {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  width: 170vmax;
  /* big square so corners never show while rotating */
  height: 170vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 22% 22% at 36% 36%, rgba(0, 13, 122, .30), transparent 70%),
    /* blue */
    radial-gradient(ellipse 22% 22% at 66% 38%, rgba(0, 171, 227, .28), transparent 70%),
    /* cyan */
    radial-gradient(ellipse 24% 24% at 62% 66%, rgba(244, 0, 86, .24), transparent 70%),
    /* pink */
    radial-gradient(ellipse 20% 20% at 36% 62%, rgba(0, 171, 227, .18), transparent 70%),
    /* soft cyan */
    linear-gradient(125deg, #F8FAFE 0%, #EDF3FF 35%, #FFF2F7 70%, #EEF6FC 100%);
  animation: brandSpin 20s linear infinite;
  will-change: transform;
  opacity: .9;
}

@keyframes brandSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }

  /* positive = clockwise */
}

/* Slower on mobile to save battery */
@media (max-width: 767px) {
  body::before {
    animation-duration: 28s;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}

body,
body * {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button,
select,
input,
textarea,
label,
small,
.font-mono,
.font-poppins,
.font-display,
.font-sans {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}


.site-shell {
  width: min(100%, 1300px);
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.deck-card {
  scroll-margin-top: 0;
  position: relative;
  isolation: isolate;
}

/* Restore the core brand surfaces used throughout the page. */
.grad {
  background: linear-gradient(135deg, #3D58A6 0%, #7391DD 100%) !important;
}

.btn-soft {
  background: linear-gradient(90deg, #B9CBF0 0%, #A8BDEA 100%) !important;
  color: #1B2263 !important;
  border: 1px solid rgba(44, 55, 144, .08);
  transition: transform .28s var(--sm-ease), filter .25s ease, background-position .3s ease;
  background-size: 120% 100%;
  background-position: 0 50%;
}

.btn-soft:hover {
  filter: brightness(.97) saturate(1.05);
  transform: translateY(-2px);
  background-position: 100% 50%;
}

.btn-soft:active {
  transform: translateY(0) scale(.985);
}

/* Subtle hover feedback for interactive UI — sections themselves do not gain hover shadows. */
.interactive-control {
  transition: transform .28s var(--sm-ease), background-color .25s ease, color .25s ease, border-color .25s ease;
}

.interactive-control:hover {
  transform: translateY(-2px);
}

.interactive-control:active {
  transform: translateY(0) scale(.985);
}

nav a {
  position: relative;
  transition: color .22s ease, transform .22s var(--sm-ease);
}

nav a:hover {
  transform: translateY(-1px);
  color: #2C3790 !important
}

button,
.btn-soft,
a[href^=\"#\"] {
  -webkit-tap-highlight-color: transparent;
}

/* Cards: lift/border feedback only for genuinely interactive cards. */
.program-card {
  transition: transform .28s var(--sm-ease), border-color .25s ease, background-color .25s ease;
}

.program-card:hover {
  transform: translateY(-3px);
  border-color: #D7DDEA !important;
  background: #FAFBFD !important;
}

.program-card a {
  transition: transform .22s var(--sm-ease), color .22s ease;
}

.program-card a:hover {
  transform: translateX(3px);
}

/* Existing generic clickable cards get a clean hover state without any shadow. */
.deck-card a:not(.btn-soft),
.deck-card button {
  transition: transform .25s var(--sm-ease), background-color .25s ease, color .25s ease, border-color .25s ease;
}

.deck-card a:not(.btn-soft):hover,
.deck-card button:hover {
  transform: translateY(-1px);
}

/* Header surface + mobile navigation */
.hdr {
  position: relative;
  border-radius: 999px;
  transition: background .28s ease, box-shadow .28s ease, backdrop-filter .28s ease;
  z-index: 50;
}

.hdr::before {
  content: "";
  position: absolute;
  inset: -8px -14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  /* border: 1px solid rgba(255, 255, 255, .7); */
  box-shadow: 0 10px 28px rgba(18, 22, 41, .08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(-3px) scale(.985);
  transition: opacity .32s cubic-bezier(0.22, 1, 0.36, 1), transform .32s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.hdr.is-stuck::before {
  opacity: 1;
  transform: none;
}

/* Header logo smooth crossfade & directional ease effect (Zero Jump) */
.header-logo-link {
  display: inline-grid;
  grid-template-areas: "logo";
  align-items: center;
  justify-items: start;
  position: relative;
  height: 53px;
  overflow: visible;
}

.header-logo {
  grid-area: logo;
  display: block;
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left center;
  will-change: opacity, transform, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Default Logo: Active at top, smoothly drifts up & dissolves on scroll */
.hdr .header-logo-default {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  visibility: visible;
}

.hdr.is-stuck .header-logo-default {
  opacity: 0;
  transform: translateY(-4px) scale(0.96);
  filter: blur(1.5px);
  visibility: hidden;
  pointer-events: none;
}

/* Scrolled Logo: Waits slightly below with soft blur, slides up gracefully into place */
.hdr .header-logo-scrolled {
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  filter: blur(1.5px);
  visibility: hidden;
  pointer-events: none;
}

.hdr.is-stuck .header-logo-scrolled {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, .95);
  color: #1B2263;
  position: relative;
  z-index: 2;
  transition: transform .22s var(--sm-ease), background .22s ease, color .22s ease;
}

.mobile-menu-btn:hover {
  transform: translateY(-2px);
  background: #FFD9E7
}

.mobile-menu-btn .menu-icon-close {
  display: none
}

.mobile-menu-btn.is-open .menu-icon-open {
  display: none
}

.mobile-menu-btn.is-open .menu-icon-close {
  display: inline-block
}

.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 62px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(226, 232, 240, .95);
  box-shadow: 0 24px 50px -24px rgba(18, 22, 41, .28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.985);
  transform-origin: top center;
  transition: opacity .22s ease, visibility .22s ease, transform .3s var(--sm-ease);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #1B2263;
  transition: background .2s ease, color .2s ease, transform .2s var(--sm-ease);
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: #FFD9E7;
  color: #121629;
  transform: translateX(3px);
  outline: none;
  border: 0;
  box-shadow: none
}

/* ---------------------------------------------------------
       Responsive Header & Navigation (Breakpoint: 992px)
       --------------------------------------------------------- */
@media (max-width: 992px) {
  .header-nav {
    display: none !important;
  }

  .mobile-menu-btn {
    display: flex !important;
  }
}

@media (min-width: 993px) {
  .header-nav {
    display: flex !important;
  }

  .mobile-menu-btn {
    display: none !important;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* Highlighted title treatment */
.hl {
  position: relative;
  display: inline-block;
  background: #FFD9E7;
  color: #1B2263;
  border-radius: 14px;
  padding: 3px 11px 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  box-decoration-break: clone;
  z-index: 0;
}

.hl::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 35%;
  border-radius: inherit;
  background: rgba(255, 255, 255, .32);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: -1;
  transition: transform .6s var(--sm-ease) .15s;
}

.reveal-item.is-visible .hl::before,
.reveal-stagger.is-visible .hl::before {
  transform: scaleX(1);
}

.hl-0 {
  padding-top: 0;
  padding-bottom: 0
}

.hl-hero {
  line-height: 1.05;
  padding: 7px 13px 9px
}

.hl-40 {
  line-height: 1.05;
  padding: 5px 12px 7px
}

.hl-41 {
  line-height: 1.05;
  padding: 5px 12px 7px
}

/* Hero text reveal */
.hero-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  clip-path: inset(0 0 100% 0);
}

.js-ready .reveal-item.is-visible .hero-line {
  animation: heroTextIn .78s var(--sm-ease) forwards;
}

.js-ready .reveal-item.is-visible .hero-line:nth-child(1) {
  animation-delay: .10s
}

.js-ready .reveal-item.is-visible .hero-line:nth-child(2) {
  animation-delay: .20s
}

.js-ready .reveal-item.is-visible .hero-line:nth-child(3) {
  animation-delay: .34s
}

@keyframes heroTextIn {
  0% {
    opacity: 0;
    transform: translateY(22px);
    clip-path: inset(0 0 100% 0)
  }

  55% {
    opacity: 1;
    clip-path: inset(0 0 0 0)
  }

  100% {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0)
  }
}

.hero-copy-fade {
  opacity: 0;
  transform: translateY(12px)
}

.js-ready .reveal-item.is-visible .hero-copy-fade {
  animation: heroCopyIn .7s var(--sm-ease) .58s forwards;
}

@keyframes heroCopyIn {
  to {
    opacity: 1;
    transform: none
  }
}

/* Phone content entrance */
.phone-progress-fill {
  display: block;
  width: 0;
  transition: width 1.35s var(--sm-ease);
}

.phone-progress-fill.is-filled {
  width: 68% !important
}

.phone-item {
  opacity: 0;
  transform: translateX(16px);
}

.reveal-item.is-visible .phone-item {
  animation: phoneItemIn .6s var(--sm-ease) forwards;
}

.reveal-item.is-visible .phone-item:nth-child(1) {
  animation-delay: 1.05s
}

.reveal-item.is-visible .phone-item:nth-child(2) {
  animation-delay: 1.18s
}

.reveal-item.is-visible .phone-item:nth-child(3) {
  animation-delay: 1.31s
}

@keyframes phoneItemIn {
  to {
    opacity: 1;
    transform: none
  }
}

/* Mobile-only page progress; hidden on desktop. */
.mobile-page-progress {
  display: none;
  position: fixed;
  z-index: 75;
  pointer-events: none;
}

@media (max-width:767px) {
  .scroll-top-btn {
    right: 14px;
    bottom: 108px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .hero-line {
    display: inline-block
  }
}

/* Back-to-top / scroll-to button */
.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2C3790;
  color: #fff;
  border: 0;
  box-shadow: 0 18px 34px -20px rgba(44, 55, 144, .7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, visibility .25s ease, transform .3s var(--sm-ease), background .2s ease;
  z-index: 80;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none
}

.scroll-top-btn:hover {
  background: #F25F95;
  transform: translateY(-3px)
}

.scroll-top-btn:active {
  transform: translateY(0) scale(.96)
}

/* Hero phone mockup */
.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 540px;
  transform: translate(calc(-50% + 4px), calc(-50% - 64px)) rotate(3deg);
  background: #fff;
  border: 8px solid #10164B;
  border-radius: 46px;
  box-shadow: 0 36px 60px -18px rgba(16, 22, 75, .28), 0 0 70px rgba(255, 255, 255, .9);
  z-index: 2;
  overflow: hidden;
}

/* Floating badges around hero phone */
.hero-floating-badges {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 540px;
  transform: translate(calc(-50% + 4px), calc(-50% - 64px));
  pointer-events: none;
  z-index: 20;
}

.hero-floating-badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

/* .hero-floating-badge:hover {
  transform: scale(1.08) !important;
  z-index: 25;
} */

/* Specific Badge Positions (Desktop relative to 260x540 phone) */
.hero-floating-badge.badge-pos-1 {
  left: -82px;
  top: 110px;
  animation: heroBadgeFloat1 4.2s ease-in-out infinite alternate;
}

.hero-floating-badge.badge-pos-2 {
  left: -110px;
  top: 300px;
  animation: heroBadgeFloat2 4.7s ease-in-out infinite alternate;
}

.hero-floating-badge.badge-pos-3 {
  right: -95px;
  top: 150px;
  animation: heroBadgeFloat3 3.9s ease-in-out infinite alternate;
}

.hero-floating-badge.badge-pos-4 {
  right: -66px;
  top: 380px;
  animation: heroBadgeFloat4 4.5s ease-in-out infinite alternate;
}

.hero-floating-badge.badge-pos-5 {
  right: -74px;
  top: 265px;
  animation: heroBadgeFloat5 4.1s ease-in-out infinite alternate;
}

/* Bubble Styling */
.hero-badge-bubble {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-floating-badge:hover .hero-badge-bubble {
  box-shadow: 0 12px 24px -6px rgba(16, 22, 75, 0.22);
}

.hero-badge-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* Bubble Color Themes */
.hero-badge-bubble.theme-cyan {
  background: rgba(224, 242, 254, 0.94);
  color: #0284C7;
  border: 1.5px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 8px 20px -4px rgba(14, 165, 233, 0.25);
}

.hero-badge-bubble.theme-green {
  background: rgba(220, 252, 231, 0.94);
  color: #10B981;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.25);
}

.hero-badge-bubble.theme-amber {
  background: rgba(254, 243, 199, 0.94);
  color: #D97706;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.25);
}

.hero-badge-bubble.theme-purple {
  background: rgba(243, 232, 255, 0.94);
  color: #8B5CF6;
  border: 1.5px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 8px 20px -4px rgba(139, 92, 246, 0.25);
}

.hero-badge-bubble.theme-pink {
  background: rgba(253, 242, 248, 0.94);
  color: #EC4899;
  border: 1.5px solid rgba(236, 72, 153, 0.35);
  box-shadow: 0 8px 20px -4px rgba(236, 72, 153, 0.25);
}

/* Badge Title */
.hero-badge-title {
  margin-top: 6px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: #1E293B;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.hero-floating-badge:hover .hero-badge-title {
  color: #10164B;
}

/* Organic Floating Animations */
@keyframes heroBadgeFloat1 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-3px, -8px, 0) rotate(-1.5deg);
  }

  100% {
    transform: translate3d(2px, -14px, 0) rotate(1deg);
  }
}

@keyframes heroBadgeFloat2 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(3px, 7px, 0) rotate(1.5deg);
  }

  100% {
    transform: translate3d(-2px, 13px, 0) rotate(-1deg);
  }
}

@keyframes heroBadgeFloat3 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-2px, -9px, 0) rotate(-1deg);
  }

  100% {
    transform: translate3d(3px, -5px, 0) rotate(2deg);
  }
}

@keyframes heroBadgeFloat4 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(2px, 8px, 0) rotate(1.5deg);
  }

  100% {
    transform: translate3d(-3px, 14px, 0) rotate(-1.5deg);
  }
}

@keyframes heroBadgeFloat5 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(3px, -7px, 0) rotate(1deg);
  }

  100% {
    transform: translate3d(-2px, -11px, 0) rotate(-1deg);
  }
}

/* iPhone Status Bar */
.phone-status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 22px 0 22px;
  z-index: 50;
  pointer-events: none;
  color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

.phone-status-time {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.phone-island {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 20px;
  border-radius: 999px;
  background: #000000;
  z-index: 50;
  pointer-events: none;
}


.phone-screen {
  position: absolute;
  inset: 0;
  background: #0D1238;
  border-radius: 38px;
  overflow: hidden;
  padding: 0;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-screens-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  background: #fff;
}

.phone-screens-slider:active {
  cursor: grabbing;
}

/* Native App Screen Slide Effect (Track) */
.phone-screens-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.phone-screens-slider.is-dragging .phone-screens-track {
  transition: none !important;
}

.phone-screen-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  transition: opacity 0.46s ease, transform 0.46s ease;
  opacity: 0.5;
}

.phone-screen-slide.is-active {
  opacity: 1;
}

/* Optional Pure Cross-Fade Effect (if .is-fade class added) */
.phone-screens-slider.is-fade .phone-screens-track {
  transform: none !important;
  display: block;
  position: relative;
}

.phone-screens-slider.is-fade .phone-screen-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.phone-screens-slider.is-fade .phone-screen-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

@media (max-width:1023px) {
  .phone {
    position: relative;
    left: auto;
    top: auto;
    transform: rotate(3deg);
    margin: 24px auto;
  }

  .hero-floating-badges {
    position: absolute;
    left: 50%;
    top: 0;
    width: 260px;
    height: 540px;
    transform: translateX(-50%);
    margin: 24px auto;
    pointer-events: none;
    z-index: 20;
  }

  .hero-floating-badge.badge-pos-1 {
    left: -100px;
    top: 110px;
  }

  .hero-floating-badge.badge-pos-2 {
    left: -100px;
    top: 340px;
  }

  .hero-floating-badge.badge-pos-3 {
    right: -100px;
    top: 140px;
  }

  .hero-floating-badge.badge-pos-4 {
    right: -100px;
    top: 370px;
  }

  .hero-floating-badge.badge-pos-5 {
    right: -100px;
    top: 255px;
  }
}

.btn-soft,
a.hover\:bg-sm-hl,
button {
  will-change: transform;
}

.interactive-lift {
  transition: transform .32s var(--sm-ease), border-color .25s ease, background-color .25s ease;
}

.interactive-lift:hover {
  transform: translateY(-5px);
}

.interactive-lift:active {
  transform: translateY(-1px) scale(.995);
}

.app-feature-tile {
  position: relative;
  overflow: hidden;
  transition: transform .32s var(--sm-ease), border-color .25s ease, background .25s ease;
}

.app-feature-tile::after {
  content: "";
  position: absolute;
  inset: auto -35% -55% auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(242, 95, 149, .12);
  transform: scale(.3);
  opacity: 0;
  transition: transform .45s var(--sm-ease), opacity .35s ease;
  pointer-events: none;
}

.app-feature-tile:hover {
  transform: translateY(-4px);
}

.app-feature-tile:hover::after {
  transform: scale(1);
  opacity: 1;
}

.app-feature-tile.is-active {
  background: linear-gradient(135deg, #3D58A6 0%, #7391DD 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  transform: translateY(-2px);
}

.app-feature-tile.is-active .app-tile-icon {
  background: #F25F95 !important;
  color: #fff !important;
}

.app-feature-tile .app-tile-label {
  color: #121629;
  transition: color .2s ease;
}

.app-feature-tile:not(.is-active) .app-tile-label {
  color: #121629 !important;
}

.app-feature-tile.is-active .app-tile-label {
  color: #fff !important;
}

.app-tile-scroll {
  max-height: 392px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(44, 55, 144, .38) transparent;
}

.app-tile-scroll::-webkit-scrollbar {
  width: 7px;
  height: 6px;
}

.app-tile-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.app-tile-scroll::-webkit-scrollbar-thumb {
  background: rgba(44, 55, 144, .30);
  border-radius: 999px;
}

@media (max-width: 1023px) {
  .app-tile-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    max-height: none !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    gap: 12px !important;
    padding: 6px 4px 14px 4px !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(44, 55, 144, .35) transparent;
  }

  .app-tile-scroll::-webkit-scrollbar {
    height: 6px !important;
    width: 0 !important;
  }

  .app-tile-scroll::-webkit-scrollbar-track {
    background: rgba(44, 55, 144, .06);
    border-radius: 999px;
  }

  .app-tile-scroll::-webkit-scrollbar-thumb {
    background: rgba(44, 55, 144, .30);
    border-radius: 999px;
  }

  .app-tile-scroll .app-feature-tile {
    flex: 0 0 138px !important;
    min-width: 138px !important;
    max-width: 138px !important;
    min-height: 114px !important;
    padding: 16px 10px !important;
    scroll-snap-align: start;
  }
}

.app-feature-copy {
  transition: opacity .18s ease, transform .35s var(--sm-ease);
}

.app-feature-copy.is-changing {
  opacity: 0;
  transform: translateY(10px);
}

.app-feature-visual {
  transition: opacity .18s ease, transform .35s var(--sm-ease);
}

.app-feature-visual.is-changing {
  opacity: 0;
  transform: translateY(10px) scale(.985);
}

.feature-panel {
  min-height: 100%;
}

.mock-browser,
.mock-video,
.mock-calendar,
.mock-notes,
.mock-flashcards,
.mock-test {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #121629;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 18px 42px -24px rgba(16, 22, 75, .34);
}

/* Section 6 (App + LMS): Mobile Phone Mockup Frame for Custom Mockup Image */
.app-phone-mockup {
  position: relative;
  width: 250px;
  height: 350px;
  max-width: 100%;
  margin: 0 auto;
  align-self: flex-end;
  margin-bottom: -32px;
  /* Pulls phone flush to bottom edge of .feature-panel */
  transition: transform .35s var(--sm-ease);
  will-change: transform;
}

.feature-panel:hover .app-phone-mockup {
  transform: translateY(-5px);
}

.app-phone-mockup-chassis {
  position: relative;
  background: #0d1122;
  border-radius: 40px 40px 0 0;
  padding: 7px 7px 0 7px;
  box-shadow:
    0 26px 65px -10px rgba(6, 10, 30, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.app-phone-mockup-screen {
  position: relative;
  background: #ffffff;
  border-radius: 34px 34px 0 0;
  overflow: hidden;
  line-height: 0;
}

.app-phone-mockup-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .app-phone-mockup {
    width: 235px;
  }
}

@media (max-width: 767px) {
  .app-phone-mockup {
    width: 220px;
    margin-bottom: -24px;
    margin-top: 14px;
  }

  .app-phone-mockup-chassis {
    border-radius: 34px 34px 0 0;
    padding: 6px 6px 0 6px;
  }

  .app-phone-mockup-screen {
    border-radius: 28px 28px 0 0;
  }
}

.mock-browser::before,
.mock-video::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 34px;
  background: #F4F5F8;
}

.mock-dots {
  position: absolute;
  top: 12px;
  left: 14px;
  display: flex;
  gap: 4px;
}

.mock-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #CFD3DE
}

.mock-line {
  height: 7px;
  border-radius: 999px;
  background: #E7EAF2
}

.mock-line.wide {
  width: 78%
}

.mock-line.mid {
  width: 54%
}

.mock-line.short {
  width: 32%
}

.mock-answer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 10px;
  margin-top: 8px;
  border-radius: 10px;
  background: #F7F8FB;
  font-size: 10px;
  font-weight: 700;
}

.mock-answer.active {
  background: #E9F8F2;
  color: #0F6B4F
}

.mock-progress {
  height: 7px;
  border-radius: 999px;
  background: #E6E9F1;
  overflow: hidden;
  margin-top: 12px
}

.mock-progress span {
  display: block;
  height: 100%;
  width: 68%;
  background: #F25F95;
  border-radius: 999px
}

.mock-video .play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #F25F95;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 38px auto 16px;
  font-size: 16px;
  box-shadow: 0 10px 25px -12px rgba(242, 95, 149, .65)
}

.mock-calendar .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 14px
}

.mock-calendar .cal-grid span {
  aspect-ratio: 1;
  border-radius: 7px;
  background: #F3F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 800
}

.mock-calendar .cal-grid span.active {
  background: #F25F95;
  color: #fff
}

.mock-notes .note {
  padding: 10px 11px;
  border-radius: 12px;
  background: #F8F9FA;
  margin-top: 8px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4
}

.mock-notes .note strong {
  display: block;
  color: #2C3790;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 3px
}

.mock-flashcards .flash {
  border-radius: 16px;
  padding: 18px 15px;
  background: #F7F8FC;
  min-height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 800
}

.mock-test .score {
  display: flex;
  align-items: flex-end;
  gap: 10px
}

.mock-test .score b {
  font-size: 34px;
  line-height: 1;
  color: #2C3790
}

.mock-test .score span {
  font-size: 8px;
  color: #7B8191;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em
}

.mock-test .bar {
  height: 8px;
  background: #E9EBF2;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px
}

.mock-test .bar span {
  display: block;
  height: 100%;
  width: 82%;
  background: #2C3790;
  border-radius: 999px
}

.reveal-item {
  opacity: 1;
  transform: none;
}

.js-ready .reveal-item {
  opacity: 0;
  transform: translateY(30px) scale(.985);
  transition: opacity .75s var(--sm-ease), transform .85s var(--sm-ease);
}

.js-ready .reveal-item.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger>* {
  opacity: 1;
  transform: none;
}

.js-ready .reveal-stagger>* {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--sm-ease), transform .7s var(--sm-ease);
}

.js-ready .reveal-stagger.is-visible>* {
  opacity: 1;
  transform: none;
}

.js-ready .reveal-stagger.is-visible>*:nth-child(2) {
  transition-delay: .05s
}

.js-ready .reveal-stagger.is-visible>*:nth-child(3) {
  transition-delay: .10s
}

.js-ready .reveal-stagger.is-visible>*:nth-child(4) {
  transition-delay: .15s
}

.js-ready .reveal-stagger.is-visible>*:nth-child(5) {
  transition-delay: .20s
}

.js-ready .reveal-stagger.is-visible>*:nth-child(6) {
  transition-delay: .25s
}

.parallax-soft {
  transition: transform .6s var(--sm-ease);
}

.cursor-ring,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity .18s ease, transform .18s ease, border-color .22s ease, background-color .22s ease, width .22s ease, height .22s ease;
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(44, 55, 144, .42);
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: #2C3790;
  border-radius: 50%;
}

.cursor-ring.is-hover {
  width: 52px;
  height: 52px;
  border-color: #F25F95;
  background: rgba(255, 217, 231, .22);
}

.cursor-ring.is-press {
  transform: translate3d(-50%, -50%, 0) scale(.86)
}

.mobile-float {
  display: none;
}

/* @media (min-width:768px) {

  html.cursor-ready,
  html.cursor-ready * {
    cursor: none !important
  }
} */

@media (max-width:767px) {
  .mobile-float {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 70;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .8);
    box-shadow: 0 18px 45px -20px rgba(16, 22, 75, .38);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateY(0);
  }

  .mobile-float .mobile-float-main {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0
  }

  .mobile-float .mobile-float-orb {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #2C3790, #7391DD);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px -12px rgba(44, 55, 144, .65);
  }

  .mobile-float .mobile-float-label {
    font-size: 10px;
    font-weight: 800;
    color: #1B2263;
    line-height: 1.1
  }

  .mobile-float .mobile-float-sub {
    display: block;
    font-size: 8px;
    font-weight: 600;
    color: #8990A1;
    margin-top: 3px
  }

  .mobile-float a {
    height: 38px;
    padding: 0 14px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F25F95;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 12px 24px -15px rgba(242, 95, 149, .8)
  }

  body {
    padding-bottom: 88px !important
  }

  .app-tile-scroll {
    max-height: none !important;
    overflow-y: hidden !important;
    overflow-x: auto !important;
  }

  .app-tile-scroll .app-feature-tile {
    flex: 0 0 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
  }
}

/* HOW IT WORKS: Step progress timeline bar */
/* HOW IT WORKS: Scroll entrance animation & clean interactions */
.js-ready #journey .journey-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
  will-change: transform, opacity;
  border: 1px solid rgba(226, 232, 240, 0.7);
  cursor: pointer;
  position: relative;
}

.js-ready #journey.is-visible .journey-card,
.js-ready #journey .journey-card.is-in-view {
  opacity: 1;
  transform: translateY(0);
}

.js-ready #journey .journey-card:nth-child(1) {
  transition-delay: 0.05s;
}

.js-ready #journey .journey-card:nth-child(2) {
  transition-delay: 0.12s;
}

.js-ready #journey .journey-card:nth-child(3) {
  transition-delay: 0.19s;
}

.js-ready #journey .journey-card:nth-child(4) {
  transition-delay: 0.26s;
}

.js-ready #journey .journey-card:nth-child(5) {
  transition-delay: 0.33s;
}

/* HOW IT WORKS: Simple, clean & soft hover for all items uniformly */
#journey .journey-card:hover {
  transform: translateY(-3px);
  background-color: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 10px 22px -6px rgba(16, 22, 75, 0.08);
}

/* Form selects get an explicit pointer interaction and visible focus state. */
.sm-select {
  cursor: pointer !important;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.sm-select:hover {
  border-color: #B9C4DC !important;
  background-color: #F8F9FC !important;
}

.sm-select:focus {
  border-color: #2C3790 !important;
  box-shadow: 0 0 0 3px rgba(44, 55, 144, .10);
}

/* Country code dropdown inside integrated mobile input */
#country_code {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 18px !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 4px center !important;
  background-size: 11px !important;
}

#country_code:focus {
  outline: none !important;
  box-shadow: none !important;
}

.pricing-panes-wrapper {
  margin-top: 10px !important;
}

/* Programs cards: stable neutral surface; no blue hover treatment */
#programs .program-card {
  background: #F8F9FA !important;
  border-color: rgba(226, 232, 240, .7) !important;
  box-shadow: none !important;
}

#programs .program-card:hover,
#programs .program-card:focus-within {
  background: #FAFBFD !important;
  border-color: #D7DDEA !important;
  box-shadow: none !important;
  transform: translateY(-3px) !important;
}

#programs .program-card a:hover {
  background: transparent !important;
}

/* Mobile hero loop: subtle floating device motion without distracting from content */
@keyframes heroPhoneFloat {

  0%,
  100% {
    transform: translateY(0) rotate(3deg)
  }

  50% {
    transform: translateY(-10px) rotate(2deg)
  }
}

@keyframes heroGlowPulse {

  0%,
  100% {
    transform: scale(.94);
    opacity: .35
  }

  50% {
    transform: scale(1.04);
    opacity: .62
  }
}

@media (max-width:767px) {
  .deck-card:first-of-type {
    overflow: hidden;
  }

  .deck-card:first-of-type .hero-phone-col,
  .deck-card:first-of-type>div:nth-child(2)>div:last-child {
    min-height: 470px !important;
  }

  .deck-card:first-of-type::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -85px;
    top: 65px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185, 203, 240, .5) 0%, rgba(185, 203, 240, 0) 68%);
    animation: heroGlowPulse 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }

  .deck-card:first-of-type .phone {
    position: relative;
    left: auto;
    top: auto;
    width: 225px;
    height: 460px;
    border-width: 7px;
    border-radius: 40px;
    margin: 10px auto 18px;
    animation: heroPhoneFloat 5.5s ease-in-out infinite;
    will-change: transform;
  }

  .hero-floating-badges {
    position: absolute;
    left: 50%;
    top: 0;
    width: 225px;
    height: 446px;
    transform: translateX(-50%);
    margin: 10px auto 18px;
    pointer-events: none;
    z-index: 20;
  }

  .hero-floating-badge.badge-pos-1 {
    left: -108px;
    top: 70px;
  }

  .hero-floating-badge.badge-pos-2 {
    left: -104px;
    top: 260px;
  }

  .hero-floating-badge.badge-pos-3 {
    right: -108px;
    top: 100px;
  }

  .hero-floating-badge.badge-pos-4 {
    right: -104px;
    top: 290px;
  }

  .hero-floating-badge.badge-pos-5 {
    right: -106px;
    top: 195px;
  }

  .hero-badge-bubble {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .hero-badge-icon-img {
    width: 18px;
    height: 18px;
  }

  .hero-badge-title {
    font-size: 9px;
    margin-top: 3px;
  }

  .deck-card:first-of-type .phone-screen {
    border-radius: 33px;
    inset: 0;
    padding: 0;
  }

  .deck-card:first-of-type .phone-island {
    width: 52px;
    height: 17px;
    top: 9px;
  }
}

@media (max-width:420px) {
  .hero-floating-badges {
    top: 100px;
  }

  .hero-floating-badge.badge-pos-1 {
    left: -50px;
    top: 60px;
  }

  .hero-floating-badge.badge-pos-2 {
    left: -50px;
    top: 245px;
  }

  .hero-floating-badge.badge-pos-3 {
    right: -50px;
    top: 90px;
  }

  .hero-floating-badge.badge-pos-4 {
    right: -50px;
    top: 275px;
  }

  .hero-badge-bubble {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .hero-badge-icon-img {
    width: 16px;
    height: 16px;
  }

  .hero-badge-title {
    font-size: 8px;
  }
}


/* Section labels + animated numbering */
.section-label {
  font-size: 9px !important;
  letter-spacing: .075em !important;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 24px;
  font-size: 10px !important;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  color: #94A3B8;
  font-variant-numeric: tabular-nums;
}

.section-title-animate {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-item.is-visible .section-title-animate {
  animation: sectionTitleIn .72s var(--sm-ease) .06s forwards;
}

@keyframes sectionTitleIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(.985);
    letter-spacing: -.01em
  }

  100% {
    opacity: 1;
    transform: none;
    letter-spacing: normal
  }
}

/* Specialist chips get tactile hover feedback without changing the panel shadow. */
.specialty-chip {
  display: inline-flex;
  align-items: center;
  transition: transform .24s var(--sm-ease), background-color .24s ease, box-shadow .24s ease;
}

.specialty-chip:hover {
  transform: translateY(-3px) scale(1.025);
  background: rgba(255, 255, 255, .32) !important;
  box-shadow: 0 8px 18px -12px rgba(16, 22, 75, .45);
}

/* Mentor qualification badges: maintain compact desktop-like styling */
.mentor-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 11px;
  line-height: 1.4;
  background-color: #F4F5F8;
  font-weight: 700;
  width: auto;
  max-width: 100%;
}

#about .grad {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Mobile sections enter from below for a more noticeable but smooth reveal. */
@media (max-width:767px) {
  .js-ready .reveal-item {
    transform: translateY(44px) scale(.985);
    transition: opacity .7s var(--sm-ease), transform .82s var(--sm-ease);
  }

  .js-ready .app-feature-tile {
    opacity: 0;
    transform: translateY(30px) scale(.97);
  }

  .js-ready .app-tile-scroll.is-visible .app-feature-tile,
  .reveal-stagger.is-visible .app-feature-tile {
    opacity: 1;
    transform: none;
  }

  .js-ready .reveal-stagger>* {
    transform: translateY(26px) scale(.985);
    transition: opacity .58s var(--sm-ease), transform .68s var(--sm-ease);
  }

  .section-title-animate {
    transform: translateY(22px)
  }

  .reveal-item.is-visible .section-title-animate {
    animation-duration: .68s
  }
}

/* Mobile progress: track + animated percentage counter. */
@media (max-width:767px) {
  .mobile-page-progress {
    display: flex !important;
    align-items: center;
    gap: 8px;
    left: 14px;
    right: 14px;
    bottom: 76px;
    height: 24px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .mobile-page-progress .progress-track {
    flex: 1;
    height: 5px;
    border-radius: 999px;
    background: rgba(44, 55, 144, .12);
    overflow: hidden;
  }

  .mobile-page-progress .progress-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #F25F95, #2C3790);
    transition: width .16s linear;
  }

  .mobile-page-progress .progress-value {
    flex: 0 0 auto;
    min-width: 34px;
    height: 22px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: #2C3790;
    font-size: 9px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 8px 20px -14px rgba(18, 22, 41, .45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* ---------------------------------------------------------
       992px Responsive Adjustments: Section Padding & Typography
       --------------------------------------------------------- */
@media (max-width: 992px) {

  /* Body & Shell Spacing */
  body {
    padding-top: 16px !important;
    padding-bottom: 84px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .site-shell {
    gap: 20px !important;
  }

  .site-shell.space-y-10> :not([hidden])~ :not([hidden]) {
    margin-top: 1.5rem !important;
  }

  /* Section (Deck-Card) Padding */
  .deck-card {
    padding: 32px 24px !important;
    border-radius: 28px !important;
  }

  .deck-card.space-y-8> :not([hidden])~ :not([hidden]) {
    margin-top: 1.25rem !important;
  }

  /* Inner Sub-Card Padding (exclude inline pills, badges, and media containers) */
  .deck-card div.bg-sm-card:not(.aspect-\[4\/5\]),
  .deck-card .feature-panel,
  .deck-card .grad.p-8,
  .deck-card .bg-sm-card.p-8,
  .deck-card .bg-sm-card.p-7 {
    padding: 24px 20px !important;
    border-radius: 22px !important;
  }

  /* Mentor qualification badges: keep desktop-like compact padding */
  .mentor-pill,
  #mentor .flex-wrap.gap-2 span,
  #mentor span.bg-sm-card,
  .deck-card span.bg-sm-card {
    padding: 8px 14px !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
  }

  /* Typography adjustments at 992px */
  .hero-title {
    font-size: clamp(2rem, 5.2vw, 2.75rem) !important;
    line-height: 1.07 !important;
    letter-spacing: -0.025em !important;
  }

  .hero-copy-fade {
    font-size: 0.9375rem !important;
    line-height: 1.52 !important;
  }

  .section-title-animate,
  .deck-card h2 {
    font-size: clamp(1.55rem, 3.4vw, 1.95rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.02em !important;
  }

  #programs h2,
  #enquire h2,
  #journey h2,
  #why h2 {
    font-size: clamp(1.55rem, 3.4vw, 1.95rem) !important;
    line-height: 1.18 !important;
  }

  .deck-card.grad h2 {
    font-size: clamp(1.75rem, 3.8vw, 2.25rem) !important;
    line-height: 1.15 !important;
  }

  #appFeatureTitle {
    font-size: clamp(1.25rem, 2.8vw, 1.5rem) !important;
    line-height: 1.25 !important;
  }

  .program-card h3 {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
  }

  .deck-card p.text-sm {
    font-size: 0.845rem !important;
    line-height: 1.55 !important;
  }

  .deck-card p.text-base {
    font-size: 0.9375rem !important;
    line-height: 1.52 !important;
  }

  .hl {
    padding: 2px 8px 3px;
    border-radius: 10px;
  }

  .hl-hero {
    padding: 4px 10px 5px;
  }

  /* Footer padding */
  footer.rounded-\[32px\] {
    padding: 32px 20px !important;
    border-radius: 28px !important;
  }
}

@media (max-width: 640px) {
  body {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-top: 12px !important;
  }

  .deck-card {
    padding: 24px 16px !important;
    border-radius: 22px !important;
  }

  .deck-card.space-y-8> :not([hidden])~ :not([hidden]) {
    margin-top: 1rem !important;
  }

  /* Inner Sub-Card Padding (exclude inline pills, badges, and media containers) */
  .deck-card div.bg-sm-card:not(.aspect-\[4\/5\]),
  .deck-card .feature-panel,
  .deck-card .grad.p-8,
  .deck-card .bg-sm-card.p-8,
  .deck-card .bg-sm-card.p-7 {
    padding: 18px 14px !important;
    border-radius: 18px !important;
  }

  /* Mentor qualification badges: keep desktop-like compact padding */
  .mentor-pill,
  #mentor .flex-wrap.gap-2 span,
  #mentor span.bg-sm-card,
  .deck-card span.bg-sm-card {
    padding: 6px 12px !important;
    border-radius: 9999px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
  }

  footer.rounded-\[32px\] {
    padding: 26px 14px !important;
    border-radius: 22px !important;
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js-ready .reveal-item,
  .js-ready .reveal-stagger>*,
  .js-ready .hero-line,
  .hero-copy-fade,
  .phone-item {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important
  }
}

/* ========================================================
   SECTION 08: DYNAMIC BACKGROUND MARQUEE & KAYA QR CODE
   ======================================================== */
@keyframes s8MarqueeLoop {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.s8-marquee-wrapper {
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.s8-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: s8MarqueeLoop 32s linear infinite;
}

.s8-marquee-segment {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

/* Kaya QR Code Generator widget/shortcode styling within rounded card */
.qr-box-container .wpkqcg_qrcode_wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.qr-box-container .wpkqcg_qrcode {
  width: 100% !important;
  height: 100% !important;
  max-width: 152px !important;
  max-height: 152px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

/* ========================================================
   SECTION 02: ACCREDITATION MARQUEE & STYLES
   ======================================================== */
@keyframes accredMarqueeLoop {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.accred-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.accred-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: accredMarqueeLoop 24s linear infinite;
}

.accred-marquee-track:hover {
  animation-play-state: paused;
}

.accred-marquee-segment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  flex-shrink: 0;
}

.accred-card {
  min-width: 120px;
  height: 72px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 6px rgba(18, 22, 41, 0.03);
  transition: transform 0.25s var(--sm-ease), box-shadow 0.25s var(--sm-ease), border-color 0.25s ease;
  user-select: none;
}

.accred-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(18, 22, 41, 0.08);
}

.accred-card-logo-img {
  max-height: 55px;
  max-width: 100px;
  object-fit: contain;
  display: block;
}

/* -------------------------------------------------------------
   Section 08: Plans & Pricing (Box/Card Layout)
   ------------------------------------------------------------- */
.pricing-tabs-list {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 6px;
}

.pricing-tabs-list::-webkit-scrollbar {
  display: none;
}

.pricing-tab-btn {
  user-select: none;
  cursor: pointer;
  transition: all 0.24s var(--sm-ease);
  white-space: nowrap;
  background: #F1F4F9;
  color: #242E7A;
  border: 1px solid #D5E0F2;
}

.pricing-tab-btn:hover {
  background: #E2E8F0;
  border-color: #CBD5E1;
}

.pricing-tab-btn.is-active {
  background: #242E7A !important;
  color: #ffffff !important;
  border-color: #242E7A !important;
  box-shadow: 0 4px 14px rgba(36, 46, 122, 0.25);
}

.pricing-card {
  border-radius: 18px;
  background: rgb(244, 245, 248);
  border: 1px solid #DCE3ED;
  padding: 20px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: visible;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(18, 22, 41, 0.03);
  transition: transform 0.22s var(--sm-ease), box-shadow 0.22s var(--sm-ease), border-color 0.2s ease;
  cursor: pointer;
  height: 100%;
}

.pricing-card:hover {
  transform: translateY(-3px);
  border-color: #202D7D;
  box-shadow: 0 10px 24px -4px rgba(32, 45, 125, 0.12);
}

.pricing-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  flex-grow: 1;
}

.pricing-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  color: #111827 !important;
  letter-spacing: -0.01em;
  margin: 0 !important;
  padding-right: 26px; /* preserve clearance for the top-right offer badge */
}

.pricing-card-dur {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
  color: #8A94A6 !important;
  line-height: 1 !important;
  margin-top: 4px !important;
  margin-bottom: 0 !important;
}

.pricing-card-price-wrap {
  margin-top: 16px;
}

.pricing-card-price {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  color: #202D7D !important;
  letter-spacing: -0.02em;
  margin: 0 !important;
}

.pricing-card-discount {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  line-height: 1;
}

.pricing-card-orig {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #94A3B8 !important;
  text-decoration: line-through;
  line-height: 1 !important;
}

.pricing-card-save {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #DE3B75 !important;
  line-height: 1 !important;
}

.pricing-card-action {
  margin-top: 16px;
  width: 100%;
}

.pricing-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  background: #ffffff !important;
  color: #202D7D !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  border-radius: 11px;
  text-decoration: none !important;
  border: 1px solid #D5DEEB !important;
  transition: all 0.22s var(--sm-ease);
  box-shadow: 0 2px 6px rgba(18, 22, 41, 0.04);
  cursor: pointer;
}

.pricing-card-btn:hover {
  background: #202D7D !important;
  color: #ffffff !important;
  border-color: #202D7D !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(32, 45, 125, 0.22);
}

.pricing-card-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(18, 22, 41, 0.06);
}

/* -------------------------------------------------------------
   Offer Badge (Corner-Hugging Sleek Tag - #F25F95 Brand Pink)
   ------------------------------------------------------------- */
.plan-offer-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px 6px 12px;
  background: #F25F95 !important;
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 9.5px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0 17px 0 12px;
  box-shadow: 0 2px 8px rgba(242, 95, 149, 0.30);
  pointer-events: none;
  transition: all 0.22s var(--sm-ease);
  white-space: nowrap;
}

.pricing-card:hover .plan-offer-badge {
  background: #E84D87 !important;
  box-shadow: 0 4px 12px rgba(242, 95, 149, 0.42);
}

.plan-offer-badge .plan-offer-star {
  font-size: 9.5px;
  line-height: 1;
  color: #ffffff;
  display: inline-block;
  transform: translateY(-0.5px);
}

.plan-offer-badge .plan-offer-label {
  display: inline-block;
  line-height: 1;
}