/* ==========================================================
   TIKNO LECTURER WEBSITE — Global Stylesheet
   Dark & Modern Theme · Gold + Cyan Accent
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS Variables ─── */
:root {
  --bg:          #07070f;
  --bg-2:        #0b0b1a;
  --bg-card:     #0f0f22;
  --bg-hover:    #141430;
  --gold:        #f0c040;
  --gold-light:  #fdd968;
  --gold-dim:    rgba(240, 192, 64, 0.12);
  --gold-dim2:   rgba(240, 192, 64, 0.06);
  --cyan:        #00d4ff;
  --cyan-dim:    rgba(0, 212, 255, 0.10);
  --purple:      #a78bfa;
  --purple-dim:  rgba(167, 139, 250, 0.12);
  --text:        #eeeefc;
  --text-2:      #8888a8;
  --text-3:      #44446a;
  --border:      rgba(255, 255, 255, 0.07);
  --border-gold: rgba(240, 192, 64, 0.25);
  --shadow:      0 20px 60px rgba(0, 0, 0, 0.6);
  --glow-gold:   0 0 24px rgba(240, 192, 64, 0.35);
  --glow-cyan:   0 0 24px rgba(0, 212, 255, 0.35);
  --r:           14px;
  --r-sm:        8px;
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--text-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ─── Custom Cursor ─── */
body { cursor: none; }

#cursor-dot {
  position: fixed; z-index: 9999; pointer-events: none;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--gold), 0 0 18px rgba(240,192,64,0.5);
  transition: transform 0.08s;
  will-change: left, top;
}
#cursor-ring {
  position: fixed; z-index: 9998; pointer-events: none;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(240, 192, 64, 0.55);
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: width 0.22s var(--ease), height 0.22s var(--ease),
              border-color 0.22s, box-shadow 0.22s, opacity 0.22s;
}
body.cursor-hover #cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}
body.cursor-click #cursor-dot {
  transform: translate(-50%, -50%) scale(1.9);
}
@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ─── Navigation ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 3.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(7, 7, 15, 0.82);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.55); }

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--text-2); font-size: 0.875rem; font-weight: 500;
  letter-spacing: 0.02em; position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-links .btn-nav {
  padding: 0.42rem 1.2rem;
  border: 1px solid rgba(240, 192, 64, 0.4); border-radius: 100px;
  color: var(--gold); font-size: 0.83rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav-links .btn-nav:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.nav-links .btn-nav::after { display: none; }

/* ─── Hero Section ─── */
#hero {
  position: relative; height: 100vh; min-height: 680px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none; z-index: 1;
}
#hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.75;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem;
  max-width: 720px;
  animation: heroFadeIn 1s var(--ease) both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-badge {
  display: inline-block;
  padding: 0.32rem 1rem;
  border: 1px solid var(--border-gold); border-radius: 100px;
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); background: var(--gold-dim2);
  margin-bottom: 1.6rem;
}
.photo-placeholder {
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--bg-card);
  border: 2.5px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 2.5px transparent, inset 0 0 0 2.5px var(--bg-card);
  outline: 2.5px solid transparent;
  position: relative;
  margin: 0 auto 1.6rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.photo-placeholder::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--cyan) 50%, var(--purple) 100%);
  z-index: -1;
}
.photo-placeholder-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(135deg, #141430, #1a1a3a);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--gold);
  letter-spacing: 0.05em;
}

/* If real photo is available */
.profile-photo {
  width: 128px; height: 128px; border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid transparent;
  position: relative; margin: 0 auto 1.6rem; display: block;
  box-shadow: 0 0 0 2.5px var(--gold), 0 0 30px rgba(240,192,64,0.2);
}

h1.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 700; line-height: 1.18; margin-bottom: 0.55rem;
  background: linear-gradient(135deg, #ffffff 30%, var(--gold-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title {
  font-size: 0.98rem; color: var(--text-2); margin-bottom: 0.3rem;
  font-weight: 400; letter-spacing: 0.02em;
}
.hero-institution {
  font-size: 0.85rem; color: rgba(240,192,64,0.85);
  margin-bottom: 2rem;
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
}
.research-tags {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  justify-content: center; margin-bottom: 2.2rem;
}
.tag {
  padding: 0.28rem 0.8rem; border-radius: 100px;
  font-size: 0.76rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.tag:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim2); }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  padding: 0.72rem 1.9rem;
  background: linear-gradient(135deg, var(--gold) 0%, #e09010 100%);
  color: #0a0a0f; font-weight: 700; font-size: 0.89rem;
  border-radius: 100px; letter-spacing: 0.02em;
  transition: box-shadow 0.2s, transform 0.2s;
}
.btn-primary:hover { box-shadow: var(--glow-gold); transform: translateY(-2px); }

.btn-secondary {
  padding: 0.72rem 1.9rem;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 100px;
  color: var(--text-2); font-size: 0.89rem; font-weight: 500;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-secondary:hover { border-color: var(--text-2); color: var(--text); transform: translateY(-2px); }

.scroll-hint {
  position: absolute; bottom: 2.2rem; left: 50%; z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  color: var(--text-3); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  animation: scBounce 2.4s ease-in-out infinite;
}
.scroll-hint svg { width: 20px; height: 20px; stroke: var(--text-3); }
@keyframes scBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ─── Section Shared ─── */
section { position: relative; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  display: inline-block;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.55rem, 3vw, 2.35rem); font-weight: 700; line-height: 1.2;
}
.section-title span {
  background: linear-gradient(135deg, var(--gold), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-divider {
  width: 56px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  margin: 1rem auto 0;
}

/* ─── About Section ─── */
#about {
  padding: 6rem 3.5rem;
  background: var(--bg-2);
}
#about::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-gold) 50%, transparent 100%);
}
.about-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem;
}
.about-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.about-card:hover {
  border-color: var(--border-gold); transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(240, 192, 64, 0.07);
}
.about-card.full-width { grid-column: 1 / -1; }
.card-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--gold-dim); border: 1px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; font-size: 1.25rem;
}
.card-title { font-family: 'Playfair Display', serif; font-size: 1.12rem; font-weight: 600; margin-bottom: 1rem; }
.about-list { display: flex; flex-direction: column; gap: 0.6rem; }
.about-list li {
  display: flex; gap: 0.65rem; align-items: flex-start;
  color: var(--text-2); font-size: 0.885rem; line-height: 1.55;
}
.about-list li::before { content: '▸'; color: var(--gold); flex-shrink: 0; margin-top: 0.15rem; font-size: 0.7rem; }
.cert-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: var(--gold-dim); border: 1px solid var(--border-gold);
  border-radius: var(--r-sm); font-size: 0.88rem; color: var(--gold); font-weight: 600;
  margin-top: 0.5rem;
}

/* ─── Courses Section ─── */
#courses { padding: 6rem 3.5rem; background: var(--bg); }
.courses-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem;
}
.course-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 2.1rem; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
  will-change: transform; transform-style: preserve-3d;
}
.course-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--r) var(--r) 0 0;
  background: linear-gradient(90deg, var(--c1, #f0c040), var(--c2, #e0a020));
}
.card-accent {
  position: absolute; bottom: -50px; right: -50px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, var(--c1-dim, rgba(240,192,64,0.1)) 0%, transparent 70%);
  pointer-events: none;
}
.course-card:hover { transform: translateY(-6px); box-shadow: 0 20px 55px rgba(0,0,0,0.5); }
.course-code {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: var(--r-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--c1, #f0c040); background: var(--c1-dim, rgba(240,192,64,0.1));
  border: 1px solid rgba(255,255,255,0.08); margin-bottom: 1.2rem;
  box-shadow: 0 0 18px var(--c1-shadow, rgba(240,192,64,0.25));
}
.course-name {
  font-family: 'Playfair Display', serif; font-size: 1.08rem; font-weight: 600;
  line-height: 1.35; margin-bottom: 0.75rem; flex: 1;
}
.course-desc {
  color: var(--text-2); font-size: 0.86rem; line-height: 1.65;
  margin-bottom: 1.4rem; flex: 2;
}
.course-meta { display: flex; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 0.3rem; font-size: 0.76rem; color: var(--text-3); }
.meta-item svg { width: 11px; height: 11px; flex-shrink: 0; }
.course-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.62rem 1.1rem; border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 0.86rem; font-weight: 500; color: var(--c1, #f0c040);
  transition: background 0.2s, border-color 0.2s; margin-top: auto;
}
.course-link:hover { background: var(--c1-dim, rgba(240,192,64,0.1)); border-color: var(--c1, #f0c040); }
.course-link svg { width: 15px; height: 15px; stroke: currentColor; transition: transform 0.2s; flex-shrink: 0; }
.course-link:hover svg { transform: translateX(4px); }

/* Course color variants */
.course-card.pak  { --c1:#f0c040; --c2:#e0a020; --c1-dim:rgba(240,192,64,0.10); --c1-shadow:rgba(240,192,64,0.28); }
.course-card.pw   { --c1:#00d4ff; --c2:#0088ff; --c1-dim:rgba(0,212,255,0.09);  --c1-shadow:rgba(0,212,255,0.28); }
.course-card.psdp { --c1:#a78bfa; --c2:#7c3aed; --c1-dim:rgba(167,139,250,0.10); --c1-shadow:rgba(167,139,250,0.28); }

/* ─── Academic Profiles Section ─── */
#profiles {
  padding: 5rem 3.5rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.profiles-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem;
}
.profile-link-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 1.5rem 1rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.65rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.profile-link-card:hover {
  border-color: var(--gold); transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(240, 192, 64, 0.08);
}
.profile-link-card .icon {
  font-size: 1.7rem; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-dim); border-radius: var(--r-sm);
}
.profile-link-card span { font-size: 0.83rem; color: var(--text); font-weight: 600; }
.profile-link-card small { font-size: 0.72rem; color: var(--text-3); line-height: 1.3; }

/* ─── Footer ─── */
footer {
  padding: 2.2rem 3.5rem;
  background: var(--bg); border-top: 1px solid var(--border);
  text-align: center;
}
footer p { color: var(--text-3); font-size: 0.8rem; line-height: 1.6; }
footer span { color: var(--gold); }

/* ─── Scroll Reveal ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Course Page Hero ─── */
.course-page body { cursor: none; }
.course-page-hero {
  padding: 8rem 3.5rem 4rem;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.course-page-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cp, #f0c040), transparent);
}
.course-page-hero .bg-glow {
  position: absolute; top: -30px; right: -80px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, var(--cp-dim, rgba(240,192,64,0.08)) 0%, transparent 65%);
  pointer-events: none;
}
.hero-back {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--text-2); font-size: 0.84rem; margin-bottom: 2rem;
  transition: color 0.2s;
}
.hero-back:hover { color: var(--text); }
.hero-back svg { width: 15px; height: 15px; flex-shrink: 0; }
.course-hero-badge {
  display: inline-block;
  padding: 0.28rem 0.9rem; border-radius: 100px;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; color: var(--cp, #f0c040); background: var(--cp-dim, rgba(240,192,64,0.1));
  border: 1px solid rgba(255,255,255,0.1); margin-bottom: 0.85rem;
}
.course-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.75rem, 4vw, 2.9rem); font-weight: 700; line-height: 1.15;
  max-width: 700px; margin-bottom: 1rem;
}
.course-hero-desc {
  color: var(--text-2); font-size: 0.97rem; max-width: 620px; line-height: 1.75;
  margin-bottom: 2.2rem;
}
.course-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-value {
  font-size: 1.45rem; font-weight: 700; color: var(--cp, #f0c040);
  font-family: 'Playfair Display', serif;
}
.stat-label { font-size: 0.75rem; color: var(--text-3); margin-top: 0.15rem; }

/* ─── RPS Section ─── */
.rps-container { max-width: 1080px; margin: 0 auto; padding: 4rem 3.5rem; }
.rps-intro { margin-bottom: 2.5rem; }
.rps-section-title {
  font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem;
}
.rps-desc { color: var(--text-2); font-size: 0.92rem; line-height: 1.65; }

.rps-part {
  margin-bottom: 0.5rem;
}
.rps-part-header {
  padding: 0.75rem 1.4rem;
  background: linear-gradient(90deg, var(--cp-dim, rgba(240,192,64,0.08)), transparent);
  border-left: 3px solid var(--cp, #f0c040);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin: 2.2rem 0 0;
}
.rps-part-header h3 {
  font-size: 0.78rem; font-weight: 700; color: var(--cp, #f0c040);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.rps-part-header p { font-size: 0.78rem; color: var(--text-3); margin-top: 0.2rem; }

.rps-table-wrapper {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; margin-top: 0.5rem; overflow-x: auto;
}
.rps-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.rps-table th {
  padding: 0.85rem 1.2rem;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--text-3); text-align: left; white-space: nowrap;
}
.rps-table td {
  padding: 1.05rem 1.2rem; border-bottom: 1px solid var(--border);
  vertical-align: top; font-size: 0.875rem;
}
.rps-table tr:last-child td { border-bottom: none; }
.rps-table tr:hover td { background: var(--bg-hover); }
.rps-table tr.exam-row td { background: linear-gradient(90deg, var(--cp-dim, rgba(240,192,64,0.06)), transparent); }
.rps-table tr.exam-row td:first-child .pmnum { background: var(--cp-dim); border-color: var(--cp); color: var(--cp); font-weight: 700; }

.pmnum {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--border);
  font-size: 0.78rem; font-weight: 600; color: var(--text-2); flex-shrink: 0;
}
.col-no { width: 56px; }
.col-topic { min-width: 220px; }
.col-tujuan { min-width: 200px; max-width: 280px; }
.col-action { width: 180px; white-space: nowrap; }

.topic-title { font-weight: 500; color: var(--text); margin-bottom: 0.22rem; line-height: 1.4; }
.topic-sub { font-size: 0.78rem; color: var(--text-3); line-height: 1.45; }
.tujuan-text { font-size: 0.83rem; color: var(--text-2); line-height: 1.5; }

.btn-table {
  display: inline-flex; align-items: center; gap: 0.32rem;
  padding: 0.28rem 0.7rem; border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 0.73rem; font-weight: 500; color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s; white-space: nowrap;
}
.btn-table svg { width: 11px; height: 11px; flex-shrink: 0; }
.btn-table.materi:hover { border-color: var(--cp, #f0c040); color: var(--cp, #f0c040); background: var(--cp-dim, rgba(240,192,64,0.08)); }
.btn-table.tugas { border-color: rgba(167,139,250,0.3); }
.btn-table.tugas:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-dim); }
.btn-table.nilai { border-color: rgba(34,197,94,0.3); color: #22c55e; }
.btn-table.nilai:hover { border-color: #22c55e; color: #22c55e; background: rgba(34,197,94,0.08); }

/* Course page color variants */
.pak-page  { --cp:#f0c040; --cp-dim:rgba(240,192,64,0.09); }
.pw-page   { --cp:#00d4ff; --cp-dim:rgba(0,212,255,0.07); }
.psdp-page { --cp:#a78bfa; --cp-dim:rgba(167,139,250,0.09); }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .courses-grid { grid-template-columns: 1fr; max-width: 480px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card.full-width { grid-column: 1; }
  .profiles-grid { grid-template-columns: repeat(3, 1fr); }
  #about, #courses { padding: 4rem 1.5rem; }
  #profiles { padding: 3.5rem 1.5rem; }
  .course-page-hero { padding: 6rem 1.5rem 3rem; }
  .rps-container { padding: 3rem 1.5rem; }
}
@media (max-width: 600px) {
  .hero-content { padding: 1rem; }
  h1.hero-name { font-size: 1.75rem; }
  .profiles-grid { grid-template-columns: repeat(2, 1fr); }
  .course-stats { gap: 1.5rem; }
  .courses-grid { max-width: 100%; }
}
