/* ==========================================================================
   TutorPro Malaysia - Modern Editorial Tutoring Design System
   Inspired by Dribbble & Pinterest Award-Winning Education Agency Layouts
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,800;1,9..144,400;1,9..144,600;1,9..144,700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --canvas-warm: #FAF8F5;
  --canvas-card: #FFFFFF;
  --canvas-card-warm: #F6F4EE;
  --text-dark: #0A192F;
  --text-body: #334155;
  --text-muted: #64748B;
  --brand-blue-deep: #0B2545;  /* Deep Oxford Navy */
  --brand-blue-mid: #12509B;   /* Tuition Pro Royal Blue */
  --brand-blue-vibrant: #1E6FD9;
  --brand-blue-soft: #EBF3FC;
  --brand-yellow: #F59E0B;     /* Vibrant Academic Yellow/Amber */
  --brand-yellow-hover: #D97706;
  --brand-yellow-light: #FEF3C7;
  --brand-yellow-dark: #92400E;
  --border-warm: #E2E8F0;
  --border-card: #E3DDD0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-body);
  background-color: var(--canvas-warm);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Editorial Serif Headings */
.font-editorial {
  font-family: 'Fraunces', Georgia, serif;
  font-optical-sizing: auto;
}

/* Editorial Glass Header */
.header-glass {
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 228, 216, 0.85);
}

/* Dribbble Style Soft Cards */
.card-soft {
  background: var(--canvas-card);
  border: 1px solid var(--border-card);
  border-radius: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px -2px rgba(18, 33, 28, 0.03);
}

.card-soft:hover {
  transform: translateY(-4px);
  border-color: #D1C7B7;
  box-shadow: 0 20px 35px -10px rgba(18, 33, 28, 0.08);
}

/* High-Converting Floating Badge Animation */
@keyframes softFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.floating-badge {
  animation: softFloat 4.5s ease-in-out infinite;
}

.floating-badge-delayed {
  animation: softFloat 5s ease-in-out infinite 1.5s;
}

/* Hand-Drawn Accent Curve */
.svg-underline {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 10px;
  pointer-events: none;
}

/* Sleek Image Showcase Frame (Pinterest Arched / Squircle Style) */
.image-showcase-frame {
  position: relative;
  background: linear-gradient(145deg, #F5F1E8 0%, #EDE6D8 100%);
  border: 1.5px solid #E5DDCF;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(13, 51, 40, 0.12);
}



/* Pulsing Live WhatsApp Badge */
@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}

.live-pulse {
  animation: subtlePulse 2.8s infinite;
}

/* Continuous Smooth Scrolling Marquee Ticker */
@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: inline-flex;
  white-space: nowrap;
  animation: marqueeScroll 35s linear infinite;
  will-change: transform;
}

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

/* Sticky Side Panel CTA (WhatsApp) */
.sticky-side-cta {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-side-cta a {
  box-shadow: -4px 6px 24px rgba(11, 37, 69, 0.25);
}

.sticky-side-cta:hover {
  transform: translateY(-50%) translateX(-4px);
}

@media (max-width: 640px) {
  .sticky-side-cta {
    top: 55%;
  }
}



/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F6F3EB;
}
::-webkit-scrollbar-thumb {
  background: #D1C7B7;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B5A894;
}
