/* ===================================
   JANANI BHARAT CHARITABLE TRUST
   Modern & Professional Design
   =================================== */

/* ===================================
   CSS Variables & Design System
   =================================== */
:root {
  /* Color Palette - Warm & Dignified Theme */
  --color-primary: #D97706;
  /* Saffron/Orange - Cultural & Warm */
  --color-primary-dark: #B45309;
  --color-primary-light: #F59E0B;

  --color-secondary: #DC2626;
  /* Dignified Red/Maroon for Important Elements */
  --color-secondary-dark: #991B1B;
  --color-secondary-light: #F87171;

  --color-accent: #0891B2;
  /* Calm Teal for Balance */
  --color-accent-dark: #0E7490;
  --color-accent-light: #06B6D4;

  --color-success: #10b981;
  --color-error: #ef4444;

  /* Theme Colors - Light & Peaceful Background */
  --color-bg: #FAF6F1;
  /* Warm Cream/Ivory - Peaceful & Clean */
  --color-bg-alt: #F5EFE7;
  /* Slightly Darker Cream for Section Variation */
  --color-surface: #FFFFFF;
  /* White for Cards - Clean & Modern */
  --color-text: #374151;
  /* Dark Gray - Excellent Readability */
  --color-text-headings: #1F2937;
  /* Darker Charcoal for Strong Headings */
  --color-text-light: #6B7280;
  /* Medium Gray for Secondary Text */
  --color-border: #E5E7EB;
  /* Light Gray Border */

  /* Typography */
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows - Soft & Subtle for Light Background */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;

  /* Container Width */
  --container-width: 1200px;
  --container-padding: 1.5rem;
}

/* ===================================
   Reset & Base Styles
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text-headings);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary-dark);
}

/* Feature Links - For "Discover Our Mission" etc. */
.feature-link {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.5rem 0;
  transition: all var(--transition-base);
  position: relative;
}

.feature-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.feature-link:hover::after {
  width: 100%;
}

.feature-link:hover {
  color: var(--color-primary-dark);
  transform: translateX(5px);
}

/* ===================================
   Layout Components
   =================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--spacing-2xl) 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

/* Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.2s ease;
  border-bottom: 1px solid #F3F4F6;
}

.header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #FFFFFF;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  min-height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  height: 140px;
  width: auto;
  transition: opacity 0.2s ease;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 1.05rem;
  color: #4B5563;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary);
  background: #F9FAFB;
}

.nav-link.active {
  color: var(--color-primary);
  background: #FEF3C7;
  font-weight: 600;
}

.nav-link.active::after {
  display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #D97706 0%, #f59e0b 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.menu-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.menu-toggle:active {
  transform: translateY(0) scale(0.95);
}

.menu-icon {
  width: 24px;
  height: 3px;
  background-color: #FFFFFF;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 3px;
  background-color: #FFFFFF;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

/* Hamburger to X Animation - Active State */
.menu-toggle[aria-expanded="true"] .menu-icon {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
  }

  .logo img {
    height: 70px;
  }

  .menu-toggle {
    display: flex;
  }

  /* Simple Mobile Navigation */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 10000;
    overflow-y: auto;
  }

  .nav.active {
    right: 0;
  }

  /* Backdrop */
  .nav::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: -1;
  }

  .nav.active::before {
    opacity: 1;
    visibility: visible;
    left: -100vw;
  }

  .nav-list {
    flex-direction: column;
    padding: 5rem 0 2rem;
    gap: 0;
  }

  .nav-link {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    border: none;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    text-align: left;
    display: block;
    background: transparent;
  }

  .nav-link::before {
    display: none;
  }

  .nav-link:hover {
    background: #f5f5f5;
    border-left-color: var(--color-primary);
    padding-left: 2rem;
  }

  .nav-link.active {
    background: #FFF5F0;
    color: var(--color-primary);
    font-weight: 600;
    border-left-color: var(--color-primary);
  }
}

/* Tablet Navigation */
@media (max-width: 1024px) {
  .logo img {
    height: 100px;
  }

  .header-content {
    padding: 0.5rem 0;
  }

  .nav-link {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .logo img {
    height: 60px;
  }

  .header-content {
    min-height: 70px;
  }

  .nav {
    top: 70px;
  }
}

/* ===================================
   Hero Slider Section - Full Width Background
   =================================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 500px;
  max-height: 500px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

/* Elegant gradient overlay */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.slide .container {
  position: relative;
  z-index: 2;
}

.slide-content {
  max-width: 650px;
  text-align: left;
  padding: 0;
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-slider .hero-title {
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.8);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.hero-slider .hero-title .accent {
  color: #FBD38D;
  display: inline-block;
}

.hero-slider .hero-subtitle {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0;
  line-height: 1.7;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.7);
  font-weight: 400;
}

/* Regular Hero Section (Non-Slider) */
.hero {
  background: linear-gradient(135deg, #FFF8F0 0%, #FEF3E2 50%, #FFF0DB 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero .hero-title {
  color: var(--color-text-headings);
  text-shadow: none;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero .hero-title .accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .hero-subtitle {
  color: var(--color-text);
  text-shadow: none;
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Navigation Arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.slider-btn:hover {
  background: rgba(217, 119, 6, 0.9);
  border-color: #D97706;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-btn-prev {
  left: 2rem;
}

.slider-btn-next {
  right: 2rem;
}

/* Dots Navigation */
.slider-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.15);
}

.dot.active {
  background: #FBD38D;
  width: 20px;
  height: 6px;
  border-radius: 3px;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero .hero-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .hero .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-slider {
    height: 400px;
    max-height: 400px;
  }

  .slide-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.75) 100%);
  }

  .slide-content {
    max-width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .hero-slider .hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 0.75rem;
  }

  .hero-slider .hero-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
  }

  /* Ensure title is always visible */
  .hero-slider .hero-title {
    display: block !important;
    color: #ffffff !important;
  }

  .hero-slider .hero-title .accent {
    display: inline !important;
    color: #FBD38D !important;
  }

  /* Reduce navigation arrow size on mobile instead of hiding */
  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .slider-btn-prev {
    left: 0.5rem;
  }

  .slider-btn-next {
    right: 0.5rem;
  }

  .slider-btn svg {
    width: 18px;
    height: 18px;
  }

  .slider-dots {
    bottom: 1rem;
    padding: 0.3rem 0.6rem;
    gap: 0.4rem;
  }

  .dot {
    width: 5px;
    height: 5px;
  }

  .dot.active {
    width: 14px;
    height: 5px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1.5rem 0 1rem;
  }

  .hero .hero-title {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .hero .hero-subtitle {
    font-size: 0.875rem;
  }

  .hero-slider {
    height: 350px;
    max-height: 350px;
  }

  .slide-overlay {
    background: rgba(0, 0, 0, 0.7);
  }

  .slide-content {
    padding: 0.75rem;
  }

  .hero-slider .hero-title {
    font-size: clamp(1.25rem, 7vw, 1.75rem);
    margin-bottom: 0.5rem;
  }

  .hero-slider .hero-subtitle {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  /* Hide navigation completely on small mobile */
  .slider-btn {
    display: none;
  }

  .slider-dots {
    bottom: 0.75rem;
    padding: 0.25rem 0.5rem;
    gap: 0.35rem;
  }

  .dot {
    width: 4px;
    height: 4px;
  }

  .dot.active {
    width: 12px;
    height: 4px;
  }
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-light) 100%);
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--color-surface);
  color: var(--color-secondary-dark);
  border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  color: white;
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
  color: white;
}

/* ===================================
   Cards
   =================================== */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(217, 119, 6, 0.15);
  border-color: var(--color-primary);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  display: block;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-headings);
}

.card-text {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Service Cards */
.service-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  transition: height var(--transition-slow);
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary-light);
}

.service-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-headings);
}

.service-description {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

/* Info Boxes */
.info-box {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

.info-box:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.info-box-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-headings);
}

.info-box-content {
  color: var(--color-text-light);
}

.info-box-content a {
  color: var(--color-primary);
  font-weight: 500;
}

/* ===================================
   Tables
   =================================== */
.table-responsive {
  overflow-x: auto;
  margin: var(--spacing-lg) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

thead {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-headings);
}

tbody tr {
  transition: background-color var(--transition-base);
}

tbody tr:hover {
  background-color: #FEF3E2;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ===================================
   Forms
   =================================== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-headings);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: all var(--transition-base);
  background-color: var(--color-surface);
  color: var(--color-text);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
  opacity: 0.7;
}

/* ===================================
   Gallery
   =================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.gallery-item {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-border) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.gallery-placeholder {
  font-size: 4rem;
  opacity: 0.5;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background-color: #F5EFE7;
  color: var(--color-text);
  padding: var(--spacing-2xl) 0 var(--spacing-md);
  border-top: 2px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-col h4 {
  color: var(--color-text-headings);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

.footer-col p {
  color: var(--color-text);
  line-height: 1.7;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--color-text-light);
  transition: color var(--transition-base);
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-light);
}

/* ===================================
   Utilities
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.mt-1 {
  margin-top: var(--spacing-xs);
}

.mt-2 {
  margin-top: var(--spacing-sm);
}

.mt-3 {
  margin-top: var(--spacing-md);
}

.mt-4 {
  margin-top: var(--spacing-lg);
}

.mt-5 {
  margin-top: var(--spacing-xl);
}

.mb-1 {
  margin-bottom: var(--spacing-xs);
}

.mb-2 {
  margin-bottom: var(--spacing-sm);
}

.mb-3 {
  margin-bottom: var(--spacing-md);
}

.mb-4 {
  margin-bottom: var(--spacing-lg);
}

.mb-5 {
  margin-bottom: var(--spacing-xl);
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 1024px) {
  :root {
    --container-padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --spacing-2xl: 2.5rem;
    --spacing-xl: 2rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section {
    padding: 2rem 0;
  }

  /* Welcome Section Mobile */
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Pillar cards mobile */
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Two column sections on mobile */
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Image order fix */
  div[style*="grid-template-columns"]>div:first-child {
    order: 2;
  }

  div[style*="grid-template-columns"]>div:last-child {
    order: 1;
  }

  /* Better image sizing on mobile */
  img {
    max-width: 100%;
    height: auto !important;
  }

  /* Font size adjustments */
  h2 {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }

  h3 {
    font-size: clamp(1.25rem, 4vw, 1.75rem) !important;
  }

  h4 {
    font-size: clamp(1.1rem, 3vw, 1.5rem) !important;
  }

  p {
    font-size: 0.95rem !important;
  }

  /* Card padding mobile */
  .card {
    padding: 1.5rem;
  }

  /* Banner styling mobile */
  div[style*="padding: 4rem 3rem"],
  div[style*="padding: 3.5rem 3rem"],
  div[style*="padding: 3rem 2rem"] {
    padding: 2rem 1.5rem !important;
  }

  div[style*="padding: 2.5rem 3rem"],
  div[style*="padding: 2.5rem 2rem"] {
    padding: 1.75rem 1.25rem !important;
  }

  /* Fix flex layouts - Content/heading before image on mobile */
  div[style*="display: flex"][style*="flex-wrap: wrap"] {
    flex-direction: column-reverse !important;
    gap: 2rem !important;
  }

  /* For sections where we want text first, image second */
  div[style*="display: flex"][style*="flex-wrap: wrap"]>div[style*="min-width: 300px"]:last-child {
    order: -1;
  }

  /* Section padding adjustments */
  section[style*="padding: 6rem 0"] {
    padding: 3rem 0 !important;
  }

  section[style*="padding: 4rem 0"] {
    padding: 2.5rem 0 !important;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
    --container-padding: 0.875rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Improve button touch targets for mobile */
  .btn {
    min-height: 48px;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Better card padding on small screens */
  .card {
    padding: 1.25rem;
  }

  /* Improve form inputs for mobile */
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px;
    /* Prevents zoom on iOS */
    min-height: 48px;
  }

  /* Better table display on mobile */
  table {
    font-size: 0.8rem;
  }

  th,
  td {
    padding: 0.625rem 0.4rem;
  }

  /* Better image responsiveness */
  img {
    max-width: 100%;
    height: auto !important;
  }

  /* Improve section padding on very small screens */
  .section {
    padding: 1.5rem 0;
  }

  /* Better gallery grid on mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item {
    min-height: 200px;
  }

  /* Small text adjustments */
  h2 {
    font-size: clamp(1.25rem, 5vw, 1.75rem) !important;
  }

  h3 {
    font-size: clamp(1.1rem, 4vw, 1.5rem) !important;
  }

  p {
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
  }

  /* Compact banners */
  div[style*="padding: 2rem 1.5rem"],
  div[style*="padding: 1.75rem"] {
    padding: 1.5rem 1rem !important;
  }

  /* Reduce large font sizes */
  div[style*="font-size: 3.5rem"],
  div[style*="font-size: 2.5rem"] {
    font-size: 1.75rem !important;
  }

  div[style*="font-size: 2rem"],
  div[style*="font-size: 1.75rem"] {
    font-size: 1.35rem !important;
  }

  div[style*="font-size: 1.5rem"],
  div[style*="font-size: 1.35rem"] {
    font-size: 1.1rem !important;
  }
}

/* ===================================
   Hero Actions Responsive Layout
   =================================== */
.hero-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ===================================
   Additional Touch Target Improvements
   =================================== */
@media (max-width: 768px) {

  /* Minimum touch target size of 44x44px */
  .nav-link,
  .menu-toggle,
  .slider-btn,
  .dot,
  button,
  a.btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Exception for nav-links to allow full width */
  .nav-link {
    width: 100%;
  }

  /* Better spacing for clickable elements */
  .footer-links a {
    padding: 0.75rem 0;
    display: block;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Feature links mobile optimization */
  .feature-link {
    font-size: 1rem;
    padding: 0.75rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* All inline links should have adequate spacing */
  a:not(.btn):not(.nav-link):not(.logo) {
    padding: 0.25rem 0;
    display: inline-block;
  }

  /* Footer contact links */
  .footer-contact-item a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
  }
}

/* ===================================
   Enhanced Table Responsiveness
   =================================== */
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: var(--spacing-md) -1rem;
    padding: 0 1rem;
  }

  table {
    min-width: 600px;
    display: block;
    overflow-x: auto;
  }

  /* Improve table readability on mobile */
  thead {
    position: sticky;
    top: 0;
    z-index: 10;
  }
}

/* ===================================
   Mobile-Optimized Breakpoints
   =================================== */
/* Large mobile phones (landscape) */
@media (max-width: 640px) and (orientation: landscape) {
  .hero-slider {
    height: 350px;
    max-height: 350px;
  }

  .slide-content {
    padding: 1rem 0;
  }

  .hero-slider .hero-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .hero-slider .hero-subtitle {
    font-size: 0.95rem;
  }
}

/* Better grid responsiveness for tablets */
@media (min-width: 641px) and (max-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   Performance Optimizations for Mobile
   =================================== */
@media (max-width: 768px) {

  /* Reduce animations on mobile for better performance */
  * {
    animation-duration: 0.5s !important;
    transition-duration: 0.2s !important;
  }

  /* Optimize shadows for mobile */
  .card:hover,
  .service-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }

  .container {
    overflow-x: hidden;
  }
}

/* ===================================
   Image Optimization for All Devices
   =================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent layout shift with aspect ratios */
.card img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lazy loading optimization */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* ===================================
   Text Readability Improvements
   =================================== */
@media (max-width: 768px) {

  /* Prevent text from being too wide */
  p,
  li {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Better line height for readability on mobile */
  body {
    line-height: 1.7;
  }

  /* Improve heading spacing on mobile */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* ===================================
   Improved Mobile Navigation
   =================================== */
@media (max-width: 768px) {

  /* Better mobile menu overlay */
  .nav.active {
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Improve menu item spacing */
  .nav-list {
    width: 100%;
  }

  .nav-link {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  /* Active link indicator for mobile */
  .nav-link.active {
    background-color: rgba(217, 119, 6, 0.1);
    border-left: 4px solid var(--color-primary);
  }
}

/* ===================================
   Content Spacing Mobile Fixes
   =================================== */
@media (max-width: 480px) {

  /* Better content spacing */
  .section-header {
    margin-bottom: var(--spacing-lg);
  }

  .section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Improve info boxes on small screens */
  .info-box {
    padding: var(--spacing-md);
  }

  /* Better service card layout */
  .service-card {
    padding: var(--spacing-lg);
  }

  /* Enhanced link spacing for very small screens */
  .feature-link {
    font-size: 0.95rem;
    padding: 1rem 0;
  }

  /* Buttons full width on small screens */
  .btn {
    width: 100%;
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Better link hover states for touch devices */
  a:active {
    opacity: 0.7;
  }

  .footer-links a {
    font-size: 0.95rem;
    padding: 0.875rem 0;
  }
}

/* ===================================
   Additional Footer Mobile Enhancements
   =================================== */
@media (max-width: 768px) {

  /* Ensure footer content is readable */
  .modern-footer {
    font-size: 0.95rem;
  }

  .footer-content {
    padding: 3rem 1rem 1.5rem;
  }

  .footer-logo img {
    height: 120px;
  }

  .footer-contact-item,
  .footer-location {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .footer-bottom {
    padding: 1.5rem 1rem;
    font-size: 0.875rem;
  }

  .footer-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.875rem;
  }
}

@media (max-width: 480px) {
  .footer-logo img {
    height: 100px;
  }

  .footer-logo-text {
    font-size: 1.25rem;
  }

  .footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .footer-badges {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===================================
   Print Styles
   =================================== */
@media print {

  .header,
  .menu-toggle,
  .slider-btn,
  .slider-dots,
  .hero-actions,
  .footer-badges {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .section {
    page-break-inside: avoid;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}

/* ===================================
   Accessibility Improvements
   =================================== */
/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 9999;
}

.skip-to-main:focus {
  top: 0;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn {
    border: 2px solid currentColor;
  }

  .card {
    border: 2px solid var(--color-text);
  }
}

/* ===================================
   Comprehensive Link Responsiveness
   =================================== */

/* Tablet optimizations (641px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .feature-link {
    font-size: 1rem;
  }

  .footer-links a {
    font-size: 0.95rem;
    padding: 0.6rem 0;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Mobile landscape optimizations */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .hero-actions .btn {
    width: auto;
    min-width: 150px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

  /* Remove hover effects on touch devices */
  .feature-link:hover {
    transform: none;
  }

  /* Use active state instead for feedback */
  .feature-link:active {
    transform: scale(0.98);
    opacity: 0.8;
  }

  a:not(.btn):hover {
    transform: none;
  }

  a:not(.btn):active {
    opacity: 0.7;
  }

  /* Better button feedback on touch */
  .btn:active {
    transform: scale(0.98);
  }

  /* Better card hover on touch devices */
  .card:hover {
    transform: none;
  }
}

/* Small mobile phones (max 375px) */
@media (max-width: 375px) {
  .feature-link {
    font-size: 0.9rem;
  }

  .footer-links a {
    font-size: 0.875rem;
  }

  .btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Ensure all links are easily tappable */
  a {
    -webkit-tap-highlight-color: rgba(217, 119, 6, 0.3);
  }
}

/* Large screens optimization */
@media (min-width: 1440px) {
  .feature-link {
    font-size: 1.125rem;
  }

  .footer-links a {
    font-size: 1rem;
  }
}

/* Safari iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  a {
    -webkit-tap-highlight-color: rgba(217, 119, 6, 0.3);
  }

  /* Prevent text selection on link tap */
  .btn,
  .nav-link {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
  }
}

/* ===================================
   ADVANCED ANIMATIONS
   =================================== */

/* Fade In Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale Animations */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleUp {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

/* Slide Animations */
@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Bounce Animation */
@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Pulse Animation */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

/* Gradient Animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Float Animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Animation Classes */
.animate-fadeIn {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInDown {
  animation: fadeInDown 0.8s ease-out forwards;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
  animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scaleIn {
  animation: scaleIn 0.6s ease-out forwards;
}

.animate-bounce {
  animation: bounce 1s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Delay Classes */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

/* Enhanced Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(217, 119, 6, 0.5);
}

/* Page Load Animation */
body {
  animation: fadeIn 0.5s ease-in;
}

/* Section animations on scroll are handled by Intersection Observer in main.js */

/* ===================================
   Enhanced Hover Animations
   =================================== */

/* Image Hover Effects */
img {
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}

img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Gallery Images Hover */
.masonry-item img:hover,
.card img:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Service Card Row Hover */
.service-row-card {
  transition: all 0.4s ease;
}

.service-row-card:hover {
  transform: translateX(10px);
  box-shadow: 0 15px 40px rgba(217, 119, 6, 0.2);
}

.service-row-card.service-row-reverse:hover {
  transform: translateX(-10px);
}

/* Service Row Image Hover */
.service-row-image img {
  transition: transform 0.5s ease, filter 0.3s ease;
}

.service-row-image img:hover {
  transform: scale(1.1);
  filter: brightness(1.15) saturate(1.2);
}

/* Member/Trustee Card Hover */
.trustee-modern-card,
.leadership-row-card {
  transition: all 0.4s ease;
}

.trustee-modern-card:hover,
.leadership-row-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(217, 119, 6, 0.25);
}

.trustee-image-wrapper img,
.leadership-image-section img {
  transition: transform 0.6s ease, filter 0.3s ease;
}

.trustee-modern-card:hover .trustee-image-wrapper img,
.leadership-row-card:hover .leadership-image-section img {
  transform: scale(1.1) rotate(2deg);
  filter: brightness(1.1);
}

/* Button Hover Enhancement */
.btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(217, 119, 6, 0.4);
}

/* Link Hover Effects */
a {
  transition: color 0.3s ease, transform 0.2s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
}

/* Footer Links Hover */
.footer-links a {
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Objective Card Hover */
.objective-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.objective-card:hover {
  transform: translateY(-12px) rotate(-1deg);
  box-shadow: 0 25px 50px rgba(217, 119, 6, 0.2);
}

/* Pillar Card Hover */
.pillar-modern {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-modern:hover {
  transform: translateY(-15px) scale(1.05);
}

/* Fade-in elements scale on hover */
.fade-in:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

/* Hero Slider Controls Hover */
.slider-btn:hover {
  background: rgba(217, 119, 6, 0.95);
  transform: scale(1.2);
}

.dot:hover {
  transform: scale(1.3);
}

/* Gallery Item Hover Effect */
.masonry-item {
  transition: all 0.3s ease;
  overflow: hidden;
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* Icon Hover Rotation */
.card-icon:hover,
.objective-number:hover,
.pillar-badge:hover {
  transform: rotate(360deg) scale(1.2);
  transition: transform 0.6s ease;
}

/* Text Highlight on Hover */
.section-title:hover,
.hero-title:hover {
  color: var(--color-primary);
  transition: color 0.3s ease;
  cursor: default;
}

/* Social Media Icons Hover */
.footer-social a:hover {
  transform: translateY(-8px) rotate(360deg) scale(1.2);
}


/* ===================================
   "What We Work On" 5 Pillar Cards Animation
   =================================== */

.pillar-card {
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.pillar-card:hover {
  transform: translateY(-20px) scale(1.05) rotateY(5deg);
  box-shadow: 0 25px 60px rgba(217, 119, 6, 0.4) !important;
  background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 100%) !important;
  border: 2px solid #D97706;
}

/* Animate the number badge on hover */
.pillar-card:hover>div:nth-child(2) {
  transform: rotate(360deg) scale(1.15) !important;
  box-shadow: 0 12px 35px rgba(217, 119, 6, 0.6) !important;
  animation: pulse-badge 1.5s ease-in-out infinite;
}

/* Pulse animation for badge */
@keyframes pulse-badge {

  0%,
  100% {
    transform: rotate(360deg) scale(1.15);
  }

  50% {
    transform: rotate(360deg) scale(1.25);
  }
}

/* Glow effect for decorative circle */
.pillar-card:hover>div:nth-child(1) {
  opacity: 0.3 !important;
  animation: glow-circle 2s ease-in-out infinite;
}

@keyframes glow-circle {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Smooth text color transition */
.pillar-card:hover h4 {
  color: #D97706 !important;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.pillar-card:hover p {
  color: #1F2937 !important;
  transform: translateY(-3px);
  transition: all 0.3s ease;
}

/* Add stagger effect - each card animates slightly after the previous */
.pillar-card:nth-child(1) {
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.pillar-card:nth-child(2) {
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.pillar-card:nth-child(3) {
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

/* For pillars in second row */
.pillar-card:nth-of-type(4) {
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.pillar-card:nth-of-type(5) {
  animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ripple effect on click */
.pillar-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.pillar-card:active::after {
  width: 300px;
  height: 300px;
}

/* ===================================
   COMPREHENSIVE MOBILE RESPONSIVE OVERRIDES
   =================================== */

/* Tablet Responsive (641px - 768px) */
@media (max-width: 768px) {

  /* Fix Navigation Menu Alignment */
  .header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .logo {
    flex-shrink: 0;
  }

  .menu-toggle {
    margin-left: auto;
  }

  /* Fix all inline grid layouts */
  div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
  }

  /* Fix "A Purpose-Driven Charitable Trust" section */
  div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 3rem"] {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 2rem !important;
  }

  /* Fix image in that section */
  div[style*="border-radius: 20px"][style*="height: 400px"] {
    height: 300px !important;
  }

  img[style*="height: 400px"] {
    height: 300px !important;
  }

  /* Fix "What We Work On" pillar section */
  div[style*="display: grid"][style*="grid-template-columns: repeat(3, 1fr)"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  div[style*="display: grid"][style*="grid-template-columns: repeat(2, 1fr)"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Fix pillar card styling on mobile */
  .pillar-card {
    margin: 0 !important;
  }

  /* Fix member/trustee cards */
  div[style*="max-width: 900px"] {
    max-width: 100% !important;
  }

  /* Fix large images */
  div[style*="height: 350px"],
  div[style*="height: 400px"] {
    height: 250px !important;
  }

  /* Fix circular images */
  div[style*="width: 180px; height: 180px"] {
    width: 150px !important;
    height: 150px !important;
  }

  /* Fix icon sizes */
  div[style*="width: 100px; height: 100px"] {
    width: 80px !important;
    height: 80px !important;
  }

  div[style*="width: 50px; height: 50px"] {
    width: 45px !important;
    height: 45px !important;
  }

  /* Reduce excessive margins */
  div[style*="margin-bottom: 4rem"],
  div[style*="margin-bottom: 3rem"] {
    margin-bottom: 2rem !important;
  }

  /* Fix text alignment in sections */
  div[style*="text-align: center"] h3,
  div[style*="text-align: center"] p {
    text-align: center !important;
  }
}

/* Mobile Responsive (max 480px) */
@media (max-width: 480px) {

  /* Fix Navigation Menu */
  .header-content {
    padding: 0.75rem 0 !important;
  }

  .logo img {
    max-height: 60px !important;
  }

  /* Override all inline padding */
  div[style*="padding: 4rem"],
  div[style*="padding: 3.5rem"],
  div[style*="padding: 3rem"] {
    padding: 1.5rem 1rem !important;
  }

  div[style*="padding: 2.5rem"],
  div[style*="padding: 2rem"] {
    padding: 1.25rem 1rem !important;
  }

  /* Fix "A Purpose-Driven Charitable Trust" section */
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 1.5rem !important;
  }

  /* Image in purpose section */
  div[style*="height: 400px"] {
    height: 250px !important;
  }

  img[style*="height: 400px"] {
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Fix "What We Work On" section header */
  div[style*="text-align: center; margin-bottom: 3.5rem"] {
    margin-bottom: 2rem !important;
  }

  /* Fix pillar cards grid */
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Reset pillar card max-width for second row */
  div[style*="max-width: 800px"] {
    max-width: 100% !important;
  }

  /* Override all inline font sizes for headings */
  h1[style*="font-size"],
  h2[style*="font-size"],
  h3[style*="font-size"],
  div[style*="font-size: 3"] {
    font-size: 1.5rem !important;
  }

  div[style*="font-size: 2"],
  div[style*="font-size: 1.75rem"],
  div[style*="font-size: 1.6rem"] {
    font-size: 1.25rem !important;
  }

  div[style*="font-size: 1.5rem"],
  div[style*="font-size: 1.35rem"],
  div[style*="font-size: 1.25rem"] {
    font-size: 1.1rem !important;
  }

  p[style*="font-size: 1.125rem"],
  p[style*="font-size: 1.05rem"] {
    font-size: 0.9rem !important;
  }

  /* Fix large decorative circles */
  div[style*="width: 300px; height: 300px"],
  div[style*="width: 400px; height: 400px"],
  div[style*="width: 500px; height: 500px"] {
    width: 150px !important;
    height: 150px !important;
  }

  /* Fix member cards */
  div[style*="height: 350px"] {
    height: 200px !important;
  }

  /* Fix circular images */
  div[style*="width: 180px; height: 180px"] {
    width: 120px !important;
    height: 120px !important;
  }

  div[style*="width: 200px; height: 200px"] {
    width: 140px !important;
    height: 140px !important;
  }

  /* Fix icon containers */
  div[style*="width: 100px; height: 100px"] {
    width: 70px !important;
    height: 70px !important;
  }

  div[style*="width: 50px; height: 50px"] {
    width: 40px !important;
    height: 40px !important;
  }

  /* Fix number badges in icons */
  span[style*="font-size: 3rem"] {
    font-size: 2rem !important;
  }

  span[style*="font-size: 1.5rem"] {
    font-size: 1.1rem !important;
  }

  /* Compact margins */
  div[style*="margin-bottom: 4rem"],
  div[style*="margin-bottom: 3.5rem"],
  div[style*="margin-bottom: 3rem"] {
    margin-bottom: 1.5rem !important;
  }

  div[style*="margin-bottom: 2.5rem"],
  div[style*="margin-bottom: 2rem"] {
    margin-bottom: 1.25rem !important;
  }

  div[style*="margin-bottom: 1.5rem"] {
    margin-bottom: 1rem !important;
  }

  /* Gap reductions */
  div[style*="gap: 3rem"] {
    gap: 1.5rem !important;
  }

  div[style*="gap: 2.5rem"],
  div[style*="gap: 2rem"] {
    gap: 1.25rem !important;
  }

  /* Fix max-width containers */
  div[style*="max-width: 1200px"],
  div[style*="max-width: 900px"],
  div[style*="max-width: 800px"],
  div[style*="max-width: 700px"] {
    max-width: 100% !important;
  }

  /* Fix border radius for smaller screens */
  div[style*="border-radius: 24px"],
  div[style*="border-radius: 20px"] {
    border-radius: 12px !important;
  }

  /* Compact footer */
  .footer-grid {
    gap: 1.5rem !important;
  }

  .footer-brand img {
    width: 150px !important;
    height: 150px !important;
  }

  /* Fix emoji sizes */
  span[style*="font-size: 3.5rem"] {
    font-size: 2rem !important;
  }

  /* Additional responsive fixes for specific sections */

  /* Welcome banner mobile */
  div[style*="background: linear-gradient(135deg, #D97706"] h2 {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }

  div[style*="background: linear-gradient(135deg, #D97706"] p {
    font-size: 1rem !important;
  }

  /* Purpose section text mobile */
  div[style*="color: #D97706; font-size: 2.25rem"] {
    font-size: 1.35rem !important;
  }

  /* Pillar section title mobile */
  div[style*="color: #1F2937; font-size: 2.75rem"] {
    font-size: 1.5rem !important;
  }

  /* Service icon box mobile */
  div[style*="flex-shrink: 0; width: 50px"] {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.25rem !important;
  }
}

/* ===================================
   MEDIUM MOBILE (max 640px)
   =================================== */
@media (max-width: 640px) {

  /* Ensure menu is properly aligned */
  .nav {
    width: 100%;
  }

  .nav-list {
    width: 100%;
  }

  /* Grid to single column */
  div[style*="display: grid"] {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Fix welcome section */
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column-reverse !important;
  }

  /* Pillar cards single column */
  .pillar-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ===================================
   DISABLE COMPLEX ANIMATIONS ON MOBILE
   =================================== */
@media (max-width: 768px) {

  /* Simplify pillar card hover on mobile */
  .pillar-card:hover {
    transform: translateY(-5px) scale(1.02) !important;
  }

  /* Disable complex 3D transforms on mobile */
  .pillar-card:hover>div:nth-child(2) {
    transform: scale(1.05) !important;
    animation: none !important;
  }

  /* Simplify card hovers */
  .card:hover,
  .service-card:hover {
    transform: translateY(-3px) !important;
  }

  /* Disable image zoom on mobile for performance */
  img:hover {
    transform: none !important;
  }

  /* Prevent horizontal scroll */
  body,
  html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .container {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
}

/* ===================================
   ENHANCED HERO SECTION FOR MOBILE
   Specific improvements for hero layout on small screens
   =================================== */

/* Very Small Mobile - Enhanced Hero Section */
@media (max-width: 375px) {
  .hero-slider {
    height: 300px;
    max-height: 300px;
  }

  .hero-slider .hero-title {
    font-size: clamp(1.1rem, 6vw, 1.5rem) !important;
    margin-bottom: 0.5rem;
  }

  .hero-slider .hero-subtitle {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }

  .slide-content {
    padding: 0.5rem;
  }

  /* Ensure logo doesn't take too much space */
  .logo img {
    height: 50px !important;
  }

  .header-content {
    min-height: 60px;
  }

  .nav {
    top: 60px;
  }

  /* Smaller menu toggle on very small screens */
  .menu-toggle {
    width: 42px;
    height: 42px;
    padding: 10px;
  }

  .menu-icon {
    width: 20px;
    height: 2px;
  }

  .menu-icon::before,
  .menu-icon::after {
    width: 20px;
    height: 2px;
  }

  .menu-icon::before {
    top: -6px;
  }

  .menu-icon::after {
    top: 6px;
  }
}

/* Extra Small Mobile - 320px screens */
@media (max-width: 320px) {
  .hero-slider {
    height: 260px;
    max-height: 260px;
  }

  .hero-slider .hero-title {
    font-size: 1rem !important;
  }

  .hero-slider .hero-subtitle {
    font-size: 0.7rem !important;
  }

  .logo img {
    height: 45px !important;
  }

  .header-content {
    min-height: 55px;
    padding: 0.25rem 0 !important;
  }

  .nav {
    top: 55px;
  }

  .slider-dots {
    bottom: 0.5rem;
    padding: 0.2rem 0.4rem;
  }

  .dot {
    width: 4px;
    height: 4px;
  }

  .dot.active {
    width: 10px;
    height: 4px;
  }
}

/* Hero Section Text Overflow Prevention */
@media (max-width: 768px) {
  .slide-content {
    max-width: 100% !important;
    padding: 1rem !important;
    text-align: center;
  }

  .hero-slider .hero-title .accent {
    display: inline !important;
  }

  /* Ensure hero subtitle inline styles don't override */
  .hero-slider .hero-subtitle[style] {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0.75rem !important;
    max-width: 100% !important;
    display: block !important;
    color: rgba(255, 255, 255, 0.95) !important;
  }

  /* Ensure hero title is always visible */
  .hero-slider .hero-title[style] {
    display: block !important;
    color: #ffffff !important;
  }
}

/* Prevent Any Horizontal Scroll - Global Fix */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

@media (max-width: 768px) {

  /* Ensure no element causes horizontal scroll */
  section,
  main,
  header,
  footer,
  div,
  article,
  aside {
    max-width: 100vw;
  }

  /* Fix any inline width that might cause overflow */
  [style*="width: 100%"],
  [style*="max-width"] {
    max-width: 100% !important;
  }
}

/* ===================================
   MOBILE RESPONSIVE FIXES - COMPREHENSIVE
   Fixes inline scrolling and content truncation on mobile
   =================================== */

/* Mobile Grid Layout Fixes - Stack columns on mobile */
@media (max-width: 768px) {

  /* Force all inline grid layouts to single column */
  [style*="display: grid"][style*="grid-template-columns: 1fr 1fr"],
  [style*="display: grid"][style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="display: grid"][style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* Reduce excessive padding on mobile */
  [style*="padding: 4rem 3rem"],
  [style*="padding: 3.5rem 3rem"],
  [style*="padding: 3rem 2rem"] {
    padding: 2rem 1.5rem !important;
  }

  [style*="padding: 2.5rem 2rem"] {
    padding: 1.5rem 1rem !important;
  }

  /* Fix margin-bottom spacing */
  [style*="margin-bottom: 4rem"] {
    margin-bottom: 2rem !important;
  }

  [style*="margin-bottom: 3rem"] {
    margin-bottom: 1.5rem !important;
  }

  /* Ensure images don't have fixed heights on mobile */
  [style*="height: 400px"] {
    height: auto !important;
    min-height: 250px !important;
  }

  [style*="height: 350px"] {
    height: auto !important;
    min-height: 200px !important;
  }

  /* Pillar cards - ensure they stack properly */
  .pillar-card {
    padding: 1.5rem 1rem !important;
    margin-bottom: 1rem !important;
  }

  /* Service features lists */
  .service-features {
    padding: 0 !important;
  }

  .service-features li {
    padding: 0.75rem 0 !important;
    font-size: 0.95rem !important;
  }

  /* Fix absolute positioned decorative elements */
  [style*="position: absolute"][style*="width: 300px"],
  [style*="position: absolute"][style*="width: 400px"],
  [style*="position: absolute"][style*="width: 500px"] {
    display: none !important;
  }

  /* Ensure max-width containers don't exceed viewport */
  [style*="max-width: 1200px"],
  [style*="max-width: 900px"],
  [style*="max-width: 800px"],
  [style*="max-width: 700px"] {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Fix border radius on mobile */
  [style*="border-radius: 24px"] {
    border-radius: 16px !important;
  }

  [style*="border-radius: 20px"] {
    border-radius: 12px !important;
  }

  /* Remove any max-height that might truncate content */
  section,
  div[class*="section"],
  div[class*="container"] {
    max-height: none !important;
    overflow: visible !important;
  }

  /* Ensure text is always readable */
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  span,
  li,
  a {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  /* Fix any width issues */
  * {
    min-width: 0 !important;
  }

  /* Fix footer on mobile */
  .footer-content,
  .footer-main {
    padding: 2rem 1rem !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Ensure container padding is appropriate */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Fix width constraints */
  [style*="width: 45%"],
  [style*="width: 50%"],
  [style*="width: 55%"] {
    width: 100% !important;
  }

  /* Fix flex basis */
  [style*="flex: 1"] {
    flex: 1 1 100% !important;
  }

  /* Fix gap spacing */
  [style*="gap: 3rem"] {
    gap: 1.5rem !important;
  }

  [style*="gap: 2.5rem"] {
    gap: 1.25rem !important;
  }
}

/* Small Mobile Devices - Additional fixes */
@media (max-width: 480px) {

  /* Further reduce padding */
  [style*="padding: 4rem"],
  [style*="padding: 3rem"],
  [style*="padding: 2.5rem"],
  [style*="padding: 2rem"] {
    padding: 1.25rem 1rem !important;
  }

  /* Reduce font sizes for better fit */
  [style*="font-size: 3.5rem"] {
    font-size: 2rem !important;
  }

  [style*="font-size: 2.75rem"],
  [style*="font-size: 2.5rem"] {
    font-size: 1.75rem !important;
  }

  [style*="font-size: 2.25rem"],
  [style*="font-size: 2rem"] {
    font-size: 1.5rem !important;
  }

  [style*="font-size: 1.75rem"],
  [style*="font-size: 1.5rem"] {
    font-size: 1.25rem !important;
  }

  [style*="font-size: 1.35rem"],
  [style*="font-size: 1.25rem"] {
    font-size: 1.1rem !important;
  }

  /* Fix line heights */
  [style*="line-height: 1.8"],
  [style*="line-height: 1.9"] {
    line-height: 1.6 !important;
  }

  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* Fix inline flex layouts */
@media (max-width: 640px) {
  [style*="display: flex"][style*="gap: 3rem"] {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  [style*="display: flex"][style*="gap: 2rem"] {
    flex-direction: column !important;
    gap: 1rem !important;
  }

  /* Fix inline-block badges and tags */
  [style*="display: inline-block"][style*="padding: 0.75rem 1.5rem"],
  [style*="display: inline-block"][style*="padding: 0.5rem 1.5rem"] {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
  }

  /* Fix hero actions on mobile */
  .hero-actions {
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Fix service row cards on mobile */
@media (max-width: 968px) {
  .service-row-card {
    padding: 1rem !important;
  }

  .service-row-content {
    padding: 1.5rem 1rem !important;
  }

  .service-row-image {
    padding: 1rem !important;
  }
}

@media (max-width: 640px) {
  .service-row-card {
    padding: 0.75rem !important;
  }

  .service-row-content {
    padding: 1.25rem 0.75rem !important;
  }

  .service-row-image {
    padding: 0.75rem !important;
  }
}