/* Custom styles for Python Developer Course */

/* Color variables */
:root {
  --primary-color: #3776ab;
  --secondary-color: #ffd343;
  --accent-color: #306998;
  --background-color: #f8f9fa;
  --text-color: #333;
  --code-bg: #f4f4f4;
  --border-color: #ddd;
}

/* Section links styling */
.section-link {
  display: block;
  padding: 0.5rem 2rem; /* Minimal top/bottom padding, more left/right padding */
    margin: 1rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.section-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(55, 118, 171, 0.3);
  text-decoration: none;
  color: white;
}

.section-link a {
  color: #fff8dc; /* Cream color specifically for links */
  text-decoration: underline; /* Optional: to emphasize links */
}

/* Code blocks
.sourceCode {
  background-color: var(--code-bg);
  border-left: 4px solid var(--primary-color);
  padding: 0.0rem;
  margin: 0rem 0;
  border-radius: 4px;
} */


/* Callout boxes */
.callout {
  padding: 1rem;
  margin: 1rem 0;
  border-left: 4px solid var(--primary-color);
  background-color: var(--background-color);
  border-radius: 4px;
}

.callout-tip {
  border-left-color: #28a745;
  background-color: #f8fff8;
}

.callout-warning {
  border-left-color: #ffc107;
  background-color: #fffdf5;
}

.callout-important {
  border-left-color: #dc3545;
  background-color: #fff8f8;
}

/* Navigation improvements */
.navbar-brand {
  font-weight: bold;
  color: var(--primary-color) !important;
}

/* Footer styling */
.page-footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .section-link {
    padding: 1rem;
    margin: 0.5rem 0;
  }
}

/* Table styling */
table {
  border-collapse: collapse;
  margin: 1rem 0;
}

table th,
table td {
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  text-align: left;
}

table th {
  background-color: var(--primary-color);
  color: white;
}

/* Lesson navigation */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  padding: 1rem;
  background-color: var(--background-color);
  border-radius: 8px;
}

.lesson-nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.lesson-nav a:hover {
  text-decoration: underline;
}

/* Exercise boxes */
.exercise {
  background-color: #e8f4f8;
  border: 1px solid var(--primary-color);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
}

.exercise h3 {
  color: var(--primary-color);
  margin-top: 0;
  border: 0;
}

/* Mermaid diagram styling */
.mermaid {
  text-align: center;
  margin: 1rem 0;
}
