/* ================================
   DESIGN TOKENS
   ================================ */
:root {
    --accent: #3b82f6;
    --accent-dark: #1d4ed8;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.10), 0 4px 10px rgba(0, 0, 0, 0.06);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.2s ease;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --footer-bg: #1e293b;
    --footer-text: #cbd5e1;
}

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

/* ⭐ IMPROVED BACKGROUND – subtle gradient for a premium feel */
body {
    font-family: var(--font-body);
    color: var(--text);
    background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 30%, #f1f5f9 100%);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Floating shapes – kept as before */
.floating-shapes { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; opacity: 0.05; animation: floatShape 20s infinite ease-in-out; }
.shape-1 { width: 400px; height: 400px; background: #3b82f6; top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: #8b5cf6; bottom: -80px; left: -80px; animation-delay: -7s; }
.shape-3 { width: 200px; height: 200px; background: #10b981; top: 40%; left: 50%; animation-delay: -14s; }
@keyframes floatShape {
    0%,100% { transform: translate(0,0) scale(1); }
    25% { transform: translate(30px,-40px) scale(1.08); }
    50% { transform: translate(-20px,20px) scale(0.94); }
    75% { transform: translate(15px,35px) scale(1.04); }
}

/* NAVBAR – matched exactly to the English page */
.navbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 2rem; background: var(--surface);
    border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow);
}
.logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; color: var(--accent); display: flex; align-items: center; gap: 0.5rem; }
.logo span { color: var(--text); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--text-light); font-weight: 500; font-size: 0.9rem; transition: color var(--transition); padding: 0.4rem 0; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a.active { font-weight: 700; border-bottom: 2px solid var(--accent); }
.btn-cta-small {
    background: var(--accent); color: #fff !important; padding: 0.5rem 1.25rem; border-radius: 50px;
    font-weight: 600 !important; font-size: 0.85rem; transition: all var(--transition); white-space: nowrap; text-decoration: none;
}
.btn-cta-small:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,0.35); }

/* Hide the sidebar toggle button on larger screens (like English page) */
@media (min-width: 769px) {
    .sidebar-toggle-btn {
        display: none !important;
    }
}

/* Mobile menu button – hidden on desktop, visible on mobile */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text); padding: 0.5rem; }
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
}

/* MAIN LAYOUT */
.main-container { display: grid; grid-template-columns: 290px 1fr 210px; min-height: calc(100vh - 72px); position: relative; z-index: 1; }
.content { padding: 2.5rem 2rem; overflow-y: auto; }

/* ⭐ SIDEBAR – GUARANTEED COLOR */
.sidebar {
    background: #213351 !important;
    border-right: 1px solid #e2e8f0 !important;
    padding: 1.5rem 0;
    overflow-y: auto;
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
}
.sidebar-section { padding: 0 0.5rem; margin-bottom: 0.25rem; }
.sidebar-title {
    font-weight: 700;
    color: #ea6060 !important;   /* red heading, forced */
    padding: 0.85rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
    transition: background 0.2s;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif !important;
    font-size: 0.9rem;
    justify-content: space-between;
    margin: 0 0.5rem;
}
.sidebar-title:hover { background: rgba(255,255,255,0.1); }
.sidebar-title .title-content { display: flex; align-items: center; gap: 0.3rem; }
.toggle-icon { transition: transform 0.25s ease; font-size: 0.8rem; color: #64748b; }
.sidebar-section.collapsed .toggle-icon { transform: rotate(-90deg); }
.sidebar-section.collapsed .sidebar-item { display: none; }
.sidebar-item {
    padding: 0.55rem 1rem;
    margin-left: 1.2rem;
    color: #ffffff !important;   /* white links */
    transition: all 0.2s;
    border-left: 3px solid transparent;
    display: block;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif !important;
    cursor: pointer;
}
.sidebar-item:hover,
.sidebar-item.active {
    color: #0760ef !important;   /* bright blue */
    background: #fcfdff;
    border-left-color: #3b82f6 !important;
    padding-left: 1.05rem;
}
.sidebar-badge {
    font-size: 0.58rem;
    background: #dbeafe;
    color: #3b82f6;
    padding: 0.18rem 0.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-left: auto;
    white-space: nowrap;
}
.sidebar-item.active .sidebar-badge { background: #3b82f6; color: #fff; }

/* CONTENT SECTIONS */
.content-section { max-width: 850px; margin: 0 auto; display: none; }
.content-section.active { display: block; }
.section-title { font-size: 2rem; color: var(--text); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-heading); }
.section-intro { background: linear-gradient(135deg, #e0e7ff, #dbeafe); padding: 1.5rem; border-radius: var(--radius); margin-bottom: 2rem; border-left: 4px solid var(--accent); }
.infographic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.infographic-card { padding: 2rem; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); transition: all var(--transition); border-top: 4px solid var(--accent); background: var(--surface); }
.infographic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.infographic-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.infographic-card h4, .infographic-card h3 { color: var(--accent); margin-bottom: 0.5rem; font-family: var(--font-heading); }
.concept-card { background: var(--surface); padding: 2rem; border-radius: var(--radius); margin-bottom: 2rem; box-shadow: var(--shadow); border-left: 4px solid var(--accent); transition: all var(--transition); scroll-margin-top: 90px; }
.concept-card:hover { box-shadow: var(--shadow-lg); }
.concept-card h3 { color: var(--accent); margin-bottom: 1rem; font-family: var(--font-heading); font-size: 1.3rem; }

/* CODE BLOCKS */
.code-block { background: #1e293b; border-radius: var(--radius-sm); margin: 1.5rem 0; border-left: 4px solid var(--accent); overflow: hidden; position: relative; }
.code-block-header { background: #0f172a; color: #94a3b8; font-size: 0.78rem; padding: 0.5rem 1.5rem; display: flex; align-items: center; gap: 0.4rem; font-family: 'Fira Code', monospace; border-bottom: 1px solid #334155; }
.code-block-header i { font-size: 0.65rem; }
.code-block-header i.fa-circle:nth-child(1) { color: #ef4444; }
.code-block-header i.fa-circle:nth-child(2) { color: #f59e0b; }
.code-block-header i.fa-circle:nth-child(3) { color: #22c55e; }
.code-block pre { margin: 0; padding: 1.5rem 1.5rem 1.5rem 3.5rem; overflow-x: auto; font-size: 0.88rem; line-height: 1.7; background: #1e293b; font-family: 'Fira Code', 'Courier New', monospace; }
.copy-btn { position: absolute; top: 0.75rem; right: 0.75rem; background: rgba(255,255,255,0.1); border: none; color: #cbd5e1; width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: all 0.2s; z-index: 5; }
.code-block:hover .copy-btn { opacity: 1; }
.copy-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.copy-btn.copied { background: #22c55e; color: #fff; }
.example-output { background: #f0fdf4; color: #166534; padding: 1.25rem; border-radius: var(--radius-sm); margin-top: 0.5rem; border-left: 3px solid #22c55e; font-family: 'Fira Code', monospace; font-size: 0.88rem; white-space: pre-line; }
.example-interaction { background: #fffbeb; color: #92400e; padding: 1.25rem; border-radius: var(--radius-sm); margin-top: 0.5rem; border-left: 3px solid #f59e0b; font-family: 'Fira Code', monospace; font-size: 0.88rem; white-space: pre-line; }
.info-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.info-table thead tr { background: #e0e7ff; border-bottom: 2px solid var(--accent); }
.info-table th { padding: 0.75rem; text-align: left; border: 1px solid #e2e8f0; color: var(--accent); font-family: var(--font-heading); font-size: 0.9rem; }
.info-table td { padding: 0.7rem 0.75rem; border: 1px solid #e2e8f0; font-size: 0.88rem; }
.info-table tbody tr:nth-child(even) { background: #f8fafc; }
.practice-problem { margin: 1rem 0; }
.practice-problem summary { font-weight: 600; color: var(--accent); cursor: pointer; padding: 0.6rem 1rem; background: #f1f5f9; border-radius: 6px; font-size: 0.9rem; }
.practice-problem summary:hover { background: #e2e8f0; }
.practice-problem .solution { margin-top: 0.8rem; padding: 1rem; background: #f8fafc; border-left: 3px solid var(--accent); border-radius: 4px; }

/* PAGE TRACKER */
.page-tracker { position: sticky; top: 90px; height: fit-content; padding: 1.5rem 1rem; background: var(--surface); border-left: 1px solid #e2e8f0; margin-top: 1.5rem; }
.page-tracker h4 { font-family: var(--font-heading); color: var(--accent); margin-bottom: 0.8rem; font-size: 0.85rem; }
.page-tracker ul { list-style: none; padding: 0; margin: 0; }
.page-tracker li { margin-bottom: 0.3rem; }
.page-tracker a { text-decoration: none; color: var(--text-light); font-size: 0.8rem; transition: color 0.2s; display: block; padding-left: 8px; border-left: 2px solid transparent; }
.page-tracker a.active, .page-tracker a:hover { color: var(--accent); }

/* WHATSAPP & FOOTER */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; background: #25d366; color: #fff; padding: 0.7rem 1.2rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; text-decoration: none; z-index: 200; box-shadow: 0 4px 16px rgba(37,211,102,0.4); display: flex; align-items: center; gap: 0.5rem; transition: all 0.3s; }
.whatsapp-float:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(37,211,102,0.5); }
footer { background: var(--footer-bg); color: var(--footer-text); text-align: center; padding: 2rem; margin-top: 3rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--footer-text); transition: color 0.2s; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }

/* TAB COMPONENT (polished) */
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
}
.tab-btn {
    background: #f1f5f9;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -2px;
}
.tab-btn:hover {
    background: #e2e8f0;
    color: var(--accent);
}
.tab-btn.active {
    background: #ffffff;
    color: var(--accent);
    border-color: #e2e8f0;
    border-bottom-color: #fff;
    font-weight: 700;
}
.tab-panel {
    display: none;
    padding: 1.8rem 0 0 0;
    animation: fadeIn 0.3s ease;
}
.tab-panel.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Timeline & feature cards */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}
.timeline-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #f8fafc;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}
.timeline-marker {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.timeline-content { flex: 1; }

.speed-chart {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
    margin: 1.5rem 0;
}
.speed-item { flex: 1; text-align: center; }
.bar-wrapper { height: 150px; display: flex; align-items: flex-end; justify-content: center; }
.bar {
    width: 50px;
    background: var(--accent);
    border-radius: 6px 6px 0 0;
    transition: height 0.4s;
    min-height: 10px;
}

.highlight-box {
    background: #eef2ff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) { .main-container { grid-template-columns: 220px 1fr; } .page-tracker { display: none; } }
@media (max-width: 768px) {
    .main-container { grid-template-columns: 1fr; }
    .sidebar { position: relative; top: 0; height: auto; border-right: none; border-bottom: 1px solid #e2e8f0; max-height: 380px; background: #213351 !important; }
    .content { padding: 1.5rem 1rem; }
    .section-title { font-size: 1.5rem; }
    .navbar { padding: 0.5rem 1rem; }
    .logo { font-size: 1.1rem; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; width: 100%; background: var(--surface); border-bottom: 2px solid #e2e8f0; padding: 1rem 2rem; gap: 0.75rem; z-index: 99; box-shadow: var(--shadow-lg); }
    .nav-links.show { display: flex; }
}
/* Sidebar collapsed helper */
.main-container.sidebar-collapsed { grid-template-columns: 1fr 210px; }
.main-container.sidebar-collapsed .sidebar { display: none; }

/* ================================
   Python feature cards grid
   ================================ */
.python-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.feature-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-left: 4px solid var(--accent);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feature-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.feature-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ================================
   Comparison Table (Python vs others)
   ================================ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table thead th {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--accent);
}

.comparison-table tbody tr:hover {
  background: #f8fafc;
}

.comparison-table .star-rating {
  letter-spacing: 0.15em;
  font-size: 1rem;
  color: #f59e0b; /* gold stars */
}


/* ================================
   ENHANCED LESSON FORMATTING
   (applies to all Week pages automatically)
   ================================ */

/* ----- Overview / Day Cards Grid ----- */
.course-overview-grid {
  gap: 1.25rem;
}

.overview-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
  border-top: 4px solid var(--accent);
}
.overview-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.overview-card .day-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.overview-card h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0.3rem 0;
  color: var(--text);
}

.overview-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

/* Day‑specific top border colours */
.overview-card.day-1 { border-top-color: #3b82f6; }
.overview-card.day-2 { border-top-color: #8b5cf6; }
.overview-card.day-3 { border-top-color: #f59e0b; }
.overview-card.day-4 { border-top-color: #10b981; }
.overview-card.day-5 { border-top-color: #f43f5e; }
.overview-card.day-6 { border-top-color: #6366f1; }

/* ----- Section Intro (gradient banner) ----- */
.section-intro {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border-left: 5px solid var(--accent);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ----- Concept Cards (main content blocks) ----- */
.concept-card {
  margin-bottom: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-left: 4px solid var(--accent);
  transition: box-shadow 0.2s;
}
.concept-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.concept-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.concept-card h4 {
  font-size: 1.1rem;
  color: var(--accent);
  margin: 1.8rem 0 0.6rem;
}

.concept-card p {
  margin-bottom: 1rem;
  line-height: 1.65;
}

.concept-card ul, .concept-card ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
.concept-card li {
  margin-bottom: 0.4rem;
}

/* Tip / Warning boxes */
.tip-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #92400e;
}
.warning-box {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #991b1b;
}

/* Practice problems (details/summary) */
.practice-problem summary {
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  padding: 0.7rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: background 0.2s;
  font-size: 0.9rem;
}
.practice-problem summary:hover {
  background: #eef2ff;
}
.practice-problem .solution {
  margin-top: 0.8rem;
  padding: 1.2rem;
  background: #f9fafb;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}

/* Info Tables (Git commands, data types) */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.9rem;
}
.info-table thead tr {
  background: #eef2ff;
  border-bottom: 2px solid var(--accent);
}
.info-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-heading);
}
.info-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.info-table tbody tr:hover {
  background: #f8fafc;
}

/* Example outputs */
.example-output,
.example-interaction {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.88rem;
  white-space: pre-line;
}
.example-interaction {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

/* Better spacing for headings and code blocks */
.code-block {
  margin: 1.8rem 0;
}

/* Remove any inline horizontal scroll in code */
pre[class*="language-"] {
  border-radius: 6px;
}

/* Adjust page tracker links */
.page-tracker a {
  font-weight: 500;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
  .concept-card {
    padding: 1.5rem;
  }
  .overview-card {
    padding: 1rem;
  }
}

/* ================================
   WEEKLY OVERVIEW – COMPACT TABLE STYLE
   ================================ */
.course-overview-grid {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.overview-card {
  display: table-row;
  border-bottom: 1px solid #edf2f7;
  transition: background 0.15s;
}

.overview-card:hover {
  background: #f8fafc;
}

.overview-card:last-child {
  border-bottom: none;
}

/* Table cell styling */
.overview-card .day-num,
.overview-card h4,
.overview-card p {
  display: table-cell;
  vertical-align: middle;
  padding: 0.75rem 1.25rem;
}

.overview-card .day-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  width: 80px;
  text-align: center;
}

.overview-card h4 {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
  width: auto;
}

.overview-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

/* Remove old card styles that interfere */
.overview-card {
  box-shadow: none !important;
  border-top: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

/* Keep the header row (if you want to add one, but not necessary) */
.course-overview-grid::before {
  display: none;
}

/* Responsive: switch to normal stacked cards on very small screens */
@media (max-width: 600px) {
  .course-overview-grid {
    display: block;
    background: transparent;
    box-shadow: none;
  }
  .overview-card {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 0.75rem !important;
  }
  .overview-card .day-num,
  .overview-card h4,
  .overview-card p {
    display: block;
    text-align: left;
    padding: 0.15rem 0;
    width: 100%;
  }
  .overview-card p {
    text-align: left;
    white-space: normal;
  }
}

/* Match English page navbar exactly */
.navbar {
  padding: 0.75rem 2rem;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

/* Hide the sidebar toggle button on larger screens (the English page doesn't show it) */
@media (min-width: 769px) {
  .sidebar-toggle-btn {
    display: none !important;
  }
}

/* Keep the mobile menu button hidden on desktop (same as English page) */
.mobile-menu-btn {
  display: none;
}
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
}

/* Ensure the active link underline matches the English page's colour */
.nav-links a.active {
  color: #3b82f6 !important;
  border-bottom: 2px solid #3b82f6 !important;
}

/* Logo consistency */
.logo {
  color: #3b82f6;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
}

/* ========== ENHANCED PAGE TRACKER ========== */
.page-tracker {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 100px;
  transition: all 0.3s ease;
}

.tracker-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tracker-header i {
  font-size: 1.1rem;
  color: var(--primary);
  filter: drop-shadow(0 2px 4px rgba(79, 70, 229, 0.3));
}

.tracker-header h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0;
}

.tracker-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tracker-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tracker-link:hover {
  background: rgba(79, 70, 229, 0.04);
  color: var(--primary);
  padding-left: 1rem;
}

/* Active state (added by JavaScript) */
.tracker-link.active {
  background: rgba(79, 70, 229, 0.07);
  color: var(--primary);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--primary);
}

/* Animated bullet */
.tracker-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.tracker-link.active .tracker-bullet {
  background: var(--primary);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.5);
  width: 9px;
  height: 9px;
}

.tracker-link:hover .tracker-bullet {
  background: var(--primary-light);
}

