* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  max-width: 100%;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  word-break: break-word;
}

/* Hero Section */
.hero-bg {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #059669 100%);
}

header .flex.flex-col.items-start {
  background: #226b4d;
  padding: 5px;
  border-radius: 8px;
}

/* Carousel Container Fix */
#carousel-slides {
  position: relative;
  width: 95%;
  height: 24rem; /* 384px for mobile */
  overflow: hidden;
  cursor: pointer;
}
/* Carousel Slide Fix */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.opacity-100 {
  opacity: 1;
}

/* Image Centering and Proper Display */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed from cover to contain to show full image */
  object-position: center;
}

/* Alternative: If you want to fill the space but keep centered */
.carousel-slide img.fill-mode {
  object-fit: cover;
  object-position: center center;
}

/* Ensure overlay doesn't interfere with image */
.carousel-slide .absolute.inset-0 {
  pointer-events: none;
}

/* Carousel Container Parent Fix */
.flex-1.relative.overflow-hidden.rounded-3xl {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pause carousel on hover */
#carousel-slides:hover .carousel-slide {
  animation-play-state: paused !important;
  cursor: grab;
}

/* Ensure hover works on the entire carousel container */
.carousel-slide {
  cursor: pointer;
}

/* Optional: Add a subtle border pulse when paused */
#carousel-slides:hover {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
  transition: box-shadow 0.3s ease;
}

/* Remove conflicting styles */
.object-cover {
  object-fit: contain !important; /* Override previous fill setting */
}

/* Ensure proper aspect ratio maintenance */
.carousel-slide {
  background: #064e3b; /* Background color to fill gaps */
}

/* Hero Grid Animations */
@keyframes floating {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-8px) rotate(1deg);
  }
  66% {
    transform: translateY(4px) rotate(-1deg);
  }
}

@keyframes weights-pump {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.05) rotate(-2deg);
  }
}

.frame-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 25px;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.golden-frame {
  position: relative;
  aspect-ratio: 2/2;
  perspective: 1000px;
  animation: floating 6s ease-in-out infinite;
  cursor: pointer;
}

.golden-frame:nth-child(2n) {
  animation-delay: 1s;
  animation-duration: 7s;
}
.golden-frame:nth-child(3n) {
  animation-delay: 2s;
  animation-duration: 5s;
}

.golden-frame:first-child {
  animation: weights-pump 3s ease-in-out infinite;
}

.frame-grid.therapedia .golden-frame {
  aspect-ratio: auto !important;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 15px;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.flip-card-back {
  transform: rotateY(180deg);
}

.flip-card-front {
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.golden-frame:hover .flip-card-back img {
  transform: scale(1.1);
}

/* Mental Fitness Weights Overlay */
.weights-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 78, 59, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 10;
  border-radius: 15px;
}

.golden-frame:first-child:hover .weights-overlay {
  opacity: 1;
}

.weights-image {
  width: 80%;
  height: 80%;
  object-fit: contain;
  animation: weights-pump 2s ease-in-out infinite;
}

.weights-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weights-container .weights-img {
  /* Ensure the image itself doesn't have a background */
  background: transparent;
}

/* Therapedia Grid */
.frame-grid.therapedia {
  background: linear-gradient(
    135deg,
    rgba(6, 78, 59, 0.95),
    rgba(4, 120, 87, 0.9)
  );
  border-radius: 40px;
  padding: 40px;
  gap: 25px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  box-shadow: 0 10px 40px rgba(6, 78, 59, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(252, 211, 77, 0.3);
}

.frame-grid.therapedia .golden-frame {
  animation: therapedia-float 4s ease-in-out infinite;
}

@keyframes therapedia-float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
    filter: brightness(1.05);
  }
}

.frame-grid.therapedia .golden-frame:nth-child(2n) {
  animation-delay: 0.5s;
  animation-duration: 3.5s;
}
.frame-grid.therapedia .golden-frame:nth-child(3n) {
  animation-delay: 1.5s;
  animation-duration: 4.5s;
}

.frame-grid.therapedia .flip-card-inner {
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 20px;
}

.frame-grid.therapedia .flip-card-front {
  border-radius: 20px;
  border: 2px solid rgba(252, 211, 77, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  background: linear-gradient(
    135deg,
    rgba(6, 78, 59, 0.8),
    rgba(4, 120, 87, 0.8)
  );
  color: white;
  font-size: 0.9rem;
}

.frame-grid.therapedia .flip-card-back {
  border-radius: 20px;
  border: 2px solid rgba(252, 211, 77, 0.5);
  box-shadow: 0 0 30px rgba(252, 211, 77, 0.3),
    inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.frame-grid.therapedia .golden-frame:hover .flip-card-back img {
  filter: brightness(1.1);
}

.theme-1 {
  background: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 100%);
  color: #0369a1;
  font-family: "Montserrat", sans-serif;
}
.theme-2 {
  background: linear-gradient(135deg, #fef2f2 0%, #fca5a5 100%);
  color: #991b1b;
  font-family: "Playfair Display", serif;
}
.theme-3 {
  background: linear-gradient(135deg, #f0fdf4 0%, #86efac 100%);
  color: #166534;
  font-family: "Montserrat", sans-serif;
}
.theme-4 {
  background: linear-gradient(135deg, #fffbeb 0%, #fcd34d 100%);
  color: #92400e;
  font-family: "Tahoma", sans-serif;
}
.theme-5 {
  background: linear-gradient(135deg, #faf5ff 0%, #d8b4fe 100%);
  color: #6b21a8;
  font-family: "Georgia", serif;
}
.theme-6 {
  background: linear-gradient(135deg, #ecfeff 0%, #67e8f9 100%);
  color: #155e75;
  font-family: "Verdana", sans-serif;
}

.ribbon-corner {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
}

.cta-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Icon Styles */
.download-icon {
  position: absolute;
  z-index: 20;
}

.icon-style-1 {
  top: 0;
  right: 0;
  padding: 0.2em;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.icon-style-2 {
  top: 0;
  right: 0;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.icon-style-3 {
  top: 0.5rem;
  right: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.partial-bg {
  background-color: #f59e0b;
}
.full-bg {
  background-color: #10b981;
}
.partial-bg-alt {
  background-color: #f97316;
}
.full-bg-alt {
  background-color: #22c55e;
}

.saath-card {
  transition: all 0.3s ease;
}

.saath-card:hover {
  transform: translateY(-8px);
}

.hidden {
  display: none;
}
@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2),
      0 0 20px rgba(6, 78, 59, 0.3);
  }
}

.saath-card {
  animation: pulseGlow 4s ease-in-out infinite;
}

.saath-card:nth-child(1) {
  animation-delay: 0s;
}
.saath-card:nth-child(2) {
  animation-delay: 0.8s;
}
.saath-card:nth-child(3) {
  animation-delay: 1.6s;
}
.saath-card:nth-child(4) {
  animation-delay: 2.4s;
}
.saath-card:nth-child(5) {
  animation-delay: 3.2s;
}

.cover-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.flip-card-front {
  position: relative;
  width: 100%;
  height: 100%;
}

.front-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.4s ease;
}

/* Default state */
.hover-swap .weights-img {
  opacity: 1;
  object-fit: fill;
  border-radius: 15px;
}

.hover-swap .cover-img {
  opacity: 0;
}

/* On hover */
.golden-frame:hover .hover-swap .weights-img {
  opacity: 0;  
}

.golden-frame:hover .hover-swap .cover-img {
  opacity: 1;
  background-color: rgba(15, 23, 42, 0.9);
}

/* Legend Section */
.legend-section {
  padding: 2rem 1rem;
  background: #f3f4f6;
}

.legend-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
}

.legend-dot.partial {
  background: #f59e0b;
}

.legend-dot.full {
  background: #10b981;
}

.legend-text {
  font-size: 0.875rem;
  font-weight: 500;
}

.legend-tip {
  font-size: 0.875rem;
  color: #6b7280;
}

.error-message {
  display: none;
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.error-message.show {
  display: block;
}

.input-error {
  border-color: #dc2626 !important;
  background-color: #fef2f2;
}

/* Package Card Styles */
.package-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.package-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}
.package-card:hover::before {
  left: 100%;
}
.package-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(6, 78, 59, 0.3);
}
.package-card.popular {
  border: 3px solid #fbbf24;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}
.frame-grid.shadow-2xl {
  font-size: 2em !important;
  word-break: break-all;
}
.text-emerald-300 {
  color: rgb(64 253 178) !important;
  font-weight: bold;
}
.tooltip {
  position: relative;
  cursor: grab; /* tooltip-style cursor */
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #064e3b;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.tooltip::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #064e3b;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tooltip:hover::after,
.tooltip:hover::before {
  opacity: 1;
}

/** Therapedia Section **/

/* Animation for background blobs */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Smooth gradient text */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

/* Enhanced hover effects */
#therapedia .saath-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#therapedia .saath-card:hover {
  transform: translateY(-5px);
}

.image.tagline {
  display: none;
}

.object-cover {
  object-fit: fill !important;
}

/* Therapedia Button - Golden Shimmer Wave Animation */
.demo-area {
  margin-top: 8px;
}

.navTherapedia {
  position: relative;
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  color: white !important;
  overflow: hidden;
}

/* Remove hover background change for Therapedia only */
.navTherapedia:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
}

.navTherapedia::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(251, 191, 36, 0.5),
    transparent
  );
  animation: shimmer 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes shimmer {
  0% {
    left: -10%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 50%;
    opacity: 0;
  }
}

/* Ensure the text stays visible above the shimmer */
.navTherapedia * {
  position: relative;
  z-index: 1;
}

/* Reduce header padding and spacing to prevent overlap */
header .max-w-8xl {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

header .flex.items-center.space-x-4 {
  gap: 0.5rem;
}

header nav.hidden.lg\:flex {
  gap: 0.25rem;
}

header nav.hidden.lg\:flex a {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  font-size: 1em;
  white-space: nowrap;
}

/* Hide More menu by default */
#more-menu-container {
  display: none !important;
}

/* Progressive hiding of nav items */
/* More dropdown styles - match Resources dropdown */
#more-dropdown {
  min-width: 12rem;
}

#more-dropdown a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  transition: all 0.15s ease;
  border: none;
  background: transparent;
}

#more-dropdown a:hover {
  background-color: #d1fae5;
  color: #064e3b;
}

#more-dropdown a:first-child {
  border-radius: 0.5rem 0.5rem 0 0;
}

#more-dropdown a:last-child {
  border-radius: 0 0 0.5rem 0.5rem;
}

/* Show/hide More menu at breakpoints */
#more-menu-container {
  display: none !important;
}

/* Introducing Therapedia css*/

.therapedia-intro-5 {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: linear-gradient(to bottom, #10b981, #059669);
  border-radius: 12px;
  margin-bottom: 1rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
  box-shadow: 0 1px 0 #0d9668, 0 2px 0 #0a8159, 0 3px 0 #086d4a, 0 4px 0 #06583b,
    0 8px 12px rgba(0, 0, 0, 0.3);
}

.therapedia-intro-5::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 12px 12px 0 0;
}

.therapedia-intro-5:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 #0d9668, 0 2px 0 #0a8159, 0 3px 0 #086d4a, 0 4px 0 #06583b,
    0 5px 0 #044d2d, 0 6px 0 #033e23, 0 15px 25px rgba(0, 0, 0, 0.4);
}

.therapedia-intro-5:active {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 #0d9668, 0 2px 0 #0a8159, 0 6px 10px rgba(0, 0, 0, 0.3);
}

.therapedia-intro-5 span {
  color: #226b4d;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}

/* Navigation container - distribute items equally */
nav.hidden.lg\:flex {
  display: flex;
  flex: 1; /* Take up all available space */
  justify-content: space-evenly; /* Equal spacing between items */
  align-items: center;
  margin: 0 2rem; /* Add some margin from logo and other elements */
  max-width: none; /* Remove any max-width constraints */
}

/* Alternative option - if you want items stretched edge to edge */
nav.alternative-stretch {
  display: flex;
  flex: 1;
  justify-content: space-between; /* Items pushed to edges with equal space */
  align-items: center;
  margin: 0 2rem;
}

/* Navigation items - ensure they don't shrink */
nav.hidden.lg\:flex > a,
nav.hidden.lg\:flex > div,
nav.hidden.lg\:flex > button {
  flex-shrink: 0; /* Prevent items from shrinking */
  white-space: nowrap; /* Keep text on one line */
}

/* If you want each item to take equal width */
nav.equal-width-items {
  display: flex;
  flex: 1;
  align-items: center;
  margin: 0 2rem;
}

nav.equal-width-items > a,
nav.equal-width-items > div,
nav.equal-width-items > button {
  flex: 1; /* Each item takes equal width */
  text-align: center; /* Center text within each item */
  white-space: nowrap;
}

/* Parent container adjustment - ensure flex layout */
.max-w-8xl.mx-auto {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Container for nav items and buttons */
.max-w-8xl.mx-auto > div.flex.items-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Default: push everything to right (for hamburger) */
}

/* Hamburger menu - always stays on right */
#mobile-menu-toggle {
  margin-left: auto; /* Ensures hamburger is on the right */
}

/************  Media Queries   ************/
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .frame-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
  }
  .flip-card-front {
    font-size: 0.65rem;
  }
  .frame-grid.therapedia {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    padding: 30px;
  }
  .grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 640px) {
  img.w-24.h-24 {
    width: 3rem;
    height: 3rem;
  }
  .text-xl.font-extrabold.tracking-tight.logo-sparkle {
    font-size: 1rem;
    line-height: 1;
  }
  #carousel-slides {
    height: 550px;
  }
  header .py-4 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .sm\:h-\[550px\] {
    height: 550px;
    width: 450px;
    text-align: center;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  #carousel-slides {
    height: 450px; /* Reduced height for better mobile view */
  }

  .carousel-slide img {
    object-fit: cover; /* Cover mode works better on mobile */
  }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1023px) {
  #carousel-slides {
    height: 450px;
    width: 450px;
  }

  .carousel-slide img {
    object-fit: contain; /* Show full image on tablets */
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .golden-frame {
    font-size: 0.65rem;
  }
  .flip-card-front {
    font-size: 0.65rem;
  }
  .frame-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .frame-grid.therapedia {
    gap: 15px;
    padding: 20px;
  }
}

/* Desktop - full display */
@media (min-width: 1024px) {
  #carousel-slides {
    height: 550px;
  }

  .carousel-slide {
    padding: 1rem;
  }

  .carousel-slide img {
    object-fit: contain; /* Show full image on desktop */
    max-width: 100%;
    max-height: 100%;
  }

  .lg\:px-8 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    padding-bottom: 0.5rem !important;
  }

  .max-w-8xl.mx-auto > div.flex.items-center {
    justify-content: center; /* Center nav items on large screens */
  }

  /* Resources dropdown and other buttons stay on the right */
  .max-w-8xl.mx-auto > div.flex.items-center > div.relative,
  .max-w-8xl.mx-auto > div.flex.items-center > .hidden.lg\:flex {
    margin-left: auto; /* Push to right edge */
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .frame-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .frame-grid.therapedia {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 30px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  #therapedia .lg\:grid {
    display: block;
  }

  #therapedia .lg\:col-span-5,
  #therapedia .lg\:col-span-7 {
    margin-bottom: 2rem;
  }
  .lg\:mt-0 {
    display: block;
    margin: 0 auto;
  }
  #more-menu-container {
    display: none !important;
  }
  nav.hidden.lg\:flex {
    gap: 0.5rem;
    display: none !important;
  }
  #mobile-menu-toggle {
    display: block !important;
  }

  /* Ensure hamburger stays right on mobile */
  .max-w-8xl.mx-auto > div.flex.items-center {
    justify-content: flex-end;
  }
}

@media (max-width: 1200px) {
  nav.hidden.lg\:flex > a:nth-child(2) {
    display: none !important;
  }
}
/* Responsive adjustments */
@media (max-width: 1280px) {
  nav.hidden.lg\:flex {
    margin: 0 1rem;
  }
}
@media (max-width: 1300px) {
  nav.hidden.lg\:flex > .demo-area {
    display: none !important;
  }
}

@media (max-width: 1400px) {
  nav.hidden.lg\:flex > a:nth-child(4) {
    display: none !important;
  }
}

@media (max-width: 1500px) {
  #more-menu-container {
    display: block !important;
  }
  nav.hidden.lg\:flex > a:nth-child(5) {
    display: none !important;
  }
}

@media (max-height: 450px) {
  .sticky {
    position: relative !important;
  }
}
