/*
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: 96px
}

::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: 96px;
  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 .28s ease, transform .28s var(--sm-ease);
  z-index: -1;
}

.hdr.is-stuck::before {
  opacity: 1;
  transform: none;
}

.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: 516px;
  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;
}

.phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 19px;
  border-radius: 999px;
  background: #10164B;
}

.phone-screen {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 38px;
  bottom: 6px;
  background: #F5F6FC;
  border-radius: 26px;
  padding: 14px 14px 0;
}

@media (max-width:1023px) {
  .phone {
    position: relative;
    left: auto;
    top: auto;
    transform: rotate(3deg);
    margin: 24px auto;
  }
}

.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-image,
.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);
}

.mock-image {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-image img {
  width: 100%;
  height: auto;
  max-height: 290px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.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 cards: hover turns card into active gradient highlight */
#journey .reveal-stagger>*,
#journey .journey-card {
  transition: transform .3s cubic-bezier(0.2, 0.8, 0.2, 1), background .3s ease, border-color .3s ease, box-shadow .3s ease;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
}

#journey .reveal-stagger>* span,
#journey .reveal-stagger>* h3,
#journey .reveal-stagger>* p,
#journey .journey-card span,
#journey .journey-card h3,
#journey .journey-card p {
  transition: color .25s ease;
}

#journey .reveal-stagger>*:hover,
#journey .journey-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, #3D58A6 0%, #7391DD 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 14px 28px -8px rgba(44, 55, 144, 0.35);
}

#journey .reveal-stagger>*:hover span,
#journey .journey-card:hover span {
  color: #ffffff !important;
}

#journey .reveal-stagger>*:hover h3,
#journey .journey-card:hover h3 {
  color: #ffffff !important;
}

#journey .reveal-stagger>*:hover p,
#journey .journey-card:hover p {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* 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);
}

/* 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: 446px;
    border-width: 7px;
    border-radius: 40px;
    margin: 10px auto 18px;
    animation: heroPhoneFloat 5.5s ease-in-out infinite;
    will-change: transform;
  }

  .deck-card:first-of-type .phone-screen {
    border-radius: 22px;
    top: 33px;
    padding: 12px 12px 0;
  }

  .deck-card:first-of-type .phone-island {
    width: 52px;
    height: 17px;
    top: 9px;
  }
}


/* 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);
}

#about .grad {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

#about .grad>p:nth-of-type(2) {
  margin-top: auto !important;
}

#about .grad>p:last-child {
  margin-top: 8px !important;
}

/* 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 */
  .deck-card .bg-sm-card,
  .deck-card .feature-panel,
  .deck-card .grad.p-8,
  .deck-card .bg-sm-card.p-8 {
    padding: 24px 20px !important;
    border-radius: 22px !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;
  }

  .deck-card .bg-sm-card,
  .deck-card .feature-panel,
  .deck-card .grad.p-8,
  .deck-card .bg-sm-card.p-8 {
    padding: 18px 14px !important;
    border-radius: 18px !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;
}