/* New class for Translation and Q&A sections */
/* Container with the border */
.view-article .main-body span.llal_news_answer {
    display: block;
    background: transparent;
    border: 1px dashed #ccc; /* Always visible border */
    padding: 8px;
    padding-right: 30px; /* Add extra padding to the right for the icon */
    position: relative;
    margin: 2px 0;
    width: 100%;
    box-sizing: border-box; /* Include padding and border in width */
    cursor: pointer; /* Indicate interactivity */
}

/* Inner content with the blur effect */
.view-article .main-body span.llal_news_answer_content {
    filter: blur(4px); /* Apply blur */
    transition: filter 0.2s ease;
}

/* Remove blur on hover */
.view-article .main-body span.llal_news_answer:hover .llal_news_answer_content {
    filter: none;
}

/* Padlock icon */
.view-article .main-body span.llal_news_answer::after {
    content: '🔍'; /* Locked padlock */
    position: absolute;
    top: 8px;
    right: 4px;
    font-size: 20px;
    line-height: 1;
    /* No opacity applied */
    transition: content 0.2s ease;
}

/* Change to unlocked padlock on hover */
.view-article .main-body span.llal_news_answer:hover::after {
    content: '🔎'; /* Unlocked padlock */
}





/* New class for Vocabulary section */
.view-article .main-body span.llal_news_vocab_answer {
    display: inline-block;
    background: #bbb;
    color: #bbb;
    border: 1px solid #aaa;
    padding: 0 8px;
    position: relative;
    margin-left: 18px;
    transition: all ease 0.2s;
    min-width: 85px;
    margin: 2px 0;
    font-size: 20px;
    line-height: 32px;
}

.view-article .main-body span.llal_news_vocab_answer span {
    font-size: 16px;
    line-height: 20px;
    padding: 6px 0;
    position: absolute;
    opacity: 1;
    color: #888;
    transition: all ease 0.6s;
    text-transform: uppercase;
}

.view-article .main-body span.llal_news_vocab_answer:hover {
    background: #fff;
    border: 1px dotted #aaa;
    color: #666;
    cursor: default;
    transition: all ease 0.1s;
}

.view-article .main-body span.llal_news_vocab_answer:hover span {
    opacity: 0;
    transition: all ease 0.1s;
}




/* Tooltipster Light Theme Styling */
.tooltipster-light .tooltipster-box {
    border-radius: 0 !important;          
    background-color: #ffffff !important;
    border: 1px solid #ffffff !important;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);  
    padding: 10px;
    font-size: 14px;
    max-width: 300px;                    
    line-height: 1.5;
}

.tooltipster-light .tooltipster-content {
    color: inherit !important;             
    background-color: #ffffff !important;  
}

/* Bold word inside the tooltip */
.sv_basic_form {
    font-weight: bold;
    display: inline;
    font-size: 14px;
    color: inherit;
}

/* Add gender information in a lighter grey */
.sv_gender {
    font-size: inherit; /* Inherit the same font size as the word */
    color: rgb(153, 153, 153); /* Light grey color */
    font-weight: normal;
    display: inline;
    margin-left: 3px; /* Small spacing between word and gender */
}




/* Glossary Word Highlight on Hover */
.glossary {
    text-decoration: none;                 
    cursor: pointer;                       
    background-color: #fff3cd;             
    padding: 0px 1px;
    border-radius: 1px;
    font-weight: bold;
}

/* Tooltip Arrow Styling */
.tooltipster-sidetip .tooltipster-arrow {
    display: block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
    margin: 0 auto;
    position: relative;
}

/* Add shadow around the triangle using ::before */
.tooltipster-sidetip .tooltipster-arrow::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(0, 0, 0, 0.2);
    z-index: -1;
}




/* Newsletter teaser styling */
.newsletter-teaser {
    background-color: #fff3cd;
    border: 1px dashed #ccc;
    padding: 15px;
    margin-bottom: 20px;
}

/* Adjust spacing between <p> tags inside newsletter-teaser */
.newsletter-teaser p {
    margin-top: 0.0em;    /* Small space above each paragraph */
    margin-bottom: 0.2em; /* Small space below each paragraph */
    line-height: 1.35;     /* Relative line-height for better readability */
}

/* Custom line-height adjustment */
.newsletter-teaser .newsletter-teaser-custom-line p {
    line-height: 1.0;  /* Adjust this value as needed */
    max-width: 500px; /* Match the form width */
    margin-left: 0;   /* Align it with the left side */
    margin-right: 0;  /* Ensure no extra margin on the right */
    text-align: left; /* Ensure text is aligned to the left */
}

/* Styling links inside newsletter-teaser-custom-line */
.newsletter-teaser-custom-line a {
    color: inherit;      /* Keep the color same as surrounding text */
    text-decoration: underline; /* Underline the links by default */
}

/* Remove underline on hover */
.newsletter-teaser-custom-line a:hover {
    text-decoration: none; /* Remove underline on mouseover */
}

/* Custom styles for the subscription form */
.custom-subscription-form {
  max-width: 500px; /* Limit the form width */
  margin: 0;        /* Left align the form */
}

.custom-subscription-form .form-fields {
  display: flex;
  margin-top: 20px;
}

.custom-subscription-form .form-fields input[type="email"],
.custom-subscription-form .form-fields button[type="submit"] {
  height: 35px;          /* Set the same height */
  line-height: 35px;     /* Align text vertically */
  box-sizing: border-box; /* Include padding and border in height */
  font-size: 14px;
  border-radius: 4px;
  padding: 0 10px;       /* Standard padding */
  border: 1px solid #cccccc;
}

.custom-subscription-form .form-fields input[type="email"] {
  flex: 1;
  margin-right: 10px;
}

.custom-subscription-form .form-fields button[type="submit"] {
  padding: 0 15px;
  background-color: #4d4d4d;
  color: #ffffff;
  border: 1px solid #4d4d4d;
  cursor: pointer;
}

.custom-subscription-form .form-fields button[type="submit"]:hover {
  background-color: #666666;
}

/* Success Message Styling */
.success-message {
  background-color: #dff0d8;
  color: #3c763d;
  padding: 10px;
  border: 1px solid #d6e9c6;
  border-radius: 4px;
  font-size: 16px;
  margin-top: 20px;
  text-align: left;
}

/* Error Message Styling */
.success-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .custom-subscription-form .form-fields {
    flex-direction: column;
    align-items: stretch; /* Ensure elements stretch to full width */
  }

  .custom-subscription-form .form-fields input[type="email"],
  .custom-subscription-form .form-fields button[type="submit"] {
    width: 100%;
    margin-right: 0;
    height: 45px;         /* Set consistent height */
    line-height: normal;  /* Reset line-height */
    padding: 10px;        /* Adjust padding for better appearance */
    box-sizing: border-box; /* Include padding and border in height */
  }

  .custom-subscription-form .form-fields input[type="email"] {
    margin-bottom: 10px;
  }

  .custom-subscription-form .form-fields button[type="submit"] {
    margin-bottom: 0;
  }
}
