/* 🌐 Font & Layout */
#grammar-module {
  color: #333;
  line-height: 1.6;
  padding: 10px;
  margin: auto;
}

/* 📘 Grammar Title */

.entry-content h3 {
	margin-top: 0em !important;
}

.grammar-header {
  text-align: center;
  margin-bottom: 10px;
}

.grammar-title {
  font-size: 26px !important;
	justify-content:center;
  font-weight: bold;
  color: #01be01;
}

.grammar-level {
  font-size: 16px;
  margin-top: 4px;
	margin-bottom: 30px;
  color: #555;
}

/* 📚 Explanation */
.grammar-info p {
  margin: 8px 0;
}
.grammar-info strong {
  color: black;
}


.practice-section h3 {
  font-size: 25px;
	font-weight: 500;
  margin-top: 40px !important;

}

/* 🟦 Examples */
.grammar-examples h3 {
  font-size: 25px;
  color: #1565c0;
  margin-top: 40px !important;
}
.example-box {
  background: #e3f2fd;
  border-left: 5px solid #1e88e5;
  padding: 20px 20px;
  border-radius: 8px;
  margin: 15px 0;
}
.example-korean {
  font-weight: bold;
  margin-bottom: 6px;
}

.play-audio {
  background: transparent !important;
  color: white;
  border: none;
  padding: 6px 6px;
  border-radius: 6px;
  margin-left: 8px;
  font-size: 14px;
  cursor: pointer;
}
.play-audio:hover {
  background: #388e3c;
}
.example-translations div {
  margin-bottom: 5px;
}


/* 🎈 Tooltip nhanh không delay */
.tooltip-item {
  position: relative;
  cursor: help;
}

.tooltip-item::after {
  content: attr(data-label);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 99;
}

.tooltip-item:hover::after {
  opacity: 1;
}


.breakdown-item small.part-meaning {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 2px;
  font-style: italic;
}

.part-meaning {
  display: block;
  font-size: 12px;
  color: #444;
  margin-top: 2px;
}

.example-explanation {
  font-size: 15px;
  margin-top: 6px;
  background: #eef6ff;
  padding: 10px 10px;
  border-radius: 4px;
  color: #333;
}

.breakdown-item {
  position: relative;
  display: inline-block;
  background: #fff7c4;
  padding: 3px 6px;
  margin-right: 4px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: normal;
  font-size: 16px;
}

.custom-tooltip {
  display: none;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 120px;
  background: #333;
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  z-index: 100;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  white-space: normal;
  line-height: 1.4;
}

.custom-tooltip.visible {
  display: block;
}

.custom-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.practice-section {
  background: #ffffff !important;
  border-radius: 12px;
  margin: 20px auto;
}

.exercise-card {
	  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	min-height: 300px;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
	max-width: 600px;
	margin:auto;
}

.exercise-card p {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 12px;
}

.exercise-card label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
	font-weight:300;
}

.exercise-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.exercise-result {
  margin-top: 10px;
}

.exercise-result .correct {
   font-weight: 300;
	font-style:italic;
}

.exercise-result .wrong {
  color: #dc3545;
  font-weight: 300;
	font-style:italic;
}

.check-answer {
  color: #fff;
  padding: 10px 16px;
  font-size: 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 12px;
}

.exercise-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.exercise-nav button {
  background-color: transparent;
  color: black;
  padding: 10px 16px;
  border: none;
  font-size: 14px;
	font-weight:300;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.exercise-nav button:hover {
  background-color: #1e7e34;
}

.ordering-question {
  margin: 20px 0;
  padding: 20px;
  background: #fdfdfd;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
}

.instruction {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}

.shuffled-words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #eef6ff;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.user-answer-area {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #fff8e1;
  border: 1px dashed #fbc02d;
  padding: 12px;
  border-radius: 8px;
  min-height: 50px;
}

.word-choice,
.user-answer-area .selected {
  background-color: #ffffff;
  border: 1px solid #007bff;
  color: #007bff;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.2s;
}

.word-choice:hover {
  background-color: #e6f4ff;
	color:black;
}

.word-choice.used {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #e0e0e0;
  border-color: #aaa;
  color: #888;
}

.exercise-progress {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

body .elementor hr {
	display:none}

.text-green {
	color: #e48504}
