/* Accordion Container */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

/* Accordion Item */
.accordion-item {
  margin-bottom: 0.5rem;
  border: 1px solid #ccc;
  overflow: hidden;
  text-align: left;
}

/* Accordion Tables */

.accordion-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 1rem;
  color: var(--gt-black, #000);
}

.accordion-content th,
.accordion-content td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
  vertical-align: top;
}

.accordion-content th {
  background-color: var(--gt-warm-grey-light, #f5f5f5);
  font-weight: bold;
}

.accordion-content tr:nth-child(even) {
  background-color: #f9f9f9;
}

.accordion-content tr:hover {
  background-color: #fff3d4; /* light gold tone on hover */
}


/* Accordion Content (Collapsed by Default) */
.accordion-content {
  max-height: 0;
  text-align: left;
  overflow: hidden;
  background: var(--gt-white, #fff);
  line-height: 1.4;
  padding: 0 0.5rem;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}


/* Accordion Header */
.accordion-header {
  background: #f9f9f9; /* neutral background */
  padding: 1rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  text-align: left;
  width: 100%;
  outline: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: var(--gt-gold, #b3a369); /* GT Gold with fallback */
}

/* Chevron on the left */
.accordion-header::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 1rem;
  margin-right: 10px;
  background-image: url('/themes/contrib/gt_theme/templates/block/accordion/images/gt-gold-chevron.svg');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background-image 0.3s ease;
}

/* Active state */
.accordion-header.active {
  background: #f0e68c; /* subtle highlight */
}

.accordion-header.active::before {
  transform: rotate(90deg);
  background-image: url('/themes/contrib/gt_theme/templates/block/accordion/images/gt-black-chevron.svg');
}

/* Accordion Content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  text-align: left;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1rem;
  background: #fff;
}

.accordion-content.open {
  padding-top: 1rem;
  padding-bottom: 1rem;
  max-height: 1000px;
}

/* ----------------------------------
   BLOCK TITLE STYLING (Show Title)
------------------------------------- */
.block-title,
.block__title,
.block-title.block__title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #b3a369;
  display: block;
}

/* ----------------------------------
   FULL WIDTH ALIGNMENT FIX
   (For blocks placed in full-width regions)
------------------------------------- */
.block.block-inline-block-accordion,
.block.block-accordion-new {
  text-align: center;
}

.block.block-inline-block-accordion .block-title,
.block.block-accordion-new .block-title {
  text-align: center;
}
