/* === Global Resets === */
body {
  margin: 0;
  padding: 20px;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === Header Section === */
.header {
  margin-bottom: 40px;
}

.title {
  font-size: 2.5rem;
  font-weight: bold;
}

.subtitle {
  font-size: 1.1rem;
  color: #666;
}

/* === Language Toggle === */
.lang-toggle {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.lang-toggle button {
  background-color: transparent;
  border: 1px solid #007bff;
  color: #007bff;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.lang-toggle button:hover {
  background-color: #007bff;
  color: white;
}

/* === Lesson Grid === */
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.lesson-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px 15px;
  text-align: center;
  font-size: 1.1rem;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.lesson-card:hover {
  background-color:#f0f8ff;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* === Footer === */
footer {
  margin-top: 60px;
  font-size: 0.9rem;
  color: #888;
}

/* === Progress Bar === */
#progress-bar {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  margin-bottom: 20px;
}

#progress-fill {
  height: 100%;
  background-color: #007bff;
  border-radius: 5px;
  width: 0%;
  transition: width 0.4s ease-in-out;
}

.lesson-card.disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* === Pre/Post Test Container === */
.container {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* === Quiz Form Spacing === */
form#quizForm {
  margin-top: 20px;
}

form#quizForm label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: #333;
}

form#quizForm input[type="radio"] {
  margin-right: 8px;
}

form#quizForm div.mb-4 {
  margin-bottom: 24px;
  text-align: left;
}

/* === Buttons === */
button[type="submit"] {
  padding: 10px 24px;
  font-size: 1rem;
  border-radius: 8px;
}

/* === Quiz Result Styling === */
#result {
  font-size: 1.25rem;
  padding: 16px;
  border-radius: 10px;
  font-weight: 500;
}

#result .text-success {
  color: #28a745;
}

#result .text-danger {
  color: #dc3545;
}

/* === Responsive Text === */
@media screen and (max-width: 600px) {
  h2 {
    font-size: 1.5rem;
  }

  button[type="submit"] {
    width: 100%;
  }
}

/* === Global Code Block Styling === */
pre {
  background-color: #f5f5f5;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  font-size: 0.95em;
  line-height: 1.5;
  text-align: left;
  margin: 2em 0;
  border: 1px solid #ddd;
}

code {
  font-family: 'Courier New', Courier, monospace;
  color: #333;
  white-space: pre-wrap;
  display: block;
}

/* === Task Content Section Formatting === */
.task-content {
  text-align: left;
  padding: 20px;
}

/* Keep key headings centered */
.task-content h1,
.task-content h2,
.task-content h3.title,
.task-content p.subtitle {
  text-align: center;
}

/* Step formatting using <p class="step"> */
.task-content p.step {
  padding-left: 1.2em;
  text-indent: -1.2em;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Section spacing */
.task-content .section {
  margin-bottom: 2em;
}

.task-content h3 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.glossary-term-ref {
  position: relative;
  cursor: help;
  border-bottom: 1px dashed #007bff;
}

/* .glossary-term-ref::after {
  content: attr(data-definition);
  position: absolute;
  bottom: 125%;
  left: 0;
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.glossary-term-ref:hover::after {
  opacity: 1;
} */

a.glossary-term-ref {
  color: #8e5757;          /* gray color */
  text-decoration: none;
  border-bottom: 1px dotted #aaa; /* subtle indicator it's interactive */
  cursor: help;
}

a.glossary-term-ref:hover {
  color: #333;          /* darker gray on hover */
  border-bottom-color: #666;
}

/* Login card padding and spacing */
.login-card {
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  background-color: #fff;
}


.main_title {
  margin-top: 2rem;
}


.hover {
  transition: transform 0.4s ease-in-out;
  /* base scale */
  transform: scale(1);
}
.hover:hover {
  /* width: 200%;
  max-width: 800px;
  margin: 0 auto;
  display: block;
  transition: all 0.3s ease-in-out; */
  transform: scale(1.5) translate(10%, 5%);
}


iframe {
  /* margin-top: 2rem; */
  /* margin-bottom: 1rem; */
  /* padding: 1rem; */
  /* border-radius: 2rem; */
}