.homepage-topic-list-secondary {
  background-color: #0c1b2a;
  color: #fff;
  padding: clamp(60px, 10vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

.homepage-topic-list-secondary__container {
  width: min(
    var(--gilliam-law-homepage-max-width),
    calc(100% - (var(--gilliam-law-page-gutter) * 2))
  );
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Header Area */
.homepage-topic-list-secondary__header {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gilliam-law-homepage-grid-gap);
  align-items: flex-start;
  margin-bottom: 36px;
}

.homepage-topic-list-secondary__header-left {
  grid-column: 1 / span 6;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.homepage-topic-list-secondary__header-right {
  grid-column: 7 / -1;
}

.homepage-topic-list-secondary__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(251, 163, 70, 0.3);
  border-radius: 100px;
  outline: 1px #fba346 solid;
  outline-offset: -1px;
  backdrop-filter: blur(3px);
  align-self: flex-start;
}

.homepage-topic-list-secondary__badge-dot {
  width: 8px;
  height: 8px;
  background: #ffd5a9;
  border-radius: 33554400px;
}

.homepage-topic-list-secondary__badge-text {
  color: #ffd5a9;
  font-size: 14px;
  font-family: var(--gilliam-law-font-sans, "Proxima Nova", sans-serif);
  font-weight: 700;
  line-height: 15.4px;
  letter-spacing: 0.17px;
}

.homepage-topic-list-secondary__headline {
  font-family: var(--gilliam-law-font-serif, "novantique-serif", serif);
  font-size: 47px;
  line-height: 51.7px;
  font-weight: 400;
  margin: 0;
}

.homepage-topic-list-secondary__headline-highlight {
  color: #5aaaed;
}

.homepage-topic-list-secondary__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.homepage-topic-list-secondary__body-lead,
.homepage-topic-list-secondary__body-expanded p {
  font-family: var(--gilliam-law-font-sans, "Proxima Nova", sans-serif);
  font-size: 19px;
  line-height: 32.3px;
  color: rgba(255, 255, 255, 1);
  margin: 0;
}

.homepage-topic-list-secondary__body-expanded {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    opacity 0.5s ease;
  opacity: 0;
}

.homepage-topic-list-secondary__body--expanded
  .homepage-topic-list-secondary__body-expanded {
  max-height: 800px;
  opacity: 1;
}

.homepage-topic-list-secondary__intro-toggle {
  background: none;
  border: none;
  padding: 0;
  color: #fba346;
  font-family: var(--gilliam-law-font-sans, "Proxima Nova", sans-serif);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.homepage-topic-list-secondary__intro-toggle-icon {
  transition: transform 0.3s ease;
}

.homepage-topic-list-secondary__body--expanded
  .homepage-topic-list-secondary__intro-toggle-icon {
  transform: rotate(180deg);
}

/* Accordion Area - Full Width */
.homepage-topic-list-secondary__accordion {
  display: flex;
  flex-direction: column;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.homepage-topic-list-secondary__item {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

.homepage-topic-list-secondary__item:hover {
  background-color: #e8932f;
}

.homepage-topic-list-secondary__item-header {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: block;
  text-align: left;
}

.homepage-topic-list-secondary__item-header-inner {
  width: min(
    var(--gilliam-law-homepage-max-width),
    calc(100% - (var(--gilliam-law-page-gutter) * 2))
  );
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gilliam-law-homepage-grid-gap);
  align-items: center;
  transition: transform 0.4s ease;
}

.homepage-topic-list-secondary__item-title {
  grid-column: 1 / span 10;
  font-family: var(--gilliam-law-font-serif, "novantique-serif", serif);
  font-size: 27px;
  line-height: 29.7px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.homepage-topic-list-secondary__item:hover
  .homepage-topic-list-secondary__item-title {
  color: #2c2d2c;
}

.homepage-topic-list-secondary__item-arrow {
  grid-column: 12;
  justify-self: end;
  color: #fff;
  opacity: 0.4;
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.homepage-topic-list-secondary__item:hover
  .homepage-topic-list-secondary__item-arrow {
  opacity: 1;
  color: #2c2d2c;
}

.homepage-topic-list-secondary__item-header[aria-expanded="true"]
  .homepage-topic-list-secondary__item-arrow,
.homepage-topic-list-secondary__item-header[aria-expanded="true"]:hover
  .homepage-topic-list-secondary__item-arrow {
  opacity: 1;
  transform: rotate(-90deg);
}

/* Body Content Expansion */
.homepage-topic-list-secondary__item-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  overflow: hidden;
}

.homepage-topic-list-secondary__item-header[aria-expanded="true"]
  + .homepage-topic-list-secondary__item-body {
  grid-template-rows: 1fr;
}

.homepage-topic-list-secondary__item-content {
  min-height: 0;
}

.homepage-topic-list-secondary__item-content-inner {
  width: min(
    var(--gilliam-law-homepage-max-width),
    calc(100% - (var(--gilliam-law-page-gutter) * 2))
  );
  margin: 0 auto;
  padding: 0 0 48px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--gilliam-law-font-sans, "Proxima Nova", sans-serif);
  font-size: 18px;
  line-height: 1.6;
}

.homepage-topic-list-secondary__item-content-inner p {
  margin-bottom: 1.5em;
}

@media (max-width: 1024px) {
  .homepage-topic-list-secondary__header {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .homepage-topic-list-secondary__header-left,
  .homepage-topic-list-secondary__header-right {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .homepage-topic-list-secondary {
    padding: 60px 0;
  }

  .homepage-topic-list-secondary__item-header-inner {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }

  .homepage-topic-list-secondary__item-title,
  .homepage-topic-list-secondary__item-arrow {
    grid-column: auto;
  }
  .homepage-topic-list-secondary__item-header-inner {
    padding: 32px 20px;
  }
  .homepage-topic-list-secondary__item-title {
    font-size: 22px;
  }
  .homepage-topic-list-secondary__item-content-inner {
    font-size: 16px;
  }
}
