/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* bckchodi */
/* Pixel Trail Styles - Add at the end of your CSS file */
.pixel-trail-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5; /* Below your content but above background */
  overflow: hidden;
}

.pixel-grid {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.pixel-dot {
  position: absolute;
  border-radius: 50%;
  background-color: #ffa04f; /* Orange - change to match your theme */
  opacity: 0;
  transition: opacity 0.5s ease-out;
  pointer-events: none;
}

/* You can also use your existing filter-tab gradient color */
.pixel-dot.alt-color {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pixel-dot.active {
  opacity: 0.4;
}

/* Make sure your blog-content section has relative positioning */
.blog-content {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .pixel-trail-container {
    /* Disable on very small screens if needed */
    display: block; /* or 'none' to disable on mobile */
  }
}


:root {
  /* Orange and Dark Blue Color Palette */
  --primary: hsl(220, 50%, 30%); /* Dark Blue */
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(25, 95%, 55%); /* Orange */
  --secondary-foreground: hsl(0, 0%, 9%);
  --warm-orange: hsl(35, 90%, 60%);
  --navy-blue: hsl(220, 60%, 25%);

  /* Neutral Colors */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(0, 0%, 3.9%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(0, 0%, 3.9%);
  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(0, 0%, 3.9%);
  --muted: hsl(0, 0%, 96.1%);
  --muted-foreground: hsl(0, 0%, 45.1%);
  --accent: hsl(0, 0%, 96.1%);
  --accent-foreground: hsl(0, 0%, 9%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(0, 0%, 89.8%);
  --input: hsl(0, 0%, 89.8%);
  --ring: hsl(0, 0%, 3.9%);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Typography */
  --font-family: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;

  /* Animations */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
  --background: hsl(0, 0%, 3.9%);
  --foreground: hsl(0, 0%, 98%);
  --card: hsl(0, 0%, 3.9%);
  --card-foreground: hsl(0, 0%, 98%);
  --popover: hsl(0, 0%, 3.9%);
  --popover-foreground: hsl(0, 0%, 98%);
  --muted: hsl(0, 0%, 14.9%);
  --muted-foreground: hsl(0, 0%, 63.9%);
  --accent: hsl(0, 0%, 14.9%);
  --accent-foreground: hsl(0, 0%, 98%);
  --border: hsl(0, 0%, 14.9%);
  --input: hsl(0, 0%, 14.9%);
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--secondary),
    var(--warm-orange),
    var(--primary)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Background animations */
@keyframes heroGradientDrift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes particlesDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(2%, -3%, 0) scale(1.03);
    opacity: 0.6;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.45;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.28;
    filter: blur(60px);
  }
  50% {
    opacity: 0.38;
    filter: blur(72px);
  }
}

@keyframes floatOne {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-12px, 16px);
  }
  50% {
    transform: translate(8px, -10px);
  }
  75% {
    transform: translate(-6px, 8px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes floatTwo {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(16px, -12px);
  }
  50% {
    transform: translate(-10px, 10px);
  }
  75% {
    transform: translate(12px, 6px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes floatThree {
  0% {
    transform: translate(-50%, -50%);
  }
  25% {
    transform: translate(calc(-50% + 10px), calc(-50% - 8px));
  }
  50% {
    transform: translate(calc(-50% - 8px), calc(-50% + 10px));
  }
  75% {
    transform: translate(calc(-50% + 6px), calc(-50% + 4px));
  }
  100% {
    transform: translate(-50%, -50%);
  }
}

/* Background Elements */
.bg-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  pointer-events: none;
}

.bg-element-1 {
  top: 10%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: var(--secondary);
  animation: floatOne 24s ease-in-out infinite, pulse 10s ease-in-out infinite;
}

.bg-element-2 {
  bottom: 20%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: var(--primary);
  animation: floatTwo 28s ease-in-out infinite, pulse 12s ease-in-out infinite;
}

.bg-element-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: var(--warm-orange);
  animation: floatThree 22s ease-in-out infinite, pulse 9s ease-in-out infinite;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-bg::after,
  .bg-element-1,
  .bg-element-2,
  .bg-element-3 {
    animation: none !important;
  }
}

.bg-element-4,
.bg-element-5,
.bg-element-6,
.bg-element-7,
.bg-element-8,
.bg-element-9 {
  width: 250px;
  height: 250px;
  background: linear-gradient(45deg, var(--secondary), var(--primary));
}

.bg-element-4 {
  top: 15%;
  right: 15%;
}
.bg-element-5 {
  bottom: 15%;
  left: 15%;
}
.bg-element-6 {
  top: 20%;
  right: 20%;
}
.bg-element-7 {
  bottom: 10%;
  left: 10%;
}
.bg-element-8 {
  top: 25%;
  right: 25%;
}
.bg-element-9 {
  bottom: 25%;
  left: 25%;
}

.bg-gradient {
  background: linear-gradient(
    135deg,
    hsl(25, 95%, 55%, 0.05) 0%,
    transparent 50%,
    hsl(220, 50%, 30%, 0.05) 100%
  );
}

.bg-gradient-cta {
  background: linear-gradient(
    135deg,
    hsl(220, 50%, 30%, 0.1) 0%,
    hsl(25, 95%, 55%, 0.1) 100%
  );
}

.bg-gradient-footer {
  background: linear-gradient(
    135deg,
    hsl(220, 50%, 30%, 0.05) 0%,
    hsl(25, 95%, 55%, 0.05) 100%
  );
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-logo img {
  width: 6rem;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--muted-foreground);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--secondary), var(--warm-orange));
  transition: width 0.3s ease;
}
/* ----------sign in */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--secondary), var(--warm-orange));
  transition: width 0.3s ease;
}






.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--foreground);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.mobile-menu-content {
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: var(--transition);
}

.mobile-nav-link:hover {
  background: var(--muted);
  color: var(--secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--navy-blue));
  color: var(--primary-foreground);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, hsl(220, 50%, 25%), hsl(220, 60%, 20%));
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), var(--warm-orange));
  color: var(--secondary-foreground);
  box-shadow: var(--shadow-lg);
}

.btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, hsl(25, 95%, 50%), hsl(35, 90%, 55%));
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.btn-help {
  background: var(--destructive);
  color: var(--destructive-foreground);
  box-shadow: var(--shadow-lg);
}

.btn-help:hover:not(:disabled) {
  background: hsl(0, 84.2%, 55%);
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.btn-donate {
  background: linear-gradient(135deg, var(--secondary), var(--warm-orange));
  color: var(--secondary-foreground);
  box-shadow: var(--shadow-lg);
}

.btn-donate:hover:not(:disabled) {
  background: linear-gradient(135deg, hsl(25, 95%, 50%), hsl(35, 90%, 55%));
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 2rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
  border-radius: 2rem;
}

.btn-full {
  width: 100%;
}

.btn-send {
  background: linear-gradient(135deg, var(--secondary), var(--warm-orange));
  color: var(--secondary-foreground);
  padding: 0.75rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.btn-send:hover:not(:disabled) {
  background: linear-gradient(135deg, hsl(25, 95%, 50%), hsl(35, 90%, 55%));
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

/* Page System */
.page {
  display: none;
  min-height: 100vh;
  padding-top: 5rem;
}

.page.active {
  display: block;
}

/* Page Headers */
.page-header {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    hsl(25, 95%, 55%, 0.05) 0%,
    transparent 50%,
    hsl(220, 50%, 30%, 0.05) 100%
  );
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-description {
  font-size: 1.25rem;
  text-align: center;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    hsl(25, 95%, 55%, 0.05) 0%,
    transparent 50%,
    hsl(220, 50%, 30%, 0.05) 100%
  );
  background-size: 200% 200%;
  animation: heroGradientDrift 20s ease-in-out infinite;
}

/* Subtle particle layer */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(
        circle at 10% 20%,
        rgba(255, 255, 255, 0.15) 0 2px,
        transparent 3px
      )
      0 0/120px 120px,
    radial-gradient(
        circle at 70% 80%,
        rgba(255, 255, 255, 0.12) 0 2px,
        transparent 3px
      )
      30px 60px/140px 140px,
    radial-gradient(
        circle at 40% 60%,
        rgba(255, 255, 255, 0.1) 0 1.5px,
        transparent 3px
      )
      60px -20px/100px 100px;
  opacity: 0.5;
  filter: blur(0.2px);
  animation: particlesDrift 60s linear infinite;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Features Section */
.features {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.features-bg {
  position: absolute;
  inset: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--secondary);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--secondary), var(--warm-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.feature-description {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Featured Resources Section */
.featured-resources {
  position: relative;
  padding: 5rem 0;
  background: var(--background);
  overflow: hidden;
}

.featured-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    hsl(25, 95%, 55%, 0.02) 0%,
    transparent 50%,
    hsl(220, 50%, 30%, 0.02) 100%
  );
}

.section-footer {
  text-align: center;
  margin-top: 3rem;
}

/* Blog Slider */
.blog-slider-container {
  position: relative;
  margin: 2rem 0;
}

.blog-slider {
  overflow: hidden;
  border-radius: 1.5rem;
}

.blog-slider-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card {
  flex: 0 0 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.blog-card-image {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.blog-card-content {
  padding: 1.5rem;
}

.blog-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-badge {
  background: rgba(251, 146, 60, 0.2);
  color: var(--secondary);
  border: 1px solid rgba(251, 146, 60, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.blog-read-time {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--foreground);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover .blog-card-title {
  color: var(--secondary);
}

.blog-card-excerpt {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-card-date {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.blog-read-more {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 0.75rem;
  transition: var(--transition);
}

.blog-read-more:hover {
  background: rgba(251, 146, 60, 0.1);
  color: hsl(25, 95%, 50%);
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 58, 138, 0.2);
  backdrop-filter: blur(12px);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-xl);
}

.slider-prev {
  left: 1rem;
}

.slider-next {
  right: 1rem;
}

.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--muted);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-indicator.active {
  background: var(--secondary);
  transform: scale(1.25);
  box-shadow: var(--shadow-lg);
}

.slider-indicator:hover {
  background: rgba(251, 146, 60, 0.5);
}

/* CTA Section */
.cta {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 10;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.cta-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* Blog Page */
.blog-content {
  padding: 3rem 0;
}

.blog-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.search-box {
  position: relative;
  max-width: 24rem;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  width: 1.25rem;
  height: 1.25rem;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  font-size: 1rem;
  transition: var(--transition);
}

.search-box input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.filter-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  color: var(--muted-foreground);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.filter-tab:hover {
  background: rgba(251, 146, 60, 0.9);
  color: var(--secondary-foreground);
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.filter-tab.active {
  background: linear-gradient(135deg, var(--secondary), var(--warm-orange));
  color: var(--secondary-foreground);
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* Chat Page */
.chat-header {
  padding: 2rem 0;
  text-align: center;
}

.chat-section {
  padding: 2rem 0 6rem;
}

.chat-container {
  max-width: 48rem;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.chat-messages {
  height: 32rem;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  gap: 0.75rem;
  max-width: 80%;
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bot-message .message-avatar {
  background: linear-gradient(135deg, var(--primary), var(--navy-blue));
  color: var(--primary-foreground);
}

.user-message .message-avatar {
  background: linear-gradient(135deg, var(--secondary), var(--warm-orange));
  color: var(--secondary-foreground);
}

.message-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
}

.bot-message .message-content {
  border-bottom-left-radius: 0.25rem;
}

.user-message .message-content {
  border-bottom-right-radius: 0.25rem;
  background: linear-gradient(135deg, var(--secondary), var(--warm-orange));
  color: var(--secondary-foreground);
  border-color: var(--secondary);
}

.message-content p {
  margin: 0;
  line-height: 1.5;
}

.chat-input-container {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
}

.chat-input-wrapper {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chat-input-wrapper textarea {
  flex: 1;
  min-height: 3rem;
  max-height: 8rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--background);
  resize: none;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: var(--transition);
}

.chat-input-wrapper textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
}

/* Donate/Contact Page */
.donate-content {
  padding: 3rem 0;
}

.tab-navigation {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.tab-navigation .btn-lg {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--muted-foreground);
  margin: 0.125rem;
}

.tab-btn {
  padding: 0.75rem 2rem;
  border-radius: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  color: var(--muted-foreground);
  box-shadow: var(--shadow-md);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--secondary), var(--warm-orange));
  color: var(--secondary-foreground);
  box-shadow: var(--shadow-lg);
}

.tab-btn:hover:not(.active) {
  background: rgba(251, 146, 60, 0.1);
  color: var(--secondary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form-card,
.impact-card,
.contact-info {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.form-card:hover,
.impact-card:hover,
.contact-info:hover {
  box-shadow: var(--shadow-2xl);
  transform: translateY(-2px);
}

.form-title,
.impact-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--secondary);
  position: relative;
}

.form-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3px;
  background: linear-gradient(135deg, var(--secondary), var(--warm-orange));
  border-radius: 2px;
}

.form-section {
  margin-bottom: 1.5rem;
}

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

.amount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.amount-btn {
  padding: 1rem;
  border-radius: 0.75rem;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.amount-btn:hover {
  border-color: rgba(251, 146, 60, 0.5);
  background: rgba(251, 146, 60, 0.05);
}

.amount-btn.active {
  border-color: var(--secondary);
  background: rgba(251, 146, 60, 0.1);
  box-shadow: var(--shadow-lg);
}

.amount-value {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--secondary);
}

.amount-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  width: 1.25rem;
  height: 1.25rem;
}

.form-section input,
.form-section textarea,
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  font-size: 1rem;
  font-family: inherit;
  color: var(--foreground);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.form-section input::placeholder,
.form-section textarea::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted-foreground);
  opacity: 0.8;
}

.input-wrapper input {
  padding-left: 2.5rem;
}

.form-section input:focus,
.form-section textarea:focus,
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.form-section input:hover,
.form-section textarea:hover,
.form-field input:hover,
.form-field textarea:hover {
  border-color: rgba(251, 146, 60, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  margin-bottom: 1.5rem;
}

.form-field .form-label {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  display: block;
}

.form-field textarea {
  min-height: 6rem;
  resize: vertical;
  line-height: 1.6;
}

/* Contact form specific styling */
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#contactForm .form-field:last-child {
  margin-bottom: 0;
}

#contactForm .form-field input,
#contactForm .form-field textarea {
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

#contactForm .form-field input:focus,
#contactForm .form-field textarea:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.15);
}

#contactForm .form-field input::placeholder,
#contactForm .form-field textarea::placeholder {
  font-weight: 400;
  color: var(--muted-foreground);
  opacity: 0.7;
}

.impact-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.impact-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.impact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(251, 146, 60, 0.2);
  color: var(--secondary);
}

.impact-number {
  font-weight: 700;
  color: var(--foreground);
}

.impact-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-card {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.1),
    rgba(30, 64, 175, 0.1)
  );
  backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 58, 138, 0.2);
  border-radius: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-xl);
}

.contact-card:hover {
  box-shadow: var(--shadow-2xl);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-title {
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.crisis-card {
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.1),
    rgba(220, 38, 38, 0.2)
  );
  backdrop-filter: blur(12px);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.crisis-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--destructive);
  margin-bottom: 0.75rem;
}

.crisis-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.crisis-contacts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.crisis-contacts li {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

/* Footer */
.footer {
  position: relative;
  background: var(--card);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}

.footer-logo {
  font-size: 1.875rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-actions .btn {
  justify-content: flex-start;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-section-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-nav,
.crisis-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li,
.crisis-links li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--secondary);
}

.crisis-links li {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  position: relative;
  z-index: 10;
}

.footer-bottom-content {
  text-align: center;
  color: var(--muted-foreground);
}

.footer-disclaimer {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Loading States */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  color: var(--muted-foreground);
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--muted);
  border-top: 2px solid var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

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

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

  .section-title {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .tab-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-actions {
    display: none;
  }

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

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

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .blog-controls {
    gap: 1rem;
  }

  .filter-tabs {
    gap: 0.5rem;
  }

  .filter-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .amount-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .slider-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .slider-prev {
    left: 0.5rem;
  }

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

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

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

  .page-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .cta-title {
    font-size: 1.75rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .chat-messages {
    height: 24rem;
    padding: 1rem;
  }

  .form-card,
  .impact-card,
  .contact-info {
    padding: 1.5rem;
  }

  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .form-field {
    margin-bottom: 1.25rem;
  }

  .form-field textarea {
    min-height: 5rem;
  }

  #contactForm .form-field input,
  #contactForm .form-field textarea {
    font-size: 0.875rem;
    padding: 0.625rem;
  }
}
