/**
 * Design Week Baku – Terms Page Styles
 */

.terms-hero {
  padding: 3.5rem 0 2rem;
}

.terms-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 1.8rem;
  align-items: stretch;
}

.hero-eyebrow {
  margin-top: 0.7rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
}

.hero-lead {
  margin-top: 0.9rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.78);
  max-width: 56ch;
}

.hero-meta-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.82rem;
}

.hero-meta-chip {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.96);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  font-weight: 600;
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-cyan);
}
.hero-meta-dot.orange { background: var(--brand-yellow); }
.hero-meta-dot.lime { background: var(--brand-lime); }

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.hero-note {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.68);
  max-width: 62ch;
}

/* Right summary card */
.hero-summary-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: flex-end;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.25);
  min-height: 280px;
}

.hero-summary-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/image1.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  transform: scale(1.05);
}

.hero-summary-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(247, 170, 42, 0.35), transparent 55%),
    linear-gradient(120deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.hero-summary-content {
  position: relative;
  z-index: 2;
  padding: 1.35rem 1.35rem 1.45rem;
  color: #E5E7EB;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.hero-summary-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(226, 232, 240, 0.85);
}

.hero-summary-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  color: #fff;
}

.hero-summary-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
}

.hero-summary-list {
  margin-top: 0.2rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.hero-summary-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-summary-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand-lime);
  box-shadow: 0 0 0 2px rgba(153, 204, 51, 0.25);
  flex-shrink: 0;
}

/* Terms layout */
.terms-section {
  padding: 1rem 0 4rem;
}

.terms-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.55fr);
  gap: 1.8rem;
  align-items: start;
  padding-top: 0.4rem;
}

.side-card, .term-block {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

/* Side / TOC */
.side-card {
  position: sticky;
  top: calc(var(--header-height) + 1.2rem);
  padding: 1.1rem 1.1rem 1.2rem;
  font-size: 0.88rem;
}

.side-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.side-sub {
  font-size: 0.84rem;
  color: rgba(0, 0, 0, 0.68);
  margin-bottom: 0.8rem;
  line-height: 1.55;
}

.side-list {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.side-link {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: rgba(238, 242, 246, 0.65);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.side-link span { font-size: 0.84rem; opacity: 0.85; }
.side-link-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(24, 64, 133, 0.32);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.side-link:hover { background: rgba(24, 64, 133, 0.06); }
.side-link.active {
  background: #FFFFFF;
  border-color: rgba(24, 64, 133, 0.22);
  box-shadow: 0 0 0 2px rgba(24, 64, 133, 0.08);
  transform: translateX(4px);
}
.side-link.active span { opacity: 1; font-weight: 600; }
.side-link.active .side-link-dot {
  background: var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(24, 64, 133, 0.10);
}

.side-footer { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.side-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(24, 64, 133, 0.05);
  border: 1px dashed rgba(24, 64, 133, 0.18);
}

/* Terms content blocks */
.terms-content { display: grid; gap: 1.1rem; font-size: 0.95rem; }

.term-block {
  padding: 1.2rem 1.25rem 1.3rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
}

.term-bg-stripe {
  position: absolute;
  inset: -40px -40px auto auto;
  height: 60px;
  background: linear-gradient(120deg,
    rgba(247, 170, 42, 0.18),
    rgba(0, 170, 205, 0.14),
    rgba(153, 204, 51, 0.16)
  );
  opacity: 0.55;
  transform: rotate(-6deg);
  pointer-events: none;
}

.term-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.term-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.term-index {
  font-size: 0.82rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(24, 64, 133, 0.06);
  color: var(--brand-blue);
  border: 1px solid rgba(24, 64, 133, 0.12);
  font-weight: 700;
}

.term-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(238, 242, 246, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.term-body {
  margin-top: 0.3rem;
  display: grid;
  gap: 0.45rem;
  color: rgba(0, 0, 0, 0.88);
}
.term-body p { line-height: 1.6; }
.term-list {
  margin-top: 0.25rem;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.28rem;
}
.term-list li { line-height: 1.55; }
.term-note {
  margin-top: 0.45rem;
  font-size: 0.86rem;
  color: rgba(0, 0, 0, 0.68);
}

.term-block.active-section {
  border-color: rgba(24, 64, 133, 0.22);
  box-shadow: 0 18px 36px rgba(24, 64, 133, 0.12);
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  transform: translateY(-2px);
}

/* Accordion */
.accordion { margin-top: 0.25rem; }

.accordion-toggle {
  width: 100%;
  border-radius: 14px;
  padding: 0.55rem 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  background: rgba(238, 242, 246, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}
.accordion-toggle:hover { background: rgba(24, 64, 133, 0.06); }

.accordion-toggle span:first-child { font-weight: 700; }
.accordion-toggle-icon { font-size: 1.05rem; transition: transform 0.25s ease; }
.accordion-toggle.open .accordion-toggle-icon { transform: rotate(90deg); }

.accordion-panel {
  margin-top: 0.45rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease-out;
}
.accordion-panel-inner {
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  display: grid;
  gap: 0.35rem;
}

/* Responsive */
@media (max-width: 900px) {
  .terms-hero-inner { grid-template-columns: 1fr; }
  .hero-summary-card { min-height: 240px; }
  .terms-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
