* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.faq-main {
  width: 100%;
  background-color: #ffffff;
  padding: 80px 5%;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* HEADING */
.faq-main-heading {
  text-align: center;
  margin-bottom: 50px;
}

.faq-main-heading h3 {
  color: #d11516;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.faq-main-heading h1 {
  font-size: 2.8rem;
  color: #071952;
  margin: 10px 0;
  font-weight: 700;
}

.Frequently-color {
  color: #d11516;
}

.faq-main-heading p {
  color: gray;
  font-size: 1rem;
  max-width: 650px;
  margin: 10px auto 0;
}

/* FAQ CONTAINER */
.container-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
  max-width: 1450px;
  width: 100%;
  margin: 0 auto;
  /* border: 2px solid orange; */
}

.container-box {
  flex: 1 1 46%;
  min-width: 320px;
}

details {
  background-color: #f9f9f9;
  border-left: 5px solid #d11516;
  border-radius: 10px;
  margin-bottom: 19px;
  padding: 14px 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

details[open] {
  position: relative;
  background-color: #fff;
  border-left: none;
  overflow: hidden;
  border-left: 5px solid #071952;
}
details[open]::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 12px;
  background: linear-gradient(135deg, #d9d9d9, #ffffff);
  z-index: -1;
  animation: glowBorder 2.5s linear infinite;
}
@keyframes glowBorder {
  0% {
    opacity: 0.5;
    filter: blur(3px);
  }
  50% {
    opacity: 1;
    filter: blur(6px);
  }
  100% {
    opacity: 0.5;
    filter: blur(3px);
  }
}
summary {
  font-weight: 600;
  font-size: 1.05rem;
  color: #071952;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::after {
  content: "➕";
  color: #d11516;
  font-size: 1.2rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

details[open] summary::after {
  content: "➖";
  transform: rotate(180deg);
  color: #071952;
}

details p {
  color: #444;
  margin-top: 10px;
  line-height: 1.6;
  font-size: 0.95rem;
  padding-left: 10px;
  border-left: 2px solid #d11516;

 max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.85s ease, opacity 1s ease;  
}

details[open] p {
  max-height: 300px; /* adjust if needed */
  opacity: 1;
}
details:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(209, 21, 22, 0.2);
}

@media (max-width: 768px) {
 
  .faq-main-heading h1 {
    font-size: 2rem;
  }

  .container-box {
    flex: 1 1 100%;
  }
}
@media(max-width:1532px) {
 .faq-main {
    padding: 60px 5%;
  }
}
