#formtudien{
    margin-bottom: 10px;
}
.form-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}
.form-group {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.tudien-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.form-inner .form-group:has(.btn) {
    width: 11%;
    flex-direction: row;
    gap: 0;
}
.form-inner .form-group:has(.btn) .btn {
    min-width: 8rem;
}
.tudien-tabs button {
    padding: 8px 12px;
    border: none;
    background: #eee;
    cursor: pointer;
    color: #666;
}

.tudien-tabs button.active {
    background: #f05a25;
    color: white;
}

.tudien-tab-content {
    display: none;
}

.tudien-tab-content.active {
    display: block;
    margin-top: 10px;
}

.tudien-result-block {
    border-radius: 24px;
    border: 2px dashed #4d7b3a;
    padding: 2rem;
    margin-top: 4rem;
    background: #fcfcfc;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reset-kanji-btn {
    display: inline-block;
    padding: 5px 10px;
    cursor: pointer;
    margin-top: 10px;
    position: absolute;
    top: 0;
    right: 0;
}
.vocab-results .vocab-title,.kanji-title{
    font-size: 28px;
    color: #000000;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
}
.vocab-title{
    flex-direction: column;
}
.vocab-title strong{
    color: #f05a25;
}
.vocab-results strong,.kanji-results strong{
    font-weight: 600;
}
.vocab-results .word-kind{
    border-radius: 12px;
    color: #f05a25 ;
    background: linear-gradient(to right, #fbf3ea 0%, #ffffff 100%);
    padding: 10px 16px;
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 12px;
}
.vocab-results  .word-meaning,.title-exkanji{
    font-size: 18px;
    color: #4d7b3a;
    font-weight: bold;
    margin-bottom: 12px;
}

.vocab-results  .word-examples .w-content{
    display: flex;
    align-items: center;
}
.vocab-results  .word-examples .w-vi{
    margin-bottom: 12px;
    color: #8f93a5;
}
.vocab-results .txt-synonyms,.vocab-results .txt-opposites{
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    padding: 10px;
    border-left: 4px solid #f05a25;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border-radius: 6px;
}
.vocab-results .txt-synonyms strong,.vocab-results .txt-opposites strong,.vocab-results .title-images,.tudien-related-words h3,.title-tags{
    font-size: 18px;
    color: #4d7b3a;
}
.vocab-results .txt-synonyms a:hover, .vocab-results .txt-opposites a:hover{
    color: #4d7b3a;
}
.vocab-results .tudien-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.vocab-results .tudien-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.tudien-related-words{
    margin-top: 15px;
    border-top: 1px solid #4c7a3a;
    padding-top: 15px;
}
.tudien-related-words h3{
    margin-bottom: 15px;
    font-weight: bold;
}
.tudien-related-words h3 span,.boxvocab-s h3 span,.boxkanji-s h3 span{
    color: #f05a25;
    font-weight: bold;
}
.tudien-related-words .items-w-rl {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tudien-related-words .items-w-rl .item-w-rl {
    background: #fff;
    padding: 10px;
    border-left: 4px solid #f05a25;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border-radius: 6px;
}
.tudien-related-words .items-w-rl .item-w-rl .w-rl{
    color: #f05a25;
}
.tudien-related-words .items-w-rl .item-w-rl  .short-rl,.tudien-related-words .items-w-rl .item-w-rl .w-rl span{
    color: #8f93a5;
}
.kanji-l {
    width: 66.66666667%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.kanji-r{
    width: 33.33333333%;
    position: relative;
}
.kanji-results{
    flex-direction: row;
    display: flex;
}
.kanji-svgb {
    width: 100%;
    background-color: #fff8ed;
    border-radius: 16px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.kanji-svgb svg{
    width: 250px;
    height: 250px;;
}
.title-examplekj{
    color: #f05a25;
    font-weight: bold;
    margin-bottom: 5px;
}
.table-examplekanji{
    background-color: #f0f2f5;
    border-radius: 16px;
    padding: 12px;
    width: 100%;
    border-collapse: collapse;
}
.table-examplekanji table{
    width: 100%;
}
.table-examplekanji td{
    border-right: 1px solid #d9d9d9;
    width: 33.3%;
    padding: 12px;
}
.table-examplekanji td:last-child{
    border-right: 0;
}
.kanji-tab-buttons,.vocab-tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-direction: column;
}
.kanji-tab-btn,.vocab-tab-btn {
  padding: 8px 14px;
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
}
.vocab-tab-btn{
    display: flex;
    flex-direction: column;
    gap:5px
}
.vocab-tab-btn span,.short-rl {
  display: -webkit-box;
  -webkit-line-clamp: 2;  
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kanji-tab-btn strong,.vocab-tab-btn strong{
    font-size: 18px;
    color: #4d7b3a;
    font-weight: bold;
}
.kanji-tab-btn.active,.vocab-tab-btn.active {
  background: #4d7b3a;
  color: white;
  font-weight: bold;
}
.kanji-tab-btn.active strong,.vocab-tab-btn.active strong{
    color: #fff;
}
.kanji-search,.vocab-search {
    width: 25%;
}
.kanji-tabs-wrapper,.vocab-tabs-wrapper{
    display: flex;
    gap:15px;
    margin-top: 4rem;
}
.kanji-tab-contents,.vocab-tab-contents{
    width: 75%;
}
.boxkanji-s,.boxvocab-s{
    border:2px dashed #4d7b3a;
    border-radius: 16px;
    padding: 12px;
}
.boxkanji-s h3,.boxvocab-s h3{
    margin-bottom: 12px;
    font-weight: bold;
    font-size: 18px;
}
.boxvocab-smobile{
    display: none;
}
.kanji-tabs-wrapper .tudien-result-block,.vocab-tabs-wrapper .tudien-result-block{
    margin-top: 0;
}
.grammar-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 15px;
}

.grammar-filter label {
  font-weight: bold;
  color: #333;
}

.grammar-filter select {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 15px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.grammar-filter select:focus {
  border-color: #2196F3;
  outline: none;
}

.tudien-accordion {
  margin-bottom: 15px;
}

.accordion-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    background-color: #fff;
    border: none;
    outline: none;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    border-left: 4px solid #f05a25;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #8f93a5;
}
.accordion-toggle span{
    margin-top: 5px;
    display: inline-block;
}
.accordion-toggle strong{
    font-weight: bold;
    color: #4d7b3a;
}
.accordion-toggle:hover {
  background-color: #f7f7f7;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.accordion-content.active {
  padding: 15px;
  max-height: 1000px; 
}

.usage-block {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.level_gram {
    color: #fff;
    padding: 3px;
    font-size: 14px;
    border-radius: 6px;
    margin-left: 15px;
}
.level_gram.N5{
    background: #FF8D65;
}
.level_gram.N4{
   background: #FFA43B;     
}
.level_gram.N3{
    background: #6D997F;
}
.level_gram.N2{
    background: #509BBE;
}
.level_gram.N1{
    background: #009765;
}
.accordion-toggle::after {
    top: 38%;
    right: 15px;
    position: absolute;
    z-index: 0;
    content: "";
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 2rem;
    height: 2rem;
    background-image: url(../images/contact/plus.svg);
    transition: all 0.3s;
}
.accordion-toggle.active::after{
    background-image: url("../images/contact/minus.svg");
}
.usage-block strong{
    color: #4d7b3a;
    font-weight: bold;
}
.example-block{
    margin-top: 10px;
}
.example-block p{
    display: flex;
}
.kanji-tab-btn,.grammar-filter select,.vocab-tab-btn{color: #333;}
.tudien-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tudien-tags  .tag {
  background: #f05a25;
  color: #fff;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
}

@media screen and (max-width: 767.98px) {
    #formtudien .form-inner{
        flex-direction: column;
    }
    .form-inner .form-group:has(.btn){
        width: 16%;
    }
    .kanji-tabs-wrapper,.vocab-tabs-wrapper{
        flex-direction: column;
    }
    .kanji-search,.kanji-tab-contents,.vocab-search,.vocab-tab-contents{
        width: 100%;
    }
    .kanji-results{
        gap:15px
    }
    .kanji-svgb svg{
        max-width: 100%;
    }
    .hidden_mb{
        display: none;
    }
    .boxvocab-smobile,.boxvocab-smobile .hidden_mb{
        display: block;
    }
    .boxvocab-smobile .tudien-related-words{
        border-top: 0;
        margin-top: 0;
        padding-top: 0;;
    }
}
@media screen and (max-width: 603px) {
    .form-inner .form-group:has(.btn) {
        width: 20%;
    }
    .kanji-results{
        flex-direction: column;
    }
    .kanji-l,.kanji-r{
        width: 100%;
    }
}
@media screen and (max-width: 576px) {
    .module-tratudien .form-group input, .module-tratudien .form-group textarea{
        height: auto;
    }
    .form-inner .form-group:has(.btn) {
        width: 26%;
    }
    .vocab-results .word-examples .w-content,.example-block p{
        display: inline-block;
    }
    .tudien-result-block{
        padding:0;
        border:0
    }
}