#community-page {
  /* CSS Variables */
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #60a5fa;
  --accent: #0ea5e9;
  --bg-gradient-start: #f0f9ff;
  --bg-gradient-end: #e0f2fe;
  --white: #ffffff;
  --text: #0f172a;
  --text-light: #475569;
  --text-lighter: #64748b;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: rgba(30, 64, 175, 0.1);
  --shadow-sm: 0 4px 16px rgba(37, 99, 235, 0.08);
  --shadow-md: 0 12px 40px rgba(37, 99, 235, 0.12);
  --shadow-lg: 0 20px 60px rgba(37, 99, 235, 0.15);
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --blur: blur(20px);
  --slide-duration: 5000; /* 5 seconds per slide */
}

#community-page * { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

#community-page {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#community-page * {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#community-page .container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

#community-page h1, 
#community-page h2, 
#community-page h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

#community-page img, 
#community-page video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

/* Animated Background Particles */
#community-page .bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#community-page .particle {
  position: absolute;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

#community-page .particle:nth-child(1) { width: 300px; height: 300px; top: 10%; left: 10%; animation-delay: 0s; }
#community-page .particle:nth-child(2) { width: 200px; height: 200px; top: 60%; left: 70%; animation-delay: 5s; }
#community-page .particle:nth-child(3) { width: 250px; height: 250px; top: 80%; left: 20%; animation-delay: 10s; }
#community-page .particle:nth-child(4) { width: 180px; height: 180px; top: 30%; left: 80%; animation-delay: 15s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -50px) scale(1.1); }
  50% { transform: translate(-30px, 50px) scale(0.9); }
  75% { transform: translate(40px, 30px) scale(1.05); }
}

#community-page .hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: #000;
  /* Cover header - adjust 80px to your header height */
  height: calc(100vh + 80px);
  margin-top: -80px !important;
  padding-top: 80px; /* Compensate for negative margin */
}

/* Adjust slider content positioning */
#community-page .hero-slider {
  position: absolute;
  top: 0; /* Start from very top */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

/* WordPress admin bar compensation */
body.admin-bar #community-page .hero {
  margin-top: calc(-80px - 32px) !important; /* Covers header + admin bar */
}

@media (max-width: 782px) {
  body.admin-bar #community-page .hero {
    margin-top: calc(-80px - 46px) !important; /* Mobile admin bar is 46px */
  }
}

#community-page .hero-slider { 
  position: absolute; 
  inset: 0; 
  z-index: 0;
}

/* MODERN SLIDE TRANSITION EFFECTS */
#community-page .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  z-index: 0;
}

#community-page .slide.active { 
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Slide animation variants */
#community-page .slide.slide-next {
  animation: slideInRight 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#community-page .slide.slide-prev {
  animation: slideInLeft 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%) scale(1.1);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%) scale(1.1);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* IMPROVED: High-quality image display with accurate color reproduction */
#community-page .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  /* Enhanced image rendering for better quality */
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  /* Prevent compression artifacts */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  /* Ensure proper color profile */
  color-interpolation-filters: sRGB;
  /* Add slight brightness boost for better visibility */
  filter: brightness(1.05) contrast(1.02) saturate(1.05);
}

/* IMPROVED: Much lighter overlay - preserves image colors and details */
#community-page .slide::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Reduced opacity for better color visibility */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Slider Navigation Dots - ENHANCED WITH PROGRESS INDICATOR */
#community-page .slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#community-page .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

#community-page .dot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: white;
  border-radius: 50px;
  transition: width 0.1s linear;
}

#community-page .dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

#community-page .dot.active {
  background: rgba(255, 255, 255, 0.6);
  width: 28px;
  border-radius: 50px;
  border-color: rgba(255, 255, 255, 0.4);
}

#community-page .dot.active::before {
  animation: progressBar var(--slide-duration) linear forwards;
}

@keyframes progressBar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Animated Mouse Scroll Indicator */
#community-page .scroll-indicator {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 1s ease-out 1s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

#community-page .mouse {
  width: 30px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#community-page .mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

#community-page .scroll-text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Sections */
#community-page section { 
  padding: clamp(5rem, 12vw, 10rem) 0; 
  position: relative;
  z-index: 1;
}

#community-page .section-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  letter-spacing: -0.02em;
}

#community-page .section-subtitle {
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 4rem;
  line-height: 1.7;
}

#community-page .grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  #community-page .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Glass Card */
#community-page .card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

#community-page .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

#community-page .card:hover::before { opacity: 1; }

#community-page .card:hover { 
  transform: translateY(-12px); 
  box-shadow: var(--shadow-lg);
  border-color: rgba(96, 165, 250, 0.4);
}

#community-page .card-image-wrapper {
  position: relative;
  overflow: hidden;
  background: #000;
}

#community-page .card img,
#community-page .card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 0;
}

#community-page .card:hover img {
  transform: scale(1.08);
}

#community-page .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 64, 175, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
}

#community-page .card:hover .card-overlay { opacity: 1; }

#community-page .card-content { 
  padding: 2.5rem 2rem; 
}

#community-page .card-title { 
  font-size: 1.75rem; 
  margin-bottom: 1.2rem;
  color: var(--primary);
  font-weight: 700;
}

#community-page .card-description {
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Enhanced Glass Info Box */
#community-page .glass-info {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(240, 249, 255, 0.6) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 16px;
  padding: 1.8rem;
  margin-top: 1.5rem;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
  transition: var(--transition);
}

#community-page .glass-info:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(240, 249, 255, 0.8) 100%);
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

#community-page .info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(96, 165, 250, 0.15);
}

#community-page .info-row:last-child { border-bottom: none; padding-bottom: 0; }
#community-page .info-row:first-child { padding-top: 0; }

#community-page .info-label { 
  font-weight: 600; 
  color: var(--text-light); 
  font-size: 0.95rem;
  flex-shrink: 0;
  min-width: 40%;
}

#community-page .info-value { 
  font-weight: 700; 
  color: var(--primary);
  text-align: right;
  font-size: 1rem;
}

/* Full-width Company Card */
#community-page .company-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 249, 255, 0.9) 100%);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 2px solid rgba(96, 165, 250, 0.2);
  border-radius: 32px;
  padding: 4rem 3rem;
  box-shadow: var(--shadow-lg);
  margin: 5rem 0;
  position: relative;
  overflow: hidden;
}

#community-page .company-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

#community-page .company-card .card-title {
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#community-page .company-card p {
  font-size: 1.15rem;
  margin: 0 0 2rem;
  text-align: center;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

#community-page .highlight-box {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.9) 0%, rgba(224, 242, 254, 0.95) 100%);
  backdrop-filter: blur(10px);
  padding: 2rem 2.5rem;
  border-radius: 20px;
  margin: 2rem 0;
  border-left: 6px solid var(--primary);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.1);
  font-size: 1.1rem;
  color: var(--text);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  line-height: 1.8;
}

/* CSR Focus Areas */
#community-page .csr-focus-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

#community-page .focus-area {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(240, 249, 255, 0.7) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

#community-page .focus-area:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 249, 255, 0.9) 100%);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
  border-color: rgba(96, 165, 250, 0.4);
}

#community-page .focus-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

#community-page .focus-area:hover .focus-icon {
  animation: floatIcon 2s ease-in-out infinite;
}

#community-page .focus-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
}

#community-page .focus-description {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.7;
  text-align: left;
}

/* Stats Section - COMPACT & STYLISH DESIGN */
#community-page .stats-section {
  background: linear-gradient(135deg, #1e5fd8 0%, #0ea5e9 100%);
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7rem) 0;
}

#community-page .stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

#community-page .stats-section .section-title,
#community-page .stats-section .section-subtitle {
  color: white;
  -webkit-text-fill-color: white;
}

#community-page .stats-section .section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.8rem;
  font-weight: 900;
}

#community-page .stats-section .section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 3rem;
  opacity: 0.95;
}

#community-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
}

#community-page .stat {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: white;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

#community-page .stat:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (hover: none) and (pointer: coarse) {
  #community-page .stat:hover {
    transform: none;
  }
  
  #community-page .stat:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.15);
  }
}

#community-page .stat-number {
  font-size: clamp(1rem, 4vw, 3rem);
  font-weight: 600;
  color: white;
  line-height: 1;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: block;
  word-break: break-word;
  letter-spacing: -0.02em;
}

#community-page .stat-label {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  color: white;
  opacity: 0.95;
  letter-spacing: 0.3px;
  line-height: 1.4;
  max-width: 100%;
}

/* CTA Section */
#community-page .cta {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 249, 255, 0.95) 100%);
  backdrop-filter: var(--blur);
  text-align: center;
  position: relative;
  overflow: hidden;
}

#community-page .cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#community-page .cta-content {
  position: relative;
  z-index: 1;
}

#community-page .cta .section-title { 
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#community-page .cta p {
  font-size: 1.3rem;
  max-width: 720px;
  margin: 0 auto 3rem;
  color: var(--text-light);
  line-height: 1.7;
}

#community-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#community-page .btn-primary { 
  background: var(--primary); 
  color: white;
  border: 2px solid transparent;
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
}

#community-page .btn-primary:hover { 
  background: var(--primary-dark);
  transform: translateY(-4px); 
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4);
}

#community-page .btn-outline { 
  border: 2px solid var(--primary); 
  color: var(--primary);
  background: transparent;
}

#community-page .btn-outline:hover { 
  background: var(--primary); 
  color: white;
  transform: translateY(-4px);
}

#community-page .btn-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
#community-page footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  text-align: center;
  font-size: 0.95rem;
  position: relative;
}

#community-page footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(96, 165, 250, 0.5) 50%, transparent 100%);
}

#community-page footer p { margin: 0.6rem 0; }

/* Scroll Reveal Animation */
#community-page .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

#community-page .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== COMPREHENSIVE RESPONSIVE DESIGN ===== */

/* Extra Large Screens (1400px+) */
@media (min-width: 1400px) {
  #community-page .container {
    max-width: 1600px;
  }
}

/* Large Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
  #community-page .container {
    max-width: 1200px;
    padding: 0 3rem;
  }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) {
  #community-page .container {
    padding: 0 2.5rem;
  }

  #community-page section {
    padding: clamp(4rem, 10vw, 8rem) 0;
  }

  #community-page .company-card {
    padding: 3.5rem 2.5rem;
  }

  #community-page .highlight-box {
    padding: 1.8rem 2rem;
  }
}

/* Tablet Landscape (768px - 991px) */
@media (max-width: 991px) {
  #community-page {
    --slide-duration: 4000; /* 4 seconds on tablet */
  }

  #community-page .container {
    padding: 0 2rem;
  }

  #community-page .hero {
    min-height: 600px;
  }

  #community-page section {
    padding: clamp(3.5rem, 8vw, 6rem) 0;
  }

  #community-page .section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 0.8rem;
  }

  #community-page .section-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    margin-bottom: 3rem;
  }

  #community-page .grid {
    gap: 2.5rem;
  }

  #community-page .card-content {
    padding: 2rem 1.8rem;
  }

  #community-page .card-title {
    font-size: 1.5rem;
  }

  #community-page .card-description {
    font-size: 1rem;
  }

  #community-page .glass-info {
    padding: 1.5rem;
  }

  #community-page .company-card {
    padding: 3rem 2rem;
    margin: 4rem 0;
  }

  #community-page .company-card .card-title {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  }

  #community-page .company-card p {
    font-size: 1.1rem;
  }

  #community-page .highlight-box {
    padding: 1.5rem 2rem;
    font-size: 1.05rem;
  }

  #community-page .csr-focus-areas {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
  }

  #community-page .focus-area {
    padding: 1.8rem;
  }

  #community-page .focus-icon {
    font-size: 2.5rem;
  }

  #community-page .focus-title {
    font-size: 1.3rem;
  }

  #community-page .focus-description {
    font-size: 0.95rem;
  }

  #community-page .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  #community-page .stat {
    padding: 2rem 1.2rem;
    min-height: 170px;
    border-radius: 18px;
  }

  #community-page .stat-number {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
  }

  #community-page .stat-label {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
  }

  #community-page .cta p {
    font-size: 1.2rem;
  }

  /* Hero dots - compact for tablet */
  #community-page .slider-dots {
    bottom: 30px;
    padding: 10px 16px;
    gap: 8px;
  }

  #community-page .dot {
    width: 8px;
    height: 8px;
  }

  #community-page .dot.active {
    width: 24px;
  }

  #community-page .scroll-indicator {
    bottom: 100px;
  }
}

/* Tablet Portrait (576px - 767px) */
@media (max-width: 767px) {
  #community-page {
    --slide-duration: 4000;
  }

  #community-page .container {
    padding: 0 1.5rem;
  }

  #community-page .hero {
    height: 100vh;
    min-height: 500px;
    max-height: 700px;
  }

  #community-page section {
    padding: clamp(3rem, 7vw, 5rem) 0;
  }

  #community-page .section-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    margin-bottom: 0.6rem;
  }

  #community-page .section-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 2.5rem;
  }

  #community-page .grid {
    gap: 2rem;
  }

  #community-page .grid-2 {
    grid-template-columns: 1fr;
  }

  #community-page .card-content {
    padding: 1.8rem 1.5rem;
  }

  #community-page .card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
  }

  #community-page .card-description {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }

  #community-page .glass-info {
    padding: 1.3rem;
    margin-top: 1.2rem;
  }

  #community-page .info-row {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.8rem 0;
  }

  #community-page .info-label {
    min-width: 100%;
    font-size: 0.9rem;
  }

  #community-page .info-value {
    text-align: left;
    font-size: 0.95rem;
  }

  #community-page .company-card {
    padding: 2.5rem 1.5rem;
    margin: 3rem 0;
    border-radius: 24px;
  }

  #community-page .company-card .card-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
  }

  #community-page .company-card p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  #community-page .highlight-box {
    padding: 1.3rem 1.5rem;
    font-size: 1rem;
    border-left-width: 4px;
  }

  #community-page .csr-focus-areas {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin: 2rem 0;
  }

  #community-page .focus-area {
    padding: 1.5rem;
  }

  #community-page .focus-icon {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }

  #community-page .focus-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  #community-page .focus-description {
    font-size: 0.9rem;
  }

  #community-page .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #community-page .stat {
    padding: 1.8rem 1.2rem;
    min-height: 150px;
    border-radius: 16px;
  }

  #community-page .stat-number {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }

  #community-page .stat-label {
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  }

  #community-page .cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  #community-page .btn {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }

  #community-page .btn-group {
    gap: 1rem;
    flex-direction: column;
    align-items: stretch;
  }

  #community-page .btn-group .btn {
    width: 100%;
  }

  #community-page footer {
    padding: 3rem 0 1.5rem;
    font-size: 0.9rem;
  }

  /* Hero specific adjustments - COMPACT & STYLISH */
  #community-page .slider-dots {
    bottom: 20px;
    padding: 8px 14px;
    gap: 6px;
  }

  #community-page .dot {
    width: 7px;
    height: 7px;
    border-width: 1.5px;
  }

  #community-page .dot.active {
    width: 22px;
  }

  #community-page .scroll-indicator {
    bottom: 85px;
  }

  #community-page .mouse {
    width: 22px;
    height: 38px;
    border-width: 2px;
  }

  #community-page .mouse::before {
    width: 3px;
    height: 5px;
    top: 6px;
  }

  #community-page .scroll-text {
    font-size: 0.7rem;
  }
}

/* Mobile (480px - 575px) */
@media (max-width: 575px) {
  #community-page {
    --slide-duration: 3500;
  }

  #community-page .container {
    padding: 0 1.25rem;
  }

  #community-page .hero {
    min-height: 450px;
    max-height: 600px;
  }

  #community-page section {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
  }

  #community-page .section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  #community-page .section-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    margin-bottom: 2rem;
  }

  #community-page .grid {
    gap: 1.5rem;
  }

  #community-page .card {
    border-radius: 20px;
  }

  #community-page .card-content {
    padding: 1.5rem 1.2rem;
  }

  #community-page .card-title {
    font-size: 1.3rem;
  }

  #community-page .card-description {
    font-size: 0.9rem;
  }

  #community-page .glass-info {
    padding: 1.2rem;
    border-radius: 12px;
  }

  #community-page .info-row {
    padding: 0.7rem 0;
  }

  #community-page .info-label {
    font-size: 0.85rem;
  }

  #community-page .info-value {
    font-size: 0.9rem;
  }

  #community-page .company-card {
    padding: 2rem 1.2rem;
    margin: 2.5rem 0;
    border-radius: 20px;
  }

  #community-page .company-card .card-title {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  }

  #community-page .company-card p {
    font-size: 1rem;
  }

  #community-page .highlight-box {
    padding: 1.2rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 16px;
  }

  #community-page .csr-focus-areas {
    gap: 1rem;
    margin: 1.5rem 0;
  }

  #community-page .focus-area {
    padding: 1.3rem;
    border-radius: 16px;
  }

  #community-page .focus-icon {
    font-size: 2rem;
    margin-bottom: 0.7rem;
  }

  #community-page .focus-title {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
  }

  #community-page .focus-description {
    font-size: 0.85rem;
  }

  #community-page .stat {
    padding: 1.8rem 1.2rem;
    min-height: 130px;
    border-radius: 20px;
  }

  #community-page .stat-number {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }

  #community-page .stat-label {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
  }

  #community-page .cta p {
    font-size: 1rem;
  }

  #community-page .btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.9rem;
  }

  #community-page footer {
    font-size: 0.85rem;
  }

  /* Hero adjustments for mobile */
  #community-page .slider-dots {
    bottom: 15px;
    padding: 10px 12px;
    gap: 6px;
  }

  #community-page .dot {
    width: 6px;
    height: 6px;
  }

  #community-page .dot.active {
    width: 20px;
  }

  #community-page .scroll-indicator {
    bottom: 80px;
    gap: 0.4rem;
  }

  #community-page .mouse {
    width: 22px;
    height: 36px;
  }

  #community-page .mouse::before {
    width: 2px;
    height: 5px;
    top: 5px;
  }

  #community-page .scroll-text {
    font-size: 0.7rem;
  }
}

/* Small Mobile (max 479px) */
@media (max-width: 479px) {
  #community-page {
    --slide-duration: 3500;
  }

  #community-page .container {
    padding: 0 1rem;
  }

  #community-page .hero {
    min-height: 400px;
    max-height: 550px;
  }

  #community-page section {
    padding: clamp(2rem, 5vw, 3.5rem) 0;
  }

  #community-page .section-title {
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  }

  #community-page .section-subtitle {
    font-size: clamp(0.85rem, 1.6vw, 0.95rem);
    margin-bottom: 1.8rem;
  }

  #community-page .card {
    border-radius: 16px;
  }

  #community-page .card-content {
    padding: 1.3rem 1rem;
  }

  #community-page .card-title {
    font-size: 1.2rem;
  }

  #community-page .card-description {
    font-size: 0.85rem;
  }

  #community-page .glass-info {
    padding: 1rem;
  }

  #community-page .company-card {
    padding: 1.8rem 1rem;
    margin: 2rem 0;
  }

  #community-page .company-card .card-title {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
  }

  #community-page .company-card p {
    font-size: 0.95rem;
  }

  #community-page .highlight-box {
    padding: 1rem;
    font-size: 0.9rem;
  }

  #community-page .csr-focus-areas {
    gap: 0.8rem;
    margin: 1.2rem 0;
  }

  #community-page .focus-area {
    padding: 1.2rem;
    border-radius: 14px;
  }

  #community-page .focus-icon {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }

  #community-page .focus-title {
    font-size: 1rem;
    margin-bottom: 0.6rem;
  }

  #community-page .focus-description {
    font-size: 0.8rem;
  }

  #community-page .stat {
    padding: 1.5rem 1rem;
    min-height: 135px;
    border-radius: 14px;
  }

  #community-page .stat-number {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
  }

  #community-page .stat-label {
    font-size: clamp(0.8rem, 1.4vw, 0.9rem);
  }

  #community-page .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.85rem;
  }

  /* Hero adjustments - ULTRA COMPACT */
  #community-page .slider-dots {
    bottom: 15px;
    padding: 7px 12px;
    gap: 5px;
  }

  #community-page .dot {
    width: 6px;
    height: 6px;
    border-width: 1px;
  }

  #community-page .dot.active {
    width: 20px;
  }

  #community-page .scroll-indicator {
    bottom: 75px;
  }

  #community-page .mouse {
    width: 20px;
    height: 34px;
  }

  #community-page .mouse::before {
    width: 2px;
    height: 4px;
    top: 5px;
  }

  #community-page .scroll-text {
    font-size: 0.65rem;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
  #community-page .hero {
    height: 100vh;
    min-height: 100vh;
  }
  #community-page .scroll-indicator {
    display: none;
  }

  #community-page .slider-dots {
    bottom: 15px;
    padding: 8px 12px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  #community-page .btn {
    min-height: 48px;
    padding: 1rem 2rem;
  }

  #community-page .dot {
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
  }

  #community-page .dot::after {
    content: '';
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  #community-page .dot.active::after {
    width: 22px;
    border-radius: 50px;
    background: white;
  }

  #community-page .dot:hover::after {
    background: rgba(255, 255, 255, 0.7);
  }

  /* Remove hover effects on touch devices */
  #community-page .card:hover {
    transform: none;
  }

  #community-page .card:active {
    transform: scale(0.98);
  }

  #community-page .btn:hover {
    transform: none;
  }

  #community-page .btn:active {
    transform: scale(0.95);
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  #community-page .slide img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Image preloading and optimization */
#community-page .slide img {
  /* Prevent layout shift */
  min-height: 100%;
  /* Optimize rendering */
  will-change: opacity;
}