/*
Theme Name: WellnessDX Child Theme
Description: A custom child theme for WellnessDX with Tailwind CSS
Template: hello-elementor
Version: 1.0.0
Author: Sourabh Sharma
*/

/* Site-wide font family using Inconsolata */
:root {
  --font-primary: 'WorkSans', sans-serif;
  --font-heading: 'WorkSans', sans-serif;
}


/* Override theme-specific classes */
.site,
.entry-content,
.widget,
.comment-content,
p, span, div {
  font-family: var(--font-primary);
}


body{
  text-wrap: wrap;
  font-family: var(--font-primary);
}
/* Custom styles for the latest posts page */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Aspect ratio utility for older browsers */
.aspect-w-16 {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
}

.aspect-w-16 > * {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Custom pagination styles */
.pagination-item a {
  text-decoration: none;
}

.pagination-item .current {
  background-color: rgb(37 99 235);
  color: white;
  border-color: rgb(37 99 235);
}

/* Enhanced hover animations */
.hover-lift {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Glass morphism effects */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Custom scrollbar for better aesthetics */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth transitions for all interactive elements */
* {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Focus styles for accessibility */
.focus-visible:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Enhanced gradient text */
.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom scrollbar for Chrome, Safari, Opera */
.custom-scroll::-webkit-scrollbar {
  width: 8px;
  background: #ffffff;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: #38b2ac; /* teal-400 */
  border-radius: 8px;
  border: 2px solid #f1f5f9;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #007a3f; /* teal-700 */
}

/* Custom scrollbar for IE, Edge */
.custom-scroll {
  -ms-overflow-style: auto;  /* IE and Edge show custom scrollbar */
  scrollbar-width: thin;     /* Firefox */
  scrollbar-color: #007a3f #ffffff; /* thumb and track */
}


.post-content {
  max-width: 65ch;
  margin: 0 auto;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-content p {
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-content img,
.post-content iframe,
.post-content embed,
.post-content object {
  max-width: 100%;
  height: auto;
}

/* Paragraphs */
div.text-gray-700 p {
    @apply leading-relaxed mb-4;
}

/* Headings */
div.text-gray-700 h1 { @apply text-4xl font-bold mt-6 mb-4; }
div.text-gray-700 h2 { @apply text-3xl font-semibold mt-6 mb-3; }
div.text-gray-700 h3 { @apply text-2xl font-semibold mt-5 mb-3; }

/* Bold & strong */
div.text-gray-700 strong { @apply font-bold; }

/* Links */
div.text-gray-700 a { @apply text-blue-600 underline hover:text-blue-800; }

/* Lists */
div.text-gray-700 ul { @apply list-disc ml-6 mb-4; }
div.text-gray-700 ol { @apply list-decimal ml-6 mb-4; }
div.text-gray-700 li { @apply mb-2; }

/* Blockquotes */
div.text-gray-700 blockquote { @apply border-l-4 border-blue-200 bg-blue-50 p-4 rounded-lg mb-4; }

/* Images */
div.text-gray-700 img { @apply rounded-lg shadow-lg max-w-full h-auto mb-4; }

/* WordPress content container */
.post-content ul {
    @apply list-disc list-inside mb-4; /* Bullets + spacing */
}


