/* ==========================================================================
   Topics browse page — Setup guidelines listing
   Prefix: innerpage-
   ========================================================================== */

.innerpage-topics-page {
  --innerpage-bg: #f8f9fc;
  --innerpage-purple: #280669;
  --innerpage-purple-active: #1d0840;
  --innerpage-text: #1c1a24;
  --innerpage-text-muted: #6c757d;
  --innerpage-line: #e8ebf2;
  --innerpage-tag-bg: #f1f0f7;
  --innerpage-tag-color: #5a6b89;
  --innerpage-sidebar-hover: #f3f4f8;
  --innerpage-card-shadow: 0 8px 28px rgba(22, 12, 48, 0.07);
  --innerpage-nav-radius: 10px;
  --innerpage-card-radius: 12px;
}

.innerpage-topics-page {
  background: var(--innerpage-bg);
}

.innerpage-topics-page .btn-contact {
  border-radius: 999px;
  padding-left: 1.15rem !important;
  padding-right: 1.15rem !important;
}

/* Hero */
.innerpage-topics-page .innerpage-hero {
  min-height: 300px;
}

.innerpage-topics-page .innerpage-hero .hero-content {
  padding: 1.55rem 1rem 2rem;
}

.innerpage-topics-page .innerpage-hero .hero-content h1 {
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.innerpage-topics-page .innerpage-hero .hero-content p {
  max-width: 640px;
  margin-bottom: 1.25rem;
}

.innerpage-topics-page .hero-search {
  background: rgba(12, 2, 38, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(4px);
}

.innerpage-topics-page .hero-search .input-group-text,
.innerpage-topics-page .hero-search .form-control {
  background: transparent;
}

.innerpage-topics-page .hero-search .form-control:focus {
  background: transparent;
  box-shadow: none;
}

/* Breadcrumb */
.innerpage-topics-page .innerpage-breadcrumb-wrap {
  padding: 1.35rem 0 1.35rem;
}

.innerpage-topics-page .innerpage-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.4;
}

.innerpage-topics-page .innerpage-breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: #6f6d7a;
}

.innerpage-topics-page .innerpage-breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: #9a98a6;
}

.innerpage-topics-page .innerpage-breadcrumb a {
  color: #6f6d7a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.innerpage-topics-page .innerpage-breadcrumb a:hover {
  color: var(--innerpage-purple);
}

.innerpage-topics-page .innerpage-breadcrumb li[aria-current="page"] {
  color: var(--innerpage-purple);
  font-weight: 500;
}

/* Main layout */
.innerpage-topics-main {
  padding: 0.25rem 0 3.5rem;
}

/* Sidebar */
.innerpage-topics-nav {
  background: #fff;
  border-radius: var(--innerpage-nav-radius);
  box-shadow: var(--innerpage-card-shadow);
  padding: 1.25rem 1rem 1.15rem;
  height: 100%;
}

.innerpage-topics-nav-title {
  margin: 0 0 1rem;
  font-size: 18px;
  font-weight: 700;
  color: var(--innerpage-text);
  line-height: 1.3;
}

.innerpage-topics-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.innerpage-topics-menu a {
  display: block;
  padding: 0.62rem 0.85rem;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #4a4856;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.innerpage-topics-menu a:hover {
  background: var(--innerpage-sidebar-hover);
  color: var(--innerpage-text);
}

.innerpage-topics-menu a.is-active {
  background: var(--innerpage-purple-active);
  color: #fff;
  font-weight: 600;
}

.innerpage-topics-menu a.is-secondary {
  background: var(--innerpage-sidebar-hover);
  color: #4a4856;
}

/* Topic panels */
.innerpage-topic-panel[hidden] {
  display: none;
}

/* Topic cards */
.innerpage-topic-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.innerpage-topic-card {
  position: relative;
  display: block;
  background: #fff;
  border-radius: var(--innerpage-card-radius);
  box-shadow: var(--innerpage-card-shadow);
  padding: 1.35rem 4rem 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(232, 235, 242, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.innerpage-topic-card:hover {
  border-color: #d5d9e4;
  box-shadow: 0 12px 36px rgba(22, 12, 48, 0.1);
  transform: translateY(-2px);
}

.innerpage-topic-card--accent {
  border-bottom: 3px solid var(--innerpage-purple);
}

.innerpage-topic-card-title {
  margin: 0 0 0.45rem;
  font-size: 20px;
  font-weight: 700;
  color: var(--innerpage-text);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.innerpage-topic-card-desc {
  margin: 0 0 0.85rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--innerpage-text-muted);
  font-weight: 400;
  max-width: 92%;
}

.innerpage-topic-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.innerpage-topic-card-tag {
  display: inline-block;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: var(--innerpage-tag-bg);
  color: var(--innerpage-tag-color);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.innerpage-topic-card-action {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #3f3d4a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}

.innerpage-topic-card:hover .innerpage-topic-card-action {
  background: var(--innerpage-purple);
  transform: translateX(2px);
}

/* Responsive */
@media (max-width: 991.98px) {
  .innerpage-topics-nav {
    margin-bottom: 0.25rem;
  }

  .innerpage-topics-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .innerpage-topics-menu a {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .innerpage-topics-page .innerpage-hero {
    min-height: 260px;
  }

  .innerpage-topics-page .innerpage-breadcrumb-wrap {
    padding: 1rem 0;
  }

  .innerpage-topic-card {
    padding: 1.15rem 3.5rem 1.1rem 1.1rem;
  }

  .innerpage-topic-card-title {
    font-size: 18px;
  }

  .innerpage-topic-card-desc {
    font-size: 14px;
    max-width: 100%;
  }

  .innerpage-topic-card-action {
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }

  .innerpage-topics-menu {
    flex-direction: column;
  }

  .innerpage-topics-menu a {
    min-width: 0;
    text-align: left;
  }
}
