/* Custom Responsive Classes */
/* Mobile-first approach for responsive elements */

.desktop-only { 
  display: none !important; 
}

.mobile-only { 
  display: block !important; 
}

/* Desktop overrides */
@media (min-width: 768px) {
  .mobile-only { 
    display: none !important; 
  }
  .desktop-only { 
    display: block !important; 
  }
}

/* iOS video fixes: ensure taps pass through overlay and allow inline control */
video[playsinline][autoplay][muted] {
  pointer-events: auto;
}

.video-play-overlay {
  pointer-events: auto;
}

/* Blog Content Typography */
.blog-content {
  line-height: 1.7;
  color: #374151;
}

.blog-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.blog-content h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0.5rem;
}

.blog-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-content h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-content h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-content p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: #374151;
}

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

.blog-content li {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
  color: #374151;
}

.blog-content ul li {
  list-style-type: disc;
}

.blog-content ol li {
  list-style-type: decimal;
}

.blog-content ul li strong, 
.blog-content ol li strong {
  font-weight: 600;
  color: #111827;
}

.blog-content blockquote {
  border-left: 4px solid #2563eb;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.25rem;
  color: #4b5563;
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.blog-content code {
  background-color: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  color: #dc2626;
}

.blog-content pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.blog-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.blog-content th {
  background-color: #f9fafb;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #111827;
  border-bottom: 2px solid #e5e7eb;
}

.blog-content td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}

.blog-content tr:last-child td {
  border-bottom: none;
}

.blog-content tr:nth-child(even) {
  background-color: #f9fafb;
}

.blog-content a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

.blog-content a:hover {
  color: #1d4ed8;
  text-decoration: none;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.blog-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #e5e7eb, #9ca3af, #e5e7eb);
  margin: 3rem 0;
  border-radius: 1px;
}

/* Service Image Enhancements */
.service-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f9fafb;
}

.service-image-container img {
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(1);
}

.service-image-container:hover img {
  transform: scale(1.05);
  filter: brightness(1.05) contrast(1.02);
}

.service-image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-image-container:hover::before {
  opacity: 1;
}

/* Gallery Image Improvements */
.gallery-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #f9fafb;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.gallery-image-container:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.gallery-image-container img {
  transition: transform 0.3s ease;
}

.gallery-image-container:hover img {
  transform: scale(1.08);
}

/* Video Play Overlay Styles */
.video-play-overlay {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.video-play-overlay svg {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Responsive typography */
@media (max-width: 768px) {
  .blog-content h1 {
    font-size: 1.875rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
  }

  .blog-content h3 {
    font-size: 1.25rem;
  }

  .blog-content p, .blog-content li {
    font-size: 1rem;
  }

  .blog-content table {
    font-size: 0.875rem;
  }

  .blog-content th, .blog-content td {
    padding: 0.75rem 0.5rem;
  }

  /* Mobile image improvements */
  .service-image-container img,
  .gallery-image-container img {
    object-fit: contain !important;
  }

  /* Better spacing for mobile gallery */
  .gallery-image-container {
    margin-bottom: 0.5rem;
  }
}
