/* ===== Base Layout ===== */
h1 {
  color: #bd2626;
}

h2 {
  color: #bd2626;
}

.blue-text {
  color: #2b7bb9;
}

.qrimg {
  display: block;
  float: right;
  width: 130px;
}

img {
  max-width: 95%;
  padding: 5px;
  text-align: center;
}

.highlight-box {
  background: #f4d64e;
  padding: 12px 20px;
  display: inline-block;
  font-weight: 600;
}

.example-box {
  display: inline-block;
  border: 2px dotted #4a5aa8;
  border-radius: 15px;
  padding: 10px 20px;
  text-contentflex: 1;
  min-width: 300px;
}

/* ===== Main Sanskrit Container ===== */
.table-wrapper {
  max-width: 1100px;
  margin: auto;
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 16px;
}

/* ===== Sanskrit Content ===== */
/* ===== Dialogue ===== */
.red-text {
  color: #b51616;
  font-weight: 700;
  text-align: center;
  line-height: 1.7;
  margin: 20px 0;
}

/* ===== Tables ===== */
.study-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 25px;
}

.study-table th, .study-table td {
  border: 2px dotted #8b8b8b;
  padding: 12px;
  text-align: center;
  vertical-align: middle;
  line-height: 1.6;
  color: #111;
}

.study-table th {
  background: #dbeaf0;
  font-weight: 700;
  border-color: #8da13b;
}

/* ===== Notes ===== */
/* ===== Exercise Section ===== */
.section-title {
  color: #9d1e1e;
  font-weight: 700;
  margin: 30px 0 20px;
}

/* ===== Fill Blanks ===== */
/* ===== Questions ===== */
.question-list {
  margin-left: 40px;
}

/* ===== Exercise Table ===== */
/* ===== Grammar ===== */
/* ===== Voice Section ===== */
/* ===== Study Box ===== */
.study-main-box {
  margin: auto;
  background: #dfe8c2;
  border-left: 6px dotted #a5a36d;
  border-right: 6px dotted #a5a36d;
}

.study-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.study-title {
  background: #8a3aa4;
  color: #fff;
  padding: 10px 25px;
  font-weight: 700;
  border-radius: 0 16px 16px 0;
  margin-left: 10px;
}

.qrimg {
  width: 100px;
  height: 100px;
  display: block;
  object-fit: contain;
}

img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.pink-text {
  color: #d81b60;
}

.green-text {
  color: #2e7d32;
}

.summary-box {
  border: 3px solid #3f51b5;
  border-radius: 20px;
  padding: 15px 25px;
  text-align: center;
  font-size: 24px;
  margin-top: 20px;
}

.example-box {
  display: inline-block;
  border: 2px dotted #4a5aa8;
  border-radius: 15px;
  padding: 8px 18px;
  font-size: 24px;
  margin: 10px 0;
}

.custom-list {
  padding-left: 30px;
  font-size: 24px;
}

.custom-list li {
  margin-bottom: 18px;
  line-height: 1.8;
}

.summary-note {
  border: 3px solid #3f51b5;
  border-radius: 25px;
  padding: 18px 30px;
  text-align: center;
  font-size: 28px;
  color: #283593;
  display: inline-block;
  line-height: 1.6;
  margin-bottom: 30px;
}

p {
  font-size: 30px;
  line-height: 1.8;
  color: #111;
}

.table-wrapper {
  max-width: 1100px;
  margin: auto;
  font-family: 'Noto Sans Devanagari', sans-serif;
}

.study-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: #fff;
  table-layout: fixed;
}

.study-table th, .study-table td {
  border: 2px solid #9cab5b;
  padding: 14px 12px;
  text-align: center;
  vertical-align: middle;
  font-size: 28px;
  line-height: 1.7;
  color: #111;
}

.study-table th {
  background: #dbe7a3;
  font-weight: 700;
}

.study-table tr:first-child th {
  background: #d8e48f;
  font-size: 34px;
  font-weight: 700;
}

.study-table td:first-child, .study-table th:first-child {
  width: 70px;
  font-weight: 700;
}

.table-heading-box {
  text-align: center;
  margin-bottom: 20px;
}

.heading-label {
  display: inline-block;
  background: #8ea55a;
  color: #fff;
  padding: 10px 30px;
  font-size: 28px;
  font-weight: 700;
}

.exercise-content {
  padding: 20px 40px;
}

.match-columns {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  margin-top: 20px;
}

.match-col {
  flex: 1;
}

.match-col h3 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
  color: #333;
}

.devanagari-list li {
  font-size: 30px;
  line-height: 2;
  margin-bottom: 10px;
}

.underline {
  border-bottom: 2px solid #000;
  padding-bottom: 2px;
}

.answer-line {
  display: inline-block;
  width: 320px;
  border-bottom: 3px dotted #666;
  margin-left: 20px;
  vertical-align: middle;
}

.answer-line.long {
  width: 420px;
}

.write-section {
  margin-top: 20px;
}

.write-heading {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
}

.write-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  font-size: 30px;
}