/* =========================
   ACCORDION (core)
   ========================= */
.aaed-accordion {
  border-top: 1px solid #e5e7eb;
  margin-top: 24px;
}

.aaed-acc-item {
  border-bottom: 1px solid #e5e7eb;
}

.aaed-acc-toggle {
  width: 100%;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  color: #151F6D;
  text-align: left;
  cursor: pointer;
}

.aaed-acc-toggle:focus,
.aaed-acc-toggle:active,
.aaed-acc-toggle:focus-visible {
  outline: none;
  box-shadow: none;
}

.aaed-acc-title {
  display: inline-block;
}

.aaed-acc-icon::before {
  content: '+';
  font-size: 20px;
  transition: transform .2s ease;
}

.aaed-acc-item.is-open .aaed-acc-icon::before {
  content: '–';
}

.aaed-acc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
}

.aaed-acc-content {
  padding: 0 16px 16px;
  font-size: 16px;
}

/* =========================
   FEATURES & BENEFITS (frontend)
   ========================= */
.aaed-fb {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .aaed-fb {
    grid-template-columns: 1fr;
  }
}

/* Left list */
.aaed-fb-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid #e9ecef;
}

.aaed-fb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9ecef;
  padding: 12px 0;
}

.aaed-fb-label {
  color: #0B1037;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.aaed-fb-value {
  color: #0B1037;
  font-size: 12px;
}

/* Right images (up to 3) */
.aaed-fb-right {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.aaed-fb-right.has-1 {
  grid-template-columns: 1fr;
  justify-items: center;
}

.aaed-fb-right.has-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
}

@media (max-width: 700px) {
  .aaed-fb-right {
    grid-template-columns: 1fr;
  }
}

.aaed-fb-card {
  background: #F8F6F3;
  border-radius: 4px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.aaed-fb-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =========================
   RELATED CAROUSEL (inside accordion)
   ========================= */
.aaed-rel-header h2 {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #151F6D;
  margin: 0 0 12px 0;
}

.aaed-rel-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #F8F6F3;
  padding: 24px;
  margin: 12px 0 0 0;
}

.aaed-rel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: #151F6D;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 24px 0 rgba(21, 31, 109, 0.18);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.aaed-rel-arrow.left {
  left: 20px;
}

.aaed-rel-arrow.right {
  right: 20px;
}

.aaed-rel-arrow.left::after {
  content: '‹';
  font-size: 22px;
  line-height: 1;
  display: block;
}

.aaed-rel-arrow.right::after {
  content: '›';
  font-size: 22px;
  line-height: 1;
  display: block;
}

@media (max-width: 900px) {
  .aaed-rel-arrow.left {
    left: -4px;
  }

  .aaed-rel-arrow.right {
    right: -4px;
  }
}

.aaed-rel-carousel {
  width: 100%;
}

.aaed-rel-carousel .slick-track {
  display: flex;
}

.aaed-rel-carousel .slick-slide {
  height: auto;
  display: flex;
}

.aaed-rel-carousel .slick-slide>div {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* fallback when Slick isn't present */
.aaed-rel-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
}

.aaed-rel-scroll>.aaed-rel-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* card (uniform height + centered contents) */
.aaed-rel-card {
  background: #fff;
  border: .5px solid #808080;
  padding: 24px 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.04);
  margin: 0 12px;

  display: flex;
  flex-direction: column;
  align-items: center;
  /* center everything horizontally */
  text-align: center;
  /* center text blocks */
  height: 100%;
}

/* media/title/price blocks */
.aaed-rel-img {
  width: 100%;
  display: flex;
  justify-content: center;
}

.aaed-rel-img img {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin-bottom: 14px;
  display: block;
}

.aaed-rel-name h5 {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500 !important;
  color: #151F6D;
  margin: 0 0 10px 0;
  /* clamp to 2 lines, keep rows even */
  /* min-height: 48px; */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aaed-rel-price {
  font-weight: 800;
  color: #080C2C;
  margin-bottom: 12px;
  font-size: 20px;
  text-align: center;
}

.aaed-rel-cta {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.aaed-rel-cta .aaed-rel-btn {
  display: inline-block;
  background: #151F6D;
  color: #fff;
  padding: 12px 16px;
  text-transform: uppercase;
  font-weight: 800;
  border-radius: 6px;
  text-decoration: none;
  min-width: 180px;
  text-align: center;
}

.aaed-rel-cta .aaed-rel-btn:hover {
  background: #0B1037;
  text-decoration: none;
}

/* =========================
   RESOURCES (frontend layout)
   ========================= */
.aaed-resources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 992px) {
  .aaed-resources {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .aaed-resources {
    grid-template-columns: 1fr;
  }
}

.aaed-res-title {
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
  color: #0B1037;
  margin-bottom: 15px;
}

.aaed-res-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.aaed-res-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: center;
}

.aaed-res-icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.aaed-res-item a {
  color: #151F6D;
  text-decoration: none;
}

.aaed-res-item a:hover {
  text-decoration: underline;
}

/* =========================
   FAQs (frontend layout)
   ========================= */
.aaed-faqs {
  margin-top: 8px;
}

.aaed-faqs-title {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #151F6D;
  margin: 0 0 12px 0;
}

.aaed-faqs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
}

@media (max-width: 992px) {
  .aaed-faqs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .aaed-faqs-grid {
    grid-template-columns: 1fr;
  }
}

.aaed-faq {
  background: #fff;
}

.aaed-faq-q {
  color: #151F6D;
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 6px 0;
}

.aaed-faq-a {
  color: #0B1037;
  font-size: 14px;
  line-height: 1.6;
}

.aaed-faq-a p {
  margin: 0 0 10px 0;
}