/* Hero Section */
.hero-section {
  padding: 80px 0 60px 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 15%, rgba(0, 180, 216, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.07) 0%, transparent 45%),
              var(--bg-body);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #a7f3d0;
  color: #065f46;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}


.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-navy);
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero-title .highlight-text {
  background: linear-gradient(135deg, var(--brand-cyan) 0%, var(--brand-green) 50%, var(--brand-cyan) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 6s linear infinite;
}

@keyframes textShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.1;
}

.stat-number.green { color: var(--brand-green); }
.stat-number.cyan { color: var(--brand-cyan); }
.stat-number.gold { color: var(--accent-gold); }

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Hero Visual / Teacher Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card-container {
  position: relative;
  width: 100%;
  max-width: 460px;
}

/* Glowing Ambient Backdrop Aura */
.hero-aura-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 115%;
  height: 115%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.20) 0%, rgba(16, 185, 129, 0.12) 30%, rgba(16, 185, 129, 0.04) 55%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  animation: auraPulse 6s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes auraPulse {
  0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.65; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

/* Orbiting Decorative Rings */
.hero-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 180, 216, 0.22);
  pointer-events: none;
  z-index: 1;
}

.hero-orbit-ring.ring-1 {
  width: 480px;
  height: 480px;
  transform: translate(-50%, -50%);
  animation: orbitRotate 32s linear infinite;
  will-change: transform;
}

.hero-orbit-ring.ring-2 {
  width: 530px;
  height: 530px;
  border-color: rgba(16, 185, 129, 0.18);
  transform: translate(-50%, -50%);
  animation: orbitRotateRev 42s linear infinite;
  will-change: transform;
}

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

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

.hero-portrait-wrap {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(11, 37, 58, 0.16);
  border: 4px solid #ffffff;
  background: #ffffff;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hero-portrait-wrap:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 64px rgba(11, 37, 58, 0.22);
}

.hero-portrait-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

/* Courses Grid */
.courses-section {
  padding: 90px 0;
  background: #ffffff;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

.course-card {
  background: var(--bg-body);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand-green), var(--brand-cyan));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-cyan);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.course-card:hover::before {
  opacity: 1;
}

.course-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.course-badge-tag {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.course-code {
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-navy-light);
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.course-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--brand-navy);
}

.course-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.course-features {
  list-style: none;
  margin-bottom: 24px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.course-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.course-features li i {
  color: var(--brand-green);
  font-size: 0.9rem;
}

/* About Section */
.about-section {
  padding: 90px 0;
  background: var(--bg-body);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 60px;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.pillar-card {
  background: #ffffff;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-normal);
}
.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-green);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-green-light);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--brand-navy);
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Interactive Syllabus Explorer */
.syllabus-explorer-section {
  padding: 90px 0;
  background: #ffffff;
}

.syllabus-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.syllabus-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--bg-body);
  border: 1.5px solid var(--border-light);
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.syllabus-tab-btn:hover, .syllabus-tab-btn.active {
  background: var(--brand-navy);
  color: #ffffff;
  border-color: var(--brand-navy);
  box-shadow: var(--shadow-sm);
}

.topic-details-card {
  background: var(--bg-body);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.topic-formula-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px dashed #cbd5e1;
  font-family: 'Outfit', monospace;
}

.formula-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.formula-display {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-navy);
  padding: 12px 16px;
  background: var(--bg-body);
  border-radius: 8px;
  margin-bottom: 12px;
}

/* WhatsApp Banner CTA */
.whatsapp-banner {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #0d3859 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 60px 0 90px 0;
  box-shadow: var(--shadow-lg);
}

.whatsapp-banner::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  bottom: -100px;
  right: -50px;
}

.whatsapp-banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.whatsapp-banner h2 {
  color: #ffffff;
  font-size: 2.3rem;
  margin-bottom: 16px;
}

.whatsapp-banner p {
  color: #cbd5e1;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Footer */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.footer-links a:hover {
  color: var(--brand-green);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .float-card-top, .float-card-bottom {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@keyframes slideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromRight {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideFromDown {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes subtleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Animation Base Classes - Self-executing with smooth keyframes (Never stuck at opacity 0) */
.anim-left {
  animation: slideFromLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-right {
  animation: slideFromRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-up {
  animation: slideFromDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-left.in-view,
.anim-right.in-view,
.anim-up.in-view {
  opacity: 1;
  transform: translate(0, 0);
}

/* Fallback / Initial Hero Animations if Observer is loading */
.hero-content.anim-left {
  animation: slideFromLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-visual-card.anim-right {
  animation: slideFromRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

/* Delays */
.delay-1 { transition-delay: 0.12s; animation-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; animation-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; animation-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; animation-delay: 0.48s; }
.delay-5 { transition-delay: 0.60s; animation-delay: 0.60s; }

/* Interactive Hover Lift */
.hover-lift {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(11, 37, 58, 0.12), 0 10px 10px -5px rgba(11, 37, 58, 0.04);
}

/* Floating Chemistry Ambient Layer */
.hero-chemistry-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.chem-bubble {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 180, 216, 0.22);
  box-shadow: 0 8px 30px rgba(11, 37, 58, 0.06);
  pointer-events: none;
  will-change: transform;
}

.chem-bubble-1 {
  width: 56px;
  height: 56px;
  top: 12%;
  left: 5%;
  font-size: 1.5rem;
  color: var(--brand-cyan);
  animation: floatParticleSlow 9s ease-in-out infinite;
}

.chem-bubble-2 {
  width: 50px;
  height: 50px;
  top: 68%;
  left: 10%;
  font-size: 1.35rem;
  color: var(--brand-green);
  animation: floatParticleMedium 7.5s ease-in-out infinite 1s;
}

.chem-bubble-3 {
  width: 46px;
  height: 46px;
  top: 16%;
  right: 8%;
  font-size: 1.25rem;
  color: var(--accent-gold);
  animation: floatParticleSlow 8.5s ease-in-out infinite 0.5s;
}

.chem-bubble-4 {
  width: 48px;
  height: 48px;
  bottom: 14%;
  right: 18%;
  font-size: 1.3rem;
  color: #3b82f6;
  animation: floatParticleFast 6s ease-in-out infinite 1.5s;
}

/* Floating Chemical Formula Tags */
.chem-formula-tag {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.85);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'Outfit', monospace;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  pointer-events: none;
  will-change: transform;
}

.chem-tag-1 {
  top: 26%;
  left: 2%;
  color: var(--brand-green-hover);
  animation: floatParticleMedium 10s ease-in-out infinite 0.8s;
}

.chem-tag-2 {
  top: 84%;
  left: 32%;
  color: var(--unpaid-red);
  animation: floatParticleSlow 11s ease-in-out infinite 2s;
}

.chem-tag-3 {
  top: 8%;
  right: 26%;
  color: var(--brand-cyan);
  animation: floatParticleFast 8s ease-in-out infinite 1.2s;
}

.chem-tag-4 {
  bottom: 22%;
  left: 46%;
  color: #8b5cf6;
  animation: floatParticleMedium 9.5s ease-in-out infinite 2.5s;
}

.chem-tag-5 {
  top: 48%;
  right: 4%;
  color: var(--brand-navy);
  animation: floatParticleSlow 10.5s ease-in-out infinite 1.8s;
}

@keyframes floatParticleSlow {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -22px, 0) rotate(4deg);
  }
}

@keyframes floatParticleMedium {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -16px, 0) rotate(-4deg);
  }
}

@keyframes floatParticleFast {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(3deg);
  }
}

/* Floating Achievement Badges around Portrait */
.hero-float-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.97);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 36px rgba(11, 37, 58, 0.14), 0 4px 12px rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  will-change: transform;
}

.hero-float-badge:hover {
  transform: translateY(-5px) scale(1.04) !important;
  box-shadow: 0 22px 42px rgba(11, 37, 58, 0.2);
}

.hero-float-badge.badge-top-right {
  top: 24px;
  right: -24px;
}

.hero-float-badge.badge-bottom-left {
  bottom: 28px;
  left: -28px;
}

.hero-float-badge.badge-bottom-right {
  bottom: -16px;
  right: 20px;
}

.float-badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.float-badge-icon.gold {
  background: #fef3c7;
  color: #b45309;
}

.float-badge-icon.cyan {
  background: var(--brand-cyan-light);
  color: var(--brand-cyan);
}

.float-badge-icon.green {
  background: var(--brand-green-light);
  color: var(--brand-green);
}

.float-badge-content {
  display: flex;
  flex-direction: column;
}

.float-badge-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.15;
}

.float-badge-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.float-anim-1 {
  animation: floatBadge1 4.8s ease-in-out infinite alternate;
}

.float-anim-2 {
  animation: floatBadge2 5.5s ease-in-out infinite alternate;
}

.float-anim-3 {
  animation: floatBadge3 6.2s ease-in-out infinite alternate;
}

@keyframes floatBadge1 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(1.5deg); }
}

@keyframes floatBadge2 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(-1.5deg); }
}

@keyframes floatBadge3 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-11px) rotate(1deg); }
}

[dir="rtl"] .hero-float-badge.badge-top-right {
  right: auto;
  left: -24px;
}
[dir="rtl"] .hero-float-badge.badge-bottom-left {
  left: auto;
  right: -28px;
}
[dir="rtl"] .hero-float-badge.badge-bottom-right {
  right: auto;
  left: 20px;
}

/* Button Light Sheen Sweep Effect */
.btn-whatsapp, .btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-whatsapp::after, .btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-25deg);
  transition: none;
}

.btn-whatsapp:hover::after, .btn-primary:hover::after {
  left: 140%;
  transition: left 0.75s ease-in-out;
}

/* Enhanced Course Card Micro-Interactions */
.course-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.course-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(0, 180, 216, 0.6);
  box-shadow: 0 22px 40px -8px rgba(11, 37, 58, 0.14), 0 0 16px rgba(0, 180, 216, 0.15);
}

.course-card:hover .course-code {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  transform: scale(1.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pillar-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px -5px rgba(11, 37, 58, 0.09);
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.12) rotate(6deg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Syllabus Explorer Switch Animation */
.topic-details-card.topic-switching {
  animation: topicSwitchFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes topicSwitchFade {
  0% {
    opacity: 0.2;
    transform: translateY(12px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.topic-formula-box {
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.topic-formula-box.formula-glow {
  box-shadow: 0 0 24px rgba(0, 180, 216, 0.25);
  border-color: var(--brand-cyan);
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .anim-left, .anim-right, .anim-up,
  .hero-float-badge, .chem-bubble, .chem-formula-tag,
  .hero-aura-glow, .hero-orbit-ring,
  .highlight-text {
    animation: none !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
}

/* Mobile Adjustments for Badges & Responsive Layout */
@media (max-width: 900px) {
  .hero-orbit-ring {
    display: none;
  }
  .hero-float-badge.badge-top-right {
    top: 8px;
    right: 4px;
  }
  .hero-float-badge.badge-bottom-left {
    bottom: 8px;
    left: 4px;
  }
  .hero-float-badge.badge-bottom-right {
    display: none;
  }
  .chem-bubble {
    opacity: 0.25;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 24px 0 50px 0;
    overflow: hidden;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.22;
  }

  .hero-subtitle {
    font-size: 0.94rem;
    padding: 0 4px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 13px 16px;
    font-size: 0.92rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .stat-item {
    padding: 12px 14px;
    flex: 1 1 120px;
  }

  .stat-number {
    font-size: 1.55rem;
  }

  .stat-label {
    font-size: 0.74rem;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .course-card {
    padding: 22px 18px;
  }

  .topic-details-card {
    padding: 20px 16px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .whatsapp-banner {
    padding: 32px 18px;
    margin: 40px 0 60px 0;
    border-radius: 18px;
  }

  .whatsapp-banner h2 {
    font-size: 1.55rem;
  }

  .whatsapp-banner p {
    font-size: 0.92rem;
    margin-bottom: 22px;
  }

  .whatsapp-banner .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 13px 16px;
    font-size: 0.92rem;
  }

  .hero-portrait-img {
    max-height: 380px;
  }

  .hero-float-badge {
    padding: 6px 12px;
    gap: 8px;
    border-radius: 12px;
  }

  .float-badge-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .float-badge-val {
    font-size: 0.85rem;
  }

  .float-badge-lbl {
    font-size: 0.68rem;
  }

  .chem-formula-tag {
    display: none; /* Hide floating text formulas on mobile to avoid overflow */
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .hero-card-container {
    max-width: 320px;
  }

  .hero-portrait-img {
    max-height: 300px;
  }

  .hero-float-badge.badge-top-right {
    top: 4px;
    right: 2px;
  }

  .hero-float-badge.badge-bottom-left {
    bottom: 4px;
    left: 2px;
  }
}

/* ==========================================================================
   DEDICATED FULL-PAGE ARCHITECTURE STYLES
   ========================================================================== */
.page-hero-banner {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #163654 60%, #0d2840 100%);
  color: #ffffff;
  padding: 56px 0 46px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--brand-cyan);
}

.page-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.page-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 12px;
  font-weight: 600;
}

.page-breadcrumbs a {
  color: var(--brand-cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}

.page-breadcrumbs a:hover {
  color: #ffffff;
}

.page-breadcrumbs i {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.page-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.page-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 0;
}

.page-content-wrapper {
  padding: 48px 0 64px;
}

@media (max-width: 768px) {
  .page-hero-banner {
    padding: 32px 0 24px;
  }
  .page-hero-title {
    font-size: 1.55rem;
    line-height: 1.25;
  }
  .page-hero-subtitle {
    font-size: 0.88rem;
  }
  .page-content-wrapper {
    padding: 24px 0 36px;
  }
}

@media (max-width: 420px) {
  .page-hero-banner {
    padding: 24px 0 18px;
  }
  .page-hero-title {
    font-size: 1.35rem;
  }
}

.page-lead-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--brand-navy);
  font-weight: 500;
  margin-bottom: 32px;
  padding: 20px 24px;
  background: #f8fafc;
  border-left: 4px solid var(--brand-cyan);
  border-radius: 0 12px 12px 0;
}

.editorial-section {
  margin-bottom: 48px;
}

.editorial-section-title {
  font-size: 1.6rem;
  color: var(--brand-navy);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.editorial-section-title i {
  color: var(--brand-cyan);
  font-size: 1.3rem;
}

.editorial-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.feature-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.feature-box {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-cyan);
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-box-icon.cyan { background: var(--brand-cyan-light); color: var(--brand-cyan); }
.feature-box-icon.green { background: var(--brand-green-light); color: var(--brand-green); }
.feature-box-icon.gold { background: var(--accent-gold-light); color: var(--accent-gold); }
.feature-box-icon.purple { background: rgba(99, 102, 241, 0.12); color: #6366f1; }

.feature-box-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.feature-box-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Dedicated Live Check-In Page Styles */
.checkin-hero-card {
  max-width: 580px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(11, 37, 58, 0.08);
  padding: 36px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.checkin-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-green));
}

/* RTL Specific Enhancements for Public Pages */
[dir="rtl"] .page-lead-intro {
  border-left: none;
  border-right: 4px solid var(--brand-cyan);
  border-radius: 12px 0 0 12px;
  text-align: right;
}

[dir="rtl"] .page-breadcrumbs i.fa-chevron-right {
  transform: rotate(180deg);
}

[dir="rtl"] .editorial-section {
  text-align: right;
}

[dir="rtl"] .editorial-section-title {
  justify-content: flex-start;
}

[dir="rtl"] .feature-box {
  text-align: right;
}

[dir="rtl"] .filter-grid-public label {
  text-align: right;
}

[dir="rtl"] #publicPastPaperSearch {
  padding-left: 14px;
  padding-right: 38px;
  text-align: right;
}

[dir="rtl"] .past-papers-desktop-table th:last-child,
[dir="rtl"] .past-papers-desktop-table td:last-child {
  text-align: left !important;
}

[dir="rtl"] .past-papers-desktop-table th:first-child,
[dir="rtl"] .past-papers-desktop-table td:first-child {
  text-align: right !important;
}

