/* TỨ PHỦ — Đạo Mẫu knowledge hub */

.dao-hero {
  position: relative;
  overflow: hidden;
}

.dao-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 12% 18%, rgba(196, 154, 89, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 45% at 88% 78%, rgba(116, 43, 50, 0.16), transparent 50%);
  pointer-events: none;
}

/* Phủ concept cards */
.phu-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .phu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .phu-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.phu-card {
  text-align: left;
  border-radius: 0.85rem;
  border: 1px solid rgba(98, 68, 60, 0.35);
  background: rgba(255, 255, 255, 0.45);
  padding: 1rem 1.05rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  color: inherit;
}

.phu-card:hover,
.phu-card:focus-visible {
  border-color: #c49a59;
  box-shadow: 0 8px 24px rgba(51, 36, 31, 0.08);
  outline: none;
}

.phu-card.is-active {
  border-color: #742b32;
  box-shadow: inset 0 0 0 1px rgba(116, 43, 50, 0.35);
}

.phu-card-icon {
  display: inline-flex;
  height: 2.4rem;
  width: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.55rem;
  border: 1px solid rgba(196, 154, 89, 0.45);
  background: rgba(244, 230, 209, 0.7);
  color: #742b32;
}

.phu-detail-panel {
  margin-top: 1rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(98, 68, 60, 0.28);
  background: rgba(255, 255, 255, 0.55);
  padding: 1.1rem 1.2rem;
}

.phu-detail-panel[hidden] {
  display: none !important;
}

/* Timeline */
.dao-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dao-timeline::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(196, 154, 89, 0.55), rgba(116, 43, 50, 0.35));
}

@media (min-width: 1024px) {
  .dao-timeline::before {
    left: 1.1rem;
  }
}

.dao-timeline-item {
  position: relative;
  padding-left: 2.6rem;
}

.dao-timeline-dot {
  position: absolute;
  left: 0.45rem;
  top: 1.15rem;
  height: 0.9rem;
  width: 0.9rem;
  border-radius: 999px;
  border: 2px solid #c49a59;
  background: #f5ebdd;
}

@media (min-width: 1024px) {
  .dao-timeline-dot {
    left: 0.7rem;
  }
}

.dao-timeline-btn {
  width: 100%;
  text-align: left;
  border-radius: 0.85rem;
  border: 1px solid rgba(98, 68, 60, 0.3);
  background: rgba(255, 255, 255, 0.42);
  padding: 1rem 1.1rem;
  transition: border-color 0.15s ease;
  color: inherit;
}

.dao-timeline-btn:hover,
.dao-timeline-btn:focus-visible {
  border-color: #c49a59;
  outline: none;
}

.dao-timeline-btn.is-active {
  border-color: #742b32;
  background: rgba(255, 255, 255, 0.7);
}

.dao-timeline-body {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(51, 36, 31, 0.78);
}

.dao-timeline-body[hidden] {
  display: none !important;
}

/* Learning path */
.learn-path {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .learn-path {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .learn-path {
    grid-template-columns: repeat(3, 1fr);
  }
}

.learn-step {
  border-radius: 0.85rem;
  border: 1px solid rgba(98, 68, 60, 0.55);
  background: rgba(42, 26, 28, 0.88);
  padding: 1rem 1.05rem;
  text-align: left;
  color: inherit;
  transition: border-color 0.15s ease;
}

.learn-step:hover,
.learn-step:focus-visible {
  border-color: rgba(196, 154, 89, 0.65);
  outline: none;
}

.learn-step.is-active {
  border-color: #c49a59;
  box-shadow: inset 0 0 0 1px rgba(196, 154, 89, 0.25);
}

.learn-step-num {
  display: inline-flex;
  height: 1.75rem;
  min-width: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(196, 154, 89, 0.45);
  color: #e4c58c;
  font-size: 0.75rem;
  font-weight: 600;
}

.learn-step-detail {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(98, 68, 60, 0.45);
}

.learn-step-detail[hidden] {
  display: none !important;
}

.learn-badge {
  display: inline-flex;
  margin-top: 0.55rem;
  border-radius: 0.25rem;
  padding: 0.12rem 0.45rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(25, 15, 18, 0.55);
  color: #d5ba99;
}

.learn-badge--ready {
  color: #e4c58c;
  border: 1px solid rgba(196, 154, 89, 0.35);
}

/* FAQ */
.dao-faq {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dao-faq-item {
  border-radius: 0.75rem;
  border: 1px solid rgba(98, 68, 60, 0.3);
  background: rgba(255, 255, 255, 0.42);
  overflow: hidden;
}

.dao-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  padding: 0.95rem 1.05rem;
  color: #33241f;
  font-family: "Noto Serif", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
}

.dao-faq-trigger:hover,
.dao-faq-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.35);
  outline: none;
}

.dao-faq-trigger[aria-expanded="true"] {
  color: #742b32;
}

.dao-faq-icon {
  flex-shrink: 0;
  transition: transform 0.18s ease;
  color: #c49a59;
}

.dao-faq-trigger[aria-expanded="true"] .dao-faq-icon {
  transform: rotate(180deg);
}

.dao-faq-panel {
  padding: 0 1.05rem 1rem;
  color: rgba(51, 36, 31, 0.78);
  font-size: 0.925rem;
  line-height: 1.7;
}

.dao-faq-panel[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .dao-faq-icon,
  .phu-card,
  .learn-step,
  .dao-timeline-btn {
    transition: none !important;
  }
}

/* Value / explore cards */
.value-grid,
.explore-grid,
.source-type-grid-dao {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .value-grid,
  .explore-grid,
  .source-type-grid-dao {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .explore-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .source-type-grid-dao {
    grid-template-columns: repeat(3, 1fr);
  }
}

.council-mini-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .council-mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .council-mini-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
