/* ===== Base Layout ===== */
.content-box {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
h1{
color:#bd2626;
}
h2{
color:#bd2626;
}

.qrimg {
  display: block;
  float: right;
  width: 130px;
}
img {
  max-width: 95%;
  padding: 5px;
  text-align: center;
}
.text-content {
    flex: 1;
    min-width: 300px;
}

/* ===== Main Sanskrit Container ===== */
.sanskrit-box,
.worksheet,
.table-wrapper,
.voice-section,
.note-wrapper,
.grammar-box-wrapper {
    max-width: 1100px;
    margin: auto;
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 16px;
}

/* ===== Sanskrit Content ===== */
.sanskrit-box {
    background: #efefef;
    padding: 20px 30px;
    line-height: 1.8;
}

/* ===== Dialogue ===== */
.dialogue-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    gap: 10px;
}

.speaker,
.label {
    min-width: 110px;
    font-weight: 700;
    color: #2d82c7;
    line-height: 1.5;
    font-size: 16px;
}

.dialogue-text,
.text {
    flex: 1;
    color: #111;
    line-height: 1.6;
    text-align: justify;
    font-size: 16px;
}

.dialogue-text strong,
.bold {
    font-weight: 700;
}

.center-text {
    text-align: center;
    margin: 20px 0;
}

.red-text {
    color: #b51616;
    font-weight: 700;
    text-align: center;
    line-height: 1.7;
    margin: 20px 0;
}

.note {
    text-align: center;
    font-style: italic;
    color: #222;
    line-height: 1.7;
    margin: 18px 0;
}

/* ===== Tables ===== */
.table-title {
    display: inline-block;
    background: #8c9f52;
    color: #fff;
    padding: 10px 30px;
    font-weight: 700;
    margin-bottom: 20px;
    border-radius: 4px;
}

.word-table,
.study-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 25px;
}

.word-table th,
.word-table td,
.study-table th,
.study-table td {
    border: 2px dotted #8b8b8b;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.6;
    color: #111;
}

.word-table th {
    background: #d6d2be;
    font-weight: 700;
}

.study-table th {
    background: #dbeaf0;
    font-weight: 700;
    border-color: #8da13b;
}

.word-table td:first-child {
    background: #ece9d9;
    font-weight: 600;
}

/* ===== Notes ===== */
.note-title {
    text-align: center;
    color: #a32020;
    font-weight: 700;
    margin-bottom: 25px;
}

.note-box {
    background: #e8c4c4;
    padding: 50px;
    border-radius: 40px;
    overflow: hidden;
}

.note-text {
    line-height: 1.9;
    color: #111;
    text-align: justify;
}

/* ===== Exercise Section ===== */
.exercise-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.exercise-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #d9c14f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exercise-title {
    background: #94a332;
    color: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 700;
    position: relative;
}

.exercise-title::after {
    content: "";
    position: absolute;
    right: -20px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #94a332;
    border-radius: 50%;
    transform: translateY(-50%);
}

.section-title {
    color: #9d1e1e;
    font-weight: 700;
    margin: 30px 0 20px;
}

.example-text {
    line-height: 1.8;
    color: #111;
    margin-left: 40px;
}

/* ===== Fill Blanks ===== */
.blank {
    width: 120px;
    height: 20px;
    border-bottom: 2px dotted #666;
    display: inline-block;
    margin: auto;
}

.blank-line {
    display: inline-block;
    width: 220px;
    border-bottom: 2px dotted #666;
    margin-left: 10px;
}

.red-answer {
    color: #d13232;
    font-weight: 700;
}

/* ===== Questions ===== */
.question-list {
    margin-left: 40px;
}

.question-item {
    line-height: 1.9;
    margin-bottom: 10px;
    color: #111;
}

/* ===== Exercise Table ===== */
.exercise-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.exercise-table td {
    border: none;
    padding: 12px 10px;
    vertical-align: top;
    background: transparent !important;
}

.exercise-table td:first-child {
    width: 58%;
}

.exercise-table td:last-child {
    width: 42%;
}

/* ===== Grammar ===== */
.grammar-box-title {
    text-align: center;
    color: #2f7fc6;
    font-weight: 700;
    margin-bottom: 15px;
}

.grammar-box {
    background: #dce8df;
    border-radius: 25px;
    padding: 30px;
}

.grammar-box p {
    line-height: 2;
    color: #111;
    text-align: justify;
    margin-bottom: 20px;
}

/* ===== Voice Section ===== */
.voice-title {
    color: #9d1e1e;
    font-weight: 700;
    margin-bottom: 20px;
}

.voice-columns,
.study-columns {
    display: flex;
    gap: 40px;
    justify-content: space-between;
}

.voice-col,
.study-column {
    flex: 1;
}

.voice-col h3,
.study-list-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 15px;
}

.voice-col ul {
    list-style: disc;
    padding-left: 25px;
    margin: 0;
}

.voice-col li,
.study-column ol li {
    line-height: 2;
    color: #111;
}

.voice-note,
.grammar-example-box {
    margin-top: 25px;
    line-height: 1.9;
    text-align: justify;
    color: #111;
}

/* ===== 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-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.study-title {
    background: #8a3aa4;
    color: #fff;
    padding: 10px 25px;
    font-weight: 700;
    border-radius: 0 16px 16px 0;
    margin-left: 10px;
}

.study-question-title,
.study-subheading {
    font-weight: 700;
    margin: 20px 0;
    text-align: center;
}
.qrimg{
    width: 100px;
    height: 100px;
    display: block;
    object-fit: contain;
}
img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}
.reflection-box{
    max-width:1100px;
    margin:auto;
    font-family:'Noto Sans Devanagari', sans-serif;
}

.reflection-header{
    display:flex;
    align-items:center;
    margin-bottom:15px;
}

.reflection-icon{
    width:60px;
    height:60px;
    border-radius:50%;
    object-fit:cover;
}

.reflection-title{
    background:#9a7b2a;
    color:#fff;
    padding:10px 25px;
    font-size:16px;
    font-weight:700;
    border-radius:0 14px 14px 0;
    margin-left:10px;
    position:relative;
}

.reflection-title::after{
    content:"";
    position:absolute;
    right:-35px;
    top:50%;
    width:35px;
    border-bottom:2px dotted #9a7b2a;
    transform:translateY(-50%);
}

.reflection-content{
    background:#f4edd8;
    padding:25px 35px;
    border-bottom:3px dashed #caa64b;
}

.reflection-list{
    margin:0;
    padding-left:30px;
}

.reflection-list li{
    font-size:16px;
    line-height:2;
    color:#111;
    margin-bottom:12px;
    text-align:justify;
}