/* Override Bootstrap primary button background color */
.btn-primary {
    background-color: #AFEB2B !important;
    border-color: #AFEB2B !important;
    color: #000000 !important; /* Optional: ensure readable text */
    border-radius: 6px;
}

/* Override Bootstrap success button background color */
.btn-success {
    background-color: #FA6915 !important;
    border-color: #FA6915 !important;
    color: white !important; /* Optional: ensure readable text */
    border-radius: 6px;
}

/* Override Bootstrap default fonts */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body,
h1, h2, h3, h4, h5, h6,
.btn,
.table,
.section-header,
.item-tile,
.quiz-option,
.score-bar-container,
.score-bar {
    font-family: 'Inter', Arial, Helvetica, sans-serif !important;
}

/* Match text style with Podia */
.navbar a {
  font-size: 20px;
  font-weight: 400 !important;
  letter-spacing: 0em;
  line-height: 1.65;
  text-transform: none;
  color: black;
}
h1 {
font-family: "Inter";
  font-size: 30px;
  font-weight: 400 !important;
  letter-spacing: 0em;
  line-height: 1.25;
  text-transform: none;
  overflow-wrap: anywhere;
  word-break: normal;
}
p {
font-family: "Inter";
  font-size: 18px;    
  font-weight: 400 !important;
  letter-spacing: 0em;
  line-height: 1.75;
  text-transform: none;
}

/* Special orange-underlined link */
.warning-link {
    color: black;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: #FA6915
}


.section-header {
    /* text-align: center; */
    margin-top: 40px;
    margin-bottom: 20px;
}

.section-header > h1.display-4 {
    font-size: 2.5rem;
}

.item-grid {
    display: grid;
    /* For 4 thumbnails per line: */
    /* grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(100% / 4 - 15px)), 1fr)); */
    /* For 3 thumbnails per line: */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(100% / 3 - 15px)), 1fr));
    gap: 20px;
    margin-top: 30px;
}
.item-tile {
    max-width: 520px;
    padding: 0 0 20px 0;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s; 
    color: inherit;
    text-decoration: none;
}
.item-tile img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}
.item-tile:hover {
    border-color: #999;
    text-decoration: none;
    color: inherit;
}

/* Additional styling for progress bar */
.progress {
    height: 20px; 
}

.progress .progress-bar {
    background-color: #AFEB2B;
    color: black;
}

/* Apply Bootstrap table styles to all tables */
table {
    width: auto;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

table th,
table td {
    padding: 0.75rem;
    vertical-align: top;
    border: 1px solid #dee2e6;
}

table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

table tbody + tbody {
    border-top: 2px solid #dee2e6;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

/* code previews */
pre {
    padding: 8px;
}

/* Course box */
.course-box {
  display: flex;
  align-items: top;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #AFEB2B; 
  border: 1px solid #FA6915; 
  border-radius: 0.25rem;
  color: black; 
  font-style: italic;
}
.prompt::before {
  content: '\F484'; /* megaphone */
  font-family: "bootstrap-icons";
  margin-right: 1rem;
  font-size: 1.5rem;
  font-style: normal;
}

/* AI agent prompt box */
.prompt {
  display: flex;
  align-items: top;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #d1ecf1; /* Bootstrap alert-info background color */
  border: 1px solid #bee5eb; /* Bootstrap alert-info border color */
  border-radius: 0.25rem;
  color: #0c5460; /* Bootstrap alert-info text color */
  font-style: italic;
}
.prompt::before {
  content: '\F484'; /* megaphone */
  font-family: "bootstrap-icons";
  margin-right: 1rem;
  font-size: 1.5rem;
  font-style: normal;
}

/* Tip box */
.tip {
  display: flex;
  align-items: top;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #fff9db; /* light yellow */
  border: 1px solid #ffeeba; /* Bootstrap alert-warning border color */
  border-radius: 0.25rem;
  color: #856404; /* Bootstrap alert-warning text color */
  font-style: italic;
}
.tip::before {
  content: '\F46B'; 
  font-family: "bootstrap-icons";
  margin-right: 1rem;
  font-size: 1.5rem;
  font-style: normal;
}

/* Homework box */
.homework {
  display: flex;
  align-items: top;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #aaa; 
  border-radius: 0.25rem;
  background-color: #f8f9fa; /* very light background */
}
.homework::before {
  content: '\F4CA'; 
  margin-right: 1rem;
  font-family: "bootstrap-icons";
  font-size: 1rem;
}

/* Custom styles for unordered lists */
ul {
  list-style-type: "- ";
}
