/*
Theme Name: Isarva WordPress Theme
Theme URI: https://isarva.in
Author: Isarva Infotech
Author URI: https://isarva.in
Description: Custom WordPress theme for Isarva Infotech with modern design and Tailwind CSS
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: isarva
*/

/* ========================================
   CSS Variables
   ======================================== */
:root {
  --bg-dark: #FDF8F2;
  --bg-lighter: #ffffff;
  --accent-primary: #10b981;
  --accent-secondary: #84cc16;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(16, 185, 129, 0.05);
  --text-muted: #53606b;
  
  /* Tailwind CSS Variables */
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgba(59, 130, 246, 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
}

*,
::before,
::after {
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgba(59, 130, 246, 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
}

/* ========================================
   Custom Scrollbar Styles
   ======================================== */

/* Global Custom Scrollbar - Gradient brand colors */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
      var(--accent-primary),
      var(--accent-secondary));
  border-radius: 10px;
}

/* Scrollbar Hide Utility - Complete hide for all browsers */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Mobile-Responsive Scrollbar - Hide on mobile, show on desktop */
.scrollbar-hide-mobile {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide-mobile::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .scrollbar-hide-mobile {
    -ms-overflow-style: auto;
    scrollbar-width: thin;
  }

  .scrollbar-hide-mobile::-webkit-scrollbar {
    display: block;
    width: 8px;
    height: 8px;
  }

  .scrollbar-hide-mobile::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
  }

  .scrollbar-hide-mobile::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 4px;
  }

  .scrollbar-hide-mobile::-webkit-scrollbar-thumb:hover {
    background: #059669;
  }
}

/* Thin Scrollbar Utility - Gray minimal style */
.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

.scrollbar-thin::-webkit-scrollbar {
  width: 6px;
}

.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 10px;
  border: 2px solid transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ========================================
   Global Styles
   ======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-dark);
  /* Performance optimizations */
  -webkit-overflow-scrolling: touch;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Performance optimizations */
  overflow-x: hidden;
  position: relative;
}

/* ========================================
   Typography - Space Grotesk for Headings
   ======================================== */
h1, h2, h3, h4, h5, h6,
.font-display,
.font-heading {
  font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

h3 {
  font-size: 2rem;
  font-weight: 700;
}

h4 {
  font-size: 1.5rem;
  font-weight: 600;
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
}

/* ========================================
   Header Scroll Effect
   ======================================== */
.header-scroll {
  background: transparent;
  backdrop-filter: none;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
  will-change: background, padding, box-shadow;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.header-scroll.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(229, 231, 235, 1);
}

/* ========================================
   Navigation Mega Menu
   ======================================== */
.mega-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  max-width: 100vw;
  z-index: 9999;
}

.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Specific positioning for different dropdowns */
.mega-menu.mega-menu-left {
  left: 0;
  transform: translateX(0) translateY(-10px);
}

.nav-dropdown:hover .mega-menu.mega-menu-left {
  transform: translateX(0) translateY(0);
}

.mega-menu.mega-menu-center {
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
}

.nav-dropdown:hover .mega-menu.mega-menu-center {
  transform: translateX(-50%) translateY(0);
}

/* Ensure mega menu content doesn't overflow */
.mega-menu > div {
  max-width: calc(100vw - 3rem);
  margin: 0 auto;
}

/* Prevent text overflow in mega menu items - allow natural wrapping */
.mega-menu h4,
.mega-menu span,
.mega-menu p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.break-words {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.mega-menu h4 {
  line-height: 1.4;
  max-width: 100%;
}

/* Specific wrapping for grid items - natural text wrap without truncation */
.mega-menu .grid a {
  min-width: 0; /* Allow flex items to shrink below content size */
}

.mega-menu .grid a > div {
  flex: 1;
  min-width: 0;
}

.mega-menu .grid a h4 {
  word-break: break-word;
  white-space: normal;
}

.dropdown-arrow {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu-backdrop {
  transition: opacity 0.3s ease;
}

.mobile-menu {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle-section svg {
  transition: transform 0.3s ease;
}

.mobile-menu-toggle-section svg.rotate-180 {
  transform: rotate(180deg);
}

.mobile-menu-submenu {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Blog Content Styles
   ======================================== */
.isv_blog_contents {
  font-size: 1.125rem;
  line-height: 1.75;
  font-family: 'Inter', sans-serif;
}

.isv_blog_contents h2 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111827;
  letter-spacing: -0.02em;
}

.isv_blog_contents h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #111827;
  letter-spacing: -0.02em;
}

.isv_blog_contents h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #111827;
  letter-spacing: -0.02em;
}

.isv_blog_contents p {
  margin-bottom: 1.5rem;
  color: #374151;
  font-size: 16px;
  line-height: 1.75;
}

.isv_blog_contents ul,
.isv_blog_contents ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.isv_blog_contents li {
  margin-bottom: 0.5rem;
}

.isv_blog_contents a {
  color: #10b981;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.isv_blog_contents a:hover {
  color: #059669;
}

.isv_blog_contents img {
  max-width: 100%;
  height: auto;
  border-radius: 1rem;
  margin: 2rem 0;
}

.isv_blog_contents blockquote {
  border-left: 4px solid #10b981;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6b7280;
}

.isv_blog_contents code {
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.isv_blog_contents pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.isv_blog_contents pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* ========================================
   Button Styles
   ======================================== */
.press-illusion-btn {
  cursor: pointer;
  text-align: center;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  transform: perspective(1000px) translateZ(0);
  box-shadow: 0 6px #27ae60, 0 8px 12px rgba(39, 174, 96, 0.3), 0 12px 24px rgba(39, 174, 96, 0.15);
}

.press-illusion-btn:hover {
  transform: perspective(1000px) translateY(3px) translateZ(0);
  box-shadow: 0 3px #27ae60, 0 5px 8px rgba(39, 174, 96, 0.25), 0 8px 16px rgba(39, 174, 96, 0.12);
}

.press-illusion-btn:active {
  transform: perspective(1000px) translateY(4px) translateZ(0);
  box-shadow: 0 2px #27ae60, 0 4px 8px rgba(39, 174, 96, 0.2), 0 6px 12px rgba(39, 174, 96, 0.1);
}

/* Orange Button Variant */
.press-illusion-btn-orange {
  cursor: pointer;
  text-align: center;
  color: #fff;
  background: #f97316;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-weight: 700;
  transition: all .3s;
  display: none; /* Hidden by default on mobile */
  position: relative;
  overflow: hidden;
  transform: perspective(1000px) translateZ(0);
  box-shadow: 0 6px #ea580c, 0 8px 12px #ea580c4d, 0 12px 24px #ea580c26;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .press-illusion-btn-orange {
    display: flex !important; /* Show on desktop */
  }
}

.press-illusion-btn-orange:hover {
  background: #ea580c;
  color:#fff !important;
  transform: perspective(1000px) translateY(3px) translateZ(0);
  box-shadow: 0 6px #ea580c, 0 8px 12px #ea580c4d, 0 12px 24px #ea580c26;
}

.press-illusion-btn-orange:active {
   color:#fff !important;
  transform: perspective(1000px) translateY(5px) translateZ(0);
  box-shadow: 0 1px #ea580c, 0 3px 6px #ea580c33, 0 5px 10px #ea580c1a;
}

/* ========================================
   Search Form Styles
   ======================================== */
/* Search Form Container */
form.relative.group {
  position: relative;
  display: block;
}

/* Search Input Field */
form.relative.group input[type="text"] {
  width: 100% !important;
  background-color: rgb(249, 250, 251) !important;
  border: 1px solid rgb(229, 231, 235) !important;
  border-radius: 16px !important;
  padding: 16px 128px 16px 56px !important;
  color: rgb(17, 24, 39) !important;
  font-family: Inter, "Inter Fallback", Outfit, "Plus Jakarta Sans", system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  outline: none !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  -webkit-font-smoothing: antialiased !important;
}

/* Input Focus State */
form.relative.group input[type="text"]:focus {
  background-color: rgb(255, 255, 255) !important;
  border-color: rgb(16, 185, 129) !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1), 
              0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
  outline: 2px solid transparent !important;
  outline-offset: 2px !important;
}

/* Placeholder Text */
form.relative.group input[type="text"]::placeholder {
  color: rgb(156, 163, 175) !important;
  opacity: 1 !important;
  font-weight: 500 !important;
  font-family: Inter, sans-serif !important;
}

/* Search Icon Container */
form.relative.group .absolute.left-5 {
  position: absolute !important;
  left: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
}

/* Search Icon SVG */
form.relative.group .absolute.left-5 svg {
  width: 20px !important;
  height: 20px !important;
  color: rgb(156, 163, 175) !important;
  transition: color 0.2s ease !important;
}

/* Search Icon Color on Focus */
form.relative.group:focus-within .absolute.left-5 svg {
  color: rgb(16, 185, 129) !important;
}

/* Search Button */
form.relative.group button[type="submit"] {
  position: absolute !important;
  right: 8px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background-color: rgb(5, 150, 105) !important;
  color: rgb(255, 255, 255) !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 10px 24px !important;
  border-radius: 14px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 10px 15px -3px rgb(167, 243, 208), 
              0 4px 6px -4px rgb(167, 243, 208) !important;
  font-family: Inter, "Inter Fallback", Outfit, "Plus Jakarta Sans", system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
}

/* Button Hover State */
form.relative.group button[type="submit"]:hover {
  background-color: rgb(4, 120, 87) !important;
  box-shadow: 0 10px 15px -3px rgba(167, 243, 208, 0.7), 
              0 4px 6px -4px rgba(167, 243, 208, 0.7) !important;
}

/* Button Active State */
form.relative.group button[type="submit"]:active {
  transform: translateY(-50%) scale(0.95) !important;
}

/* ========================================
   Background Gradients
   ======================================== */
.blog-list-gradient {
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.bg-premium-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ========================================
   Scrollbar Hide
   ======================================== */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ========================================
   Aspect Ratio Utilities
   ======================================== */
.aspect-\[16\/9\] {
  aspect-ratio: 16 / 9;
}

.aspect-\[16\/10\] {
  aspect-ratio: 16 / 10;
}

.aspect-square {
  aspect-ratio: 1 / 1;
}

/* ========================================
   Responsive Utilities
   ======================================== */
@media (min-width: 1024px) {
  .nav\:flex {
    display: flex !important;
  }
  
  .nav\:hidden {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .nav\:flex {
    display: none !important;
  }
  
  .nav\:hidden {
    display: block !important;
  }
}

/* ========================================
   Text Truncation
   ======================================== */
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* ========================================
   Pagination Styles
   ======================================== */
.page-numbers {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.page-numbers a,
.page-numbers span {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.page-numbers a {
  background: #f3f4f6;
  color: #374151;
}

.page-numbers a:hover {
  background: #10b981;
  color: white;
}

.page-numbers .current {
  background: #10b981;
  color: white;
}

/* ========================================
   Accessibility
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  header,
  footer,
  .mobile-menu,
  .nav-dropdown {
    display: none !important;
  }
  
  .isv_blog_contents {
    font-size: 12pt;
  }
}

/* ========================================
   Additional Blog Card Animations
   ======================================== */
.blog-card-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Backdrop Blur Utilities (Optimized for Performance)
   ======================================== */
.backdrop-blur-md {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.backdrop-blur-xl {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* ========================================
   Shadow Utilities
   ======================================== */
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-emerald-200 {
  --tw-shadow-color: rgb(167 243 208);
  --tw-shadow: var(--tw-shadow-colored);
}

/* ========================================
   Ring Utilities (Focus States)
   ======================================== */
.focus\:ring-4:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-emerald-500\/10:focus {
  --tw-ring-color: rgba(16, 185, 129, 0.1);
}

.focus\:border-emerald-500:focus {
  --tw-border-opacity: 1;
  border-color: rgb(16 185 129 / var(--tw-border-opacity));
}

.focus\:bg-white:focus {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}

/* ========================================
   Active State Utilities
   ======================================== */
.active\:scale-95:active {
  --tw-scale-x: 0.95;
  --tw-scale-y: 0.95;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* ========================================
   Group Focus Within Utilities
   ======================================== */
.group:focus-within .group-focus-within\:text-emerald-500 {
  --tw-text-opacity: 1;
  color: rgb(16 185 129 / var(--tw-text-opacity));
}

/* ========================================
   Hover State Utilities
   ======================================== */
.hover\:bg-emerald-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(4 120 87 / var(--tw-bg-opacity));
}

.hover\:text-emerald-600:hover {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity));
}

/* ========================================
   Shadow Utilities
   ======================================== */
.shadow-gray-200\/50 {
  box-shadow: 0 20px 25px -5px rgba(229, 231, 235, 0.5), 0 8px 10px -6px rgba(229, 231, 235, 0.5);
}

/* ========================================
   Tracking Utilities
   ======================================== */
.tracking-\[0\.15em\] {
  letter-spacing: 0.15em;
}

.tracking-\[0\.2em\] {
  letter-spacing: 0.2em;
}

/* ========================================
   Font Size Utilities
   ======================================== */
.text-\[10px\] {
  font-size: 10px;
}

.text-\[13px\] {
  font-size: 13px;
}

.text-\[15px\] {
  font-size: 15px;
}

/* ========================================
   Header Navigation Visibility Fix
   ======================================== */
header nav {
  align-items: center;
  gap: 1.75rem;
}

header nav a {
  display: inline-flex;
  white-space: nowrap;
}

/* Ensure header items are visible */
header .flex.items-center {
  min-height: 58px;
  min-width:58px;
}

/* Mobile menu button visibility */
.mobile-menu-toggle {
  cursor: pointer;
  padding: 0.5rem;
  touch-action: manipulation;
}

.mega-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 999;
}

.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* IMPORTANT FIX */
body {
  overflow-x: hidden;
}

/* ========================================
   AJAX Loading Indicator
   ======================================== */
#loading-indicator {
  z-index: 9999;
}

#loading-indicator .animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   Blog Archive Filter Styles
   ======================================== */
#posts-container {
  min-height: 400px;
  transition: opacity 0.2s ease-out;
}

.category-filter-btn {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  background: transparent;
  outline: none;
  will-change: transform, background-color, color;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.category-filter-btn:hover {
  transform: translateY(-2px) translateZ(0);
}

.category-filter-btn:active {
  transform: translateY(0) translateZ(0);
  transition: all 0.1s ease;
}

/* Active state - ensure immediate visual update */
.category-filter-btn.text-emerald-600.bg-emerald-50 {
  background-color: #ecfdf5 !important;
  color: #059669 !important;
}

.category-filter-btn.text-emerald-600.bg-emerald-50:hover {
  transform: translateY(-2px) translateZ(0);
}

.category-filter-btn.text-gray-500 {
  color: #6b7280;
}

/* ========================================
   Blog Card Enhanced Styles
   ======================================== */
article.group {
  position: relative;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  /* GPU acceleration for smooth scrolling */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ========================================
   Image Hover Animations
   ======================================== */
.group img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  /* GPU acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ========================================
   Featured Section Grid Animations
   ======================================== */
.grid.grid-cols-1.lg\:grid-cols-12 .group {
  position: relative;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  /* GPU acceleration */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ========================================
   Smooth Transition for AJAX Content
   ======================================== */
#posts-container {
  transition: opacity 0.3s ease-in-out;
}

#posts-container.loading {
  opacity: 0.3;
  pointer-events: none;
}

/* ========================================
   Responsive Grid Improvements
   ======================================== */
@media (max-width: 768px) {
  .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: 1fr;
    gap: 2.5rem 1.25rem;
  }
  
  article.group h3 {
    font-size: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid.grid-cols-1.md\:grid-cols-2.lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   Enhanced Scroll Animations for Blog Cards
   ======================================== */
.blog-card-stagger {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.blog-card-stagger.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ========================================
   Category Badge Styles
   ======================================== */
.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

/* ========================================
   Search Bar Enhanced Focus
   ======================================== */
form input[type="text"]:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

form input[type="text"] {
  transition: all 0.3s ease;
}

/* Search Submit Button Enhancement */
button[type="submit"],
.bg-emerald-600 {
  transition: all 0.3s ease;
}

button[type="submit"]:hover,
.bg-emerald-600:hover {
  background-color: #047857;
}

button[type="submit"]:active,
.bg-emerald-600:active {
  transform: scale(0.95);
}

/* ========================================
   Sticky Navigation Enhancement
   ======================================== */
nav.sticky {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========================================
   Utility Classes for Reference Design Match
   ======================================== */
.text-emerald-700 {
  color: #047857;
}

.bg-emerald-50 {
  background-color: #ecfdf5;
}

.text-emerald-600 {
  color: #059669;
}

.bg-emerald-600 {
  background-color: #059669;
}

.bg-emerald-700 {
  background-color: #047857;
}

.hover\:bg-emerald-700:hover {
  background-color: #047857;
}

.text-gray-400 {
  color: #9ca3af;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-900 {
  color: #111827;
}

.border-gray-50 {
  border-color: #f9fafb;
}

.border-gray-100 {
  border-color: #f3f4f6;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

/* ========================================
   NO RESULTS / EMPTY STATE STYLES
   ======================================== */
.empty-state {
  padding: 5rem 1.5rem;
  text-align: center;
}

.empty-state h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
}

.empty-state p {
  font-size: 1.125rem;
  color: #9ca3af;
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.75;
  font-weight: 500;
}

/* ========================================
   Load More Button
   ======================================== */
#load-more-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

#load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#load-more-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.3);
}

#load-more-btn:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.3);
}

/* ========================================
   Hidden Articles Animation
   ======================================== */
#hidden-articles {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#hidden-articles:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Loading Indicator Animation
   ======================================== */
#loading-indicator {
  z-index: 9999;
}

#loading-indicator .animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}



.about-wrap{
  text-wrap: auto;
}
.mobile-menu-support{
  display:flex !important;
}



@media(max-width:1023px){
 .mobile-menu-contact{
  display:flex !important;
 }
}
/* ========================================
   END OF CUSTOM STYLES
   ======================================== */