/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Design system tokens ───────────────────────────── */
:root {
  --bg:             #0e0b07;
  --bg-card:        #2a1d10;
  --bg-card-inner:  #120e06;
  --amber:          #c8733a;
  --amber-light:    #d98a4e;
  --amber-btn-from: #b8662e;
  --amber-btn-to:   #a0561e;
  --text-primary:   #f3ede6;
  --text-muted:     #9a8878;
  --text-desc:      #c9b9a8;
  --text-faint:     #5e5045;
  --border-card:    #4a3320;
  --white:          #ffffff;
  --yellow:         #ffd303;

  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;

  --radius-card:    10px;
  --radius-btn:     10px;
  --radius-avatar:  50%;

  --page-px: 20px;
}

/* ── Base ───────────────────────────────────────────── */
html, body {
  min-height: 100%;
  background-color: #000;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  background-color: var(--bg);
  padding-bottom: 40px;
}

/* ── Status bar ─────────────────────────────────────── */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.sb-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.sb-icon {
  width: 16px;
  height: 16px;
}

/* ── Hero / Header ──────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px var(--page-px) 24px;
  text-align: center;
}

.avatar-wrap {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--amber) 50%, #7a3d10 100%);
  box-shadow: 0 0 24px rgba(200, 115, 58, 0.35);
  margin-bottom: 18px;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 2px solid var(--bg);
}

.h1 {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 8px;
}

.t2 {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.t3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 22px;
}

.divider {
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber) 20%, var(--amber) 80%, transparent);
  opacity: 0.7;
}

/* ── Categories section ─────────────────────────────── */
.categories {
  padding: 20px var(--page-px) 0;
}

.h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 5px;
  line-height: 1.3;
}

.t4 {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.4;
}

/* ── Category card ──────────────────────────────────── */
.category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 10px;
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: inherit;
  text-align: left;
}

.cat-thumb {
  width: 90px;
  min-width: 90px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  flex-shrink: 0;
}


.cat-info {
  flex: 1;
  padding: 14px 12px 14px 14px;
  min-width: 0;
}

.cat-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 4px;
}

.cat-sub {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.cat-chevron {
  width: 20px;
  height: 20px;
  color: var(--amber);
  flex-shrink: 0;
  margin-right: 14px;
  transition: transform 0.25s ease;
}

.is-open .cat-chevron {
  transform: rotate(0deg);
}

/* ── Course list ────────────────────────────────────── */
.course-list {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.is-open .course-list {
  grid-template-rows: 1fr;
}

.course-list > * {
  overflow: hidden;
}

/* Wrapping div trick for smooth height animation */
.course-list {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease-out;
}

.is-open .course-list {
  max-height: 1000px;
  transition: max-height 0.3s ease-in;
}

.course-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px 13px 16px;
  border-top: 1px solid var(--border-card);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.course-item:active {
  background: rgba(200, 115, 58, 0.06);
}

.course-text {
  flex: 1;
  min-width: 0;
}

.course-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
  line-height: 1.3;
}

.course-desc {
  display: block;
  font-size: 14px;
  color: var(--text-desc);
  line-height: 1.5;
}

.course-arrow {
  width: 18px;
  height: 18px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Mini bio ───────────────────────────────────────── */
.mini-bio {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px var(--page-px) 0;
}

.mini-bio-logo {
  display: block;
  width: 56px;
  height: auto;
  margin-bottom: 6px;
}

.mini-bio-name {
  font-family: 'Roboto Condensed', var(--font-body);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  color: var(--yellow);
  margin-bottom: 14px;
}

.mini-bio p {
  width: 100%;
  font-size: 14px;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 12px;
}

.mini-bio p strong {
  font-weight: 700;
}

.mini-bio-photo {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 28px;
  margin-top: 14px;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px var(--page-px) 0;
  gap: 0;
}

.social-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.social-icons {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.15s;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.social-btn:hover {
  border-color: var(--amber);
}

/* ── WhatsApp button ────────────────────────────────── */
.btn-whatsapp {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  background: linear-gradient(135deg, #c8733a 0%, #a0561e 100%);
  border-radius: var(--radius-btn);
  text-decoration: none;
  color: var(--white);
  margin-bottom: 22px;
  gap: 10px;
  transition: opacity 0.15s;
}

.btn-whatsapp:hover {
  opacity: 0.9;
}

.wa-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--white);
}

.wa-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.wa-chevron {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}

/* ── Footer copy ─────────────────────────────────────── */
.footer-copy {
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.7;
}
