.login_register_menu {
  display: flex !important;
  align-items: center !important;
}

.login_register_menu > a {
  display: flex !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 100%;
}

.login_link{
  padding-right:5px !important
}

.register_link{
  padding-left:5px !important
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    /* width: 90px; */
    height: 30px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.tag:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.tag.selected {
    /* box-shadow: 0 0 0 3px rgba(0,0,0,0.2); */
    background-color: #eb595e;
    transform: scale(1.05);
    opacity: 1;
}

/* Color Variants */
.tag-blue {
  background: #00d4ff;
}

.tag-pink {
  background: #ff3cb8;
}

.tag-green {
  background: #ccff00;
  color: #333;
}

.tag-orange {
  background: #FF6B00;
}

.tag-purple {
  background: #9b4cff;
}

.tag-blue2 {
  background: #3366ff;
}

hr {
  border: none;
  border-bottom: 1px solid #ddd;
  margin: 15px 0;
}

@media (min-width: 922px) {
    body.page-template-teacher-template .ast-container,body.page-template-student-template .ast-container {
        max-width: 100% !important;
    }

    .student-line { 
      width: calc(93% - 140px) !important;;  
    }
}

@media (max-width: 500px) {
    .teacher-images,
    .teacher-images img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }
}

.modal .btn-close {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23000' class='bi bi-x' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-size: 2rem;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #0000;
    opacity: 1; /* make it fully visible */
}


@media print {
    /* Force browser to print background colors */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Ensure buttons keep colors */
    .btn,
    .btn-outline,
    .btn-primary {
        background-color: #1394C7 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide modal completely in print */
    #downloadPrintModalm,#downloadPrintButton {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}


/* ===========================================
   TORAHMATH TEACHER TEMPLATE EXTENSIONS
   =========================================== */


.teacher-wrapper {
    background: #fdfdfd;
    border-radius: 10px;
    padding: 40px;
    margin: 40px auto;
    width: 100%;
    max-width: 93% !important;

    /* Drop shadow (Figma: X0 Y4 Blur10 Spread2 Opacity 9%) */
    box-shadow: 0px 4px 10px 2px rgba(0,0,0,0.09);
}

.teacher-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.teacher-images img {
    width: 100%;
    max-width: 361px;
    height: 336px;
    object-fit: cover;
    border-radius: 10px;
}

.teacher-final-answer {
    font-weight: 700;
    color: #1A191F;
    margin-top: 15px;
}

.teacher-heading {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 25px; /* Matches 24.83px */
    line-height: 100%;
    color: #1A191F;
    margin-bottom: 20px;
    display: block;
}

.teacher-question {  
    font-family: 'Open Sans', sans-serif;    
    font-weight: 700;    
    font-size: 20.3px;
    line-height: 100%;    
    color: #F12711;    
    line-height: 32px;    
}

.teacher-question-text {  
    font-family: 'Open Sans', sans-serif;    
    font-weight: 700;    
    font-size: 20.3px;
    line-height: 100%;    
    color: #1A191F;    
    line-height: 32px;    
}

.teacher-download-button{
  border-radius: 62px;
  padding: 9.66px 31.41px 9.66px 31.41px;  
}

.teacher-download-button-text{
    font-family: 'Roboto';    
    font-weight: 700;    
    font-size: 20px;        
}



/* ===========================================
   TORAHMATH STUDENT TEMPLATE EXTENSIONS
   =========================================== */
.student-name{
  font-size: 20.3px;
  font-weight: 400px;
  line-height: 32px;
}

.student-line {
    display: inline-block;
    width: calc(85% - 140px); 
    border-bottom: 1px solid #ccc;
    margin-left: 10px;
}


.common_donwload_button{
  color: #ffffff !important;
  text-decoration: none !important;
}

.no-padding{
  padding: 0px !important;
}