/* ================================
   RZ-FAQ SECTION STYLES
   ================================ */



  /* Modern Dark Theme Variables */
  :root {
    /* Rackzar Brand Colors */
    --rackzar-dark: #222831;
    --rackzar-medium: #393E46;
    --rackzar-orange-dark: #ED6307;
    --rackzar-orange-bright: #F96D00;
    --rackzar-light: #F2F2F2;

    /* Dark theme colors */
    --bg-primary: #1a1d23;
    --bg-secondary: #2a2d35;
    --border-color: #3a3d45;
    --text-primary: #ffffff;
    --text-secondary: #b0b3b8;
    --text-muted: #8b8e93;
    --white: #ffffff;
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;

    /* Aliases for consistency */
    --accent: var(--rackzar-orange-dark);
    --accent2: var(--rackzar-orange-bright);
    --primary: var(--rackzar-orange-dark);
    --secondary: var(--rackzar-orange-bright);
  }

   .rz-faq-container {
  max-width: 1200px;
  margin: 0 auto;
}

.rz-faq-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.rz-faq-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rz-faq-item {
  background: #1a1d23;
  border: 1px solid #2a2d35;
  border-radius: 8px;
  margin-bottom: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  isolation: isolate;
}

.rz-faq-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  border-color: rgba(249, 109, 0, 0.3);
  transform: translateY(-2px);
}

.rz-faq-question {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #ffffff;
  background: transparent;
  transition: all 0.3s ease;
  user-select: none;
  font-size: 0.95rem;
}

.rz-faq-question:hover {
  color: var(--rackzar-orange-bright);
  background: rgba(246, 108, 3, 0.05);
}

.rz-faq-question.active {
  color: var(--rackzar-orange-bright);
  border-bottom: 1px solid #2a2d35;
  background: rgba(249, 109, 0, 0.1);
}

.rz-faq-icon {
  color: var(--rackzar-orange-dark);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  margin-left: 1rem;
  flex-shrink: 0;
}

.rz-faq-icon.rotated {
  transform: rotate(180deg);
}

/* ===== OPTIMIZED ANSWER ANIMATION - HIDDEN BY DEFAULT ===== */
.rz-faq-answer {
  /* Start with max-height 0 to hide content */
  max-height: 0;
  overflow: hidden;
  background: rgba(34, 40, 49, 0.5);
  
  /* Smooth transition with GPU acceleration */
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  
  /* Start with 0 opacity */
  opacity: 0;
  
  /* GPU acceleration for smooth animation */
  will-change: max-height, padding, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Active state - show the answer */
.rz-faq-answer.active {
  max-height: 500px; /* Adjust based on your content length */
  opacity: 1;
  padding: 1rem 1.25rem;
}

/* Alternative: If content is very long, use a higher max-height */
.rz-faq-answer.active.long-content {
  max-height: 1000px;
}

/* Paragraph styles */
.rz-faq-answer p {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
}

/* Performance optimizations */
.rz-faq-container {
  contain: layout style;
}

/* Smooth font rendering */
.rz-faq-item * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Responsive */
@media (max-width: 768px) {
  .rz-faq-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Adjust max-height for mobile if needed */
  .rz-faq-answer.active {
    max-height: 600px;
  }
}
  /* Modern Section Styling */
  .modern-section {
    background: var(--bg-primary);
    padding: 50px 0;
    position: relative;
  }

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

  .modern-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
  }

  .modern-section-subtitle {
    font-size: 1.1rem;
    color: #b0b3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
  }