/* ===================================
   Basic Reset
=================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================================
   FAQ Hero
=================================== */
.faq-hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('/Images/General/faq-hero.webp') no-repeat center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  padding: 0 20px;
  /* subtle animation for hero background */
  animation: fadeInBg 1.5s ease-in-out forwards;
}

@keyframes fadeInBg {
  0% { filter: brightness(0.7) blur(2px); opacity: 0; }
  100% { filter: brightness(1) blur(0); opacity: 1; }
}

.faq-hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffc000;
  text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.7);
}

.faq-hero p {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.faq-hero button {
  padding: 12px 30px;
  font-size: 1.2em;
  background: linear-gradient(45deg, #ffc000, #ffbf47);
  color: #000;
  border: 2px solid #ffc000;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  transition: all 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  /* Accessibility: Focus indicator */
  outline: none;
}

.faq-hero button:focus {
  outline: 3px solid #ffc000;
  outline-offset: 2px;
}

.faq-hero button:hover {
  background: linear-gradient(45deg, #222, #111);
  color: #ffc000;
  border: 2px solid #222;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}

/* Responsive Hero */
@media (max-width: 768px) {
  .faq-hero h1 { font-size: 2.2em; }
  .faq-hero p { font-size: 1.1em; }
  .faq-hero button { font-size: 1em; padding: 10px 20px; }
}

@media (max-width: 480px) {
  .faq-hero h1 { font-size: 1.8em; }
  .faq-hero p { font-size: 1em; }
  .faq-hero button { font-size: 0.9em; padding: 8px 15px; }
}

/* ===================================
   FAQ Container
=================================== */
.container {
  max-width: 1200px;
  margin: -60px auto 60px;
  padding: 40px;
  background: linear-gradient(145deg, #ffffff, #f9f9f9);
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* ===================================
   Accordion (Final – Mobile Friendly & Beautiful)
=================================== */
.accordion {
  background: linear-gradient(145deg, #ffffff, #f6f6f6);
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  margin-bottom: 0;
  cursor: pointer;
  padding: 15px 18px;
  font-size: clamp(0.95rem, 4vw, 1.1rem);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s ease;
  /* Accessibility: Focus indicator */
  outline: none;
}

.accordion:focus {
  outline: 3px solid #ffc000;
  outline-offset: 2px;
}

/* Desktop hover only */
@media (hover: hover) {
  .accordion:hover {
    background: linear-gradient(145deg, #fff6d6, #ffe6a3);
    box-shadow: 0 8px 22px rgba(0,0,0,0.1);
    transform: translateY(-2px);
  }
}

/* Mobile tap feedback */
.accordion:active {
  transform: scale(0.985);
}

/* Active accordion */
.accordion.active {
  background: linear-gradient(145deg, #ffc000, #ffb700);
  color: #111;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 10px 26px rgba(0,0,0,0.15);
}

/* Icon */
.accordion .icon {
  font-size: 1.35em;
  font-weight: 700;
  color: #444;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
}

.accordion.active .icon {
  transform: rotate(45deg);
  color: #111;
}

/* ===================================
   Panel (Unified & Smooth)
=================================== */
.panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  background: #f7fff8;
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 0 0 14px 14px;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.04);
  transition:
    max-height 0.45s cubic-bezier(.4,0,.2,1),
    padding 0.35s ease,
    opacity 0.3s ease;
  opacity: 0;
}

.panel.open {
  max-height: 600px;
  padding: 14px 18px 16px;
  opacity: 1;
}

.panel p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #1f3d25;
}

/* ===================================
   Responsive Tweaks
=================================== */
@media (max-width: 768px) {
  .accordion {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .panel {
    border-radius: 0 0 12px 12px;
  }
}

@media (max-width: 480px) {
  .accordion {
    padding: 13px 14px;
    font-size: 0.95rem;
  }

  .panel {
    padding-left: 14px;
    padding-right: 14px;
  }

  .panel p {
    font-size: 0.9rem;
  }
}

/* ===================================
   Accessibility Enhancements
=================================== */
/* Skip link styles (assuming it's added in HTML) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .accordion {
    border: 2px solid #000;
  }
  .faq-hero button {
    border: 3px solid #000;
  }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .faq-hero {
    animation: none;
  }
  .accordion, .panel, .faq-hero button {
    transition: none;
  }
}