/* ===================================================================== */
/* ======================= LEARNING PATH ================================ */
/* ===================================================================== */

.path {
  max-width: 1100px;
  margin: 30px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.path span {
  background: #e0edff;
  color: #0b3c6f;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===================================================================== */
/* ======================= QUICK LINKS ================================= */
/* ===================================================================== */

.quick-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ===================================================================== */
/* ======================= BUTTONS ===================================== */
/* ===================================================================== */

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #1e40af;
  text-decoration: none;
}

.btn-outline {
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* ===================================================================== */
/* ======================= HERO ======================================== */
/* ===================================================================== */

.hero {
  background: linear-gradient(180deg, #0b3c6f, #0a2e55);
}

body.dark .hero {
  background: #020617;
}

.hero-inner {
  max-width: 1100px;
  margin: auto;
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================================================== */
/* ======================= SECTIONS ==================================== */
/* ===================================================================== */

.section {
  padding: 70px 20px;
}

.section > h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #0f172a;
}

/* ===================================================================== */
/* ======================= FEATURES ==================================== */
/* ===================================================================== */

.features {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #ffffff;
  padding: 22px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.15);
}

/* ===================================================================== */
/* ======================= TOPIC PAGE LAYOUT ============================ */
/* ===================================================================== */

.topic-layout {
  max-width: 960px;
  margin: 120px auto 100px;
  padding: 0 20px;
}

.topic-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 42px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}

/* Headings */
.topic-card h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  color: #020617;
}

.topic-card h2 {
  font-size: 1.6rem;
  margin: 36px 0 12px;
  color: #1d4ed8;
}

/* Paragraphs */
.topic-card p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 16px;
}

/* Intro paragraph */
.topic-card .intro {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 24px;
}

/* Lists */
.topic-card ul,
.topic-card ol {
  margin-left: 22px;
  margin-bottom: 20px;
}

/* ===================================================================== */
/* ======================= INFO & WARNING BOXES ========================= */
/* ===================================================================== */

.info-box {
  background: #eef2ff;
  border-left: 6px solid #6366f1;
  padding: 16px 20px;
  border-radius: 12px;
  margin: 24px 0;
  font-size: 0.95rem;
}

.warning-box {
  background: #fff7ed;
  border-left: 6px solid #fb923c;
  padding: 16px 20px;
  border-radius: 12px;
  margin: 24px 0;
}

/* ===================================================================== */
/* ======================= CODE BLOCKS ================================= */
/* ===================================================================== */

.code-block pre {
  background: linear-gradient(135deg, #020617, #0f172a);
  color: #e5e7eb;
  padding: 22px;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===================================================================== */
/* ======================= NEXT TOPIC BUTTON ============================ */
/* ===================================================================== */

.next-topic {
  margin-top: 36px;
  text-align: center;
}

.next-topic a {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.next-topic a:hover {
  background: #1e40af;
}

/* ===================================================================== */
/* ======================= INTERMEDIATE BADGE =========================== */
/* ===================================================================== */

.topic-level {
  display: inline-block;
  background: #6366f1;
  color: #ffffff;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 600;
}

/* ===================================================================== */
/* ======================= PROJECTS ==================================== */
/* ===================================================================== */

.project {
  border-left: 4px solid #1a73e8;
  padding-left: 16px;
}

.project h3 {
  color: #1a73e8;
}

.project-title {
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  color: #1a73e8;
  margin: 10px 0;
}

.project-content {
  display: none;
  margin: 10px 0 20px;
}

textarea {
  width: 100%;
  font-family: monospace;
  padding: 10px;
}

pre.code {
  font-size: 0.95rem;
}

details summary {
  cursor: pointer;
  margin: 6px 0;
}

/* ===================================================================== */
/* ======================= FILTER BUTTONS =============================== */
/* ===================================================================== */

.filter-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-buttons button {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 500;
}

.filter-buttons button.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

/* ===================================================================== */
/* ======================= PAGE SPACING ================================= */
/* ===================================================================== */

.page-topics {
  margin-top: 32px;
  margin-bottom: 96px; /* must exceed footer height */
}

.menu-toggle {
  color: #ffffff;
  font-size: 1.8rem;
}
