/* FILE PAGE.CSS */

button:focus,a:hover {
    outline: 0 !important;
}
body {
    background-color: #f4e3d7;
}

thead, tbody, tfoot {
    border: none;
    background: unset;
}

a {
    color: #0d59a5;
}

a:hover, a:focus {
    color: #002060;
}

select {
    border-radius: 5px;
}

.button {
    background: #805549;
    border-radius: 6px;
}
.button:hover {
    background: #deb223;
}
.row, .grid-x {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}
.grid-x .grid-x {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

#header {
    margin-bottom: 7px;
}

#all_wrapper {
    max-width: 82rem;
    margin: 0 auto;
    background-color: white;
}
#main-menu.menu {
    border-radius: 6px;
    background-color: #9b683d;
    width: 100%;
}
#main-menu.menu > li {
    text-align: center;
    outline: 0;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}
#main-menu.menu > li > a {
    color: white;
    transition: background 0.5s;
    background-color: #9b683d;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    line-height: 1.2;
    height: 100%;
    white-space: nowrap;
}

#main-menu.menu > li:first-child > a {
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
}
#main-menu.menu > li:last-child > a {
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
}

#main-menu.submenu > li > a {
    border-right: none;
}
#main-menu.menu > li.active > a {
    background-color: #deb223;
    color: white;
}
#main-menu  li > a:hover {
    background-color: #deb223;
}
#main-menu.dropdown.menu .submenu {
    border: none;
    background: #805549 ;
    min-width: initial;
}
#main-menu.dropdown.menu .submenu a {
    color: white;
}
#main-menu.dropdown.menu .submenu.first-sub {
    left: -16px;
    width: 100%;
    min-width: 162px;
    z-index: 99999;
}
/* #main-menu.dropdown.menu .submenu > li {
    border-top: 1px solid #FFF;
} */
/*.dropdown.menu .submenu > li:first-child {
    border-top: none;
}*/
#main-menu.dropdown.menu .is-dropdown-submenu-parent > a::after {
    border-color: #FFFFFF transparent transparent !important;
}
#main-menu.dropdown.menu .is-dropdown-submenu-parent.is-right-arrow > a::after {
    border-color: transparent transparent transparent #FFFFFF !important;
}
#main-menu.dropdown.menu .is-dropdown-submenu-parent.is-left-arrow > a::after {
    border-color: transparent #FFFFFF transparent transparent !important;
}
.top-bar {
    background-color: white;
    padding: 0;
}
.top-bar-left {
    width: 100%;

}
@media screen and (max-width: 900px) {
    #main-menu.menu > li {
        /*display: block;*/
        width: 50%;
        float: left;

    }
}
.title-bar {
    background: #805549;
}
.breadcrumbs {
    padding: 14px 0 0px 0;
    margin: 0;
}

.breadcrumbs a {
    color: #deb223;
}

.breadcrumbs li {
    font-size: 0.78rem;
    cursor: default;
    text-transform: unset;
    color: #747474;
}
.dropdown.menu .submenu:not(.js-dropdown-nohover) > .has-submenu:hover > .dropdown.menu .submenu, .dropdown.menu .submenu.js-dropdown-active {
    display: block !important;
}

/* Page */

.posts .row .medium-3 img {
    padding-bottom: 10px;
}

.posts .title {
    margin: 10px 0 6px 0;
}

.posts .title a {
    color: #0d59a5;
    font-weight: bold;
    margin: 0;
    display: inline-block;
    font-size: 18px;
}

.posts .title a:hover {
    color: #002060;
}

.posts th,
.posts td {
    padding: 0;
    border-bottom: 1px solid #efefef;
}

.post_intro, .post_info {
    font-size: 0.8em;
    color: #747474;
}
.post_info {
    margin-bottom: 0px;
}
.written_by, .in_category, .post_time {
    margin: 0;
}
.post_time {
    text-align: right;
}

/* POSTs */
.posts {
    width: 100%;
}

tbody tr:nth-child(even)
{
        background-color: inherit;
}
.pagination {
    text-align: center;
}
.pagination .active {
    padding: 0;
    background: #e9da3e;
    cursor: default;
}
.pagination .active a {
    color: #fefefe;
}

#footer {
    max-width: 82rem;
    padding: 29px 0 36px 0;
    background-color: #805549;
    font-size: 14px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
#footer > div {
    text-align: center;
}
#footer > div:last-child {
    border-right: none;
}
#footer > div p {
    margin-bottom: 0;
}
#footer,
#footer .about_us a,
#footer .contact_us a{
    color: #E6E6E6;
}
#footer a {
    color: #e9da3c;
}

#footer a:hover {
    text-decoration: underline;
}

/* RIGHT BAR */
.block .title {
    font-size: 13px;
    /* border-bottom: 1px solid #d5d5d5; */
    /* color: #656565; */
    padding: 8px 20px;
    /* background-color: #f7f7f7; */
    margin: 0;
    font-weight: bold;
}
.block {
    /* border: 1px solid #ccc; */
    margin-bottom: 20px;
    font-size: 0.9em;
    background-color: #f7f7f7;
    padding: 10px;
    border-radius: 5px;
}
.block ul {
    list-style: none;

}
.block ul a {
    color: #333;

}
.block ul a:hover {
    text-decoration: underline;
}
.block > .vertical.menu > li > a {
    text-decoration: none;
}
.block .legend {
    font-size: 0.9em;
    text-align: center;
}
.block .menu > li > a {
    padding: 0.5rem;
}
#cham_rightbar_website li {
    padding: 3px;
}
#cham_rightbar_literature li {
    padding: 3px 0 0 14px;
}
#cham_rightbar_website > ul,
#cham_rightbar_literature {
    margin-bottom: 10px;
    /* margin-top: 7px; */
}

/* Cham Heritage - 5 images per row */
.cham-heritage-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.cham-heritage-grid li {
    flex: 0 0 calc(25% - 5px);
    max-width: calc(25% - 5px);
    padding: 0;
}
.cham-heritage-grid li a {
    display: block;
    line-height: 0;
}
.cham-heritage-grid li a.cham-heritage-link {
    text-decoration: none;
}
.cham-heritage-img-wrap {
    position: relative;
    display: block;
    border-radius: 4px;
    overflow: hidden;
}
.cham-heritage-grid li img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
.cham-heritage-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.cham-heritage-grid li:hover .cham-heritage-title {
    opacity: 1;
}
@media (max-width: 600px) {
    .cham-heritage-grid li {
        flex: 0 0 calc(25% - 5px);
        max-width: calc(25% - 5px);
    }
}
.block .is-accordion-submenu-parent > a::after {
    border-color: #BFBFBF transparent transparent;
}

/* CONTENT */
/*.wrap-content-and-right-bar {
        background-color: #FAFAFA;
}
.wrap-content-and-right-bar .wrap-content {
    background-color: #FFF;
    padding-top: 1rem;
    border-top: 1px solid #A9C2DB;
    border-top-style: dashed;
}
.wrap-content-and-right-bar .wrap-rightbar {
    padding-top: 1rem;
    border-top: 1px solid #A9C2DB;
    border-top-style: dashed;
}*/

/* IN CHAM LESSON */
#list_lesson {
    margin: 0;
    list-style-type: none;
    font-size: 0.9em;
}

#list_lesson a {
    color: #313131;
}
#list_lesson li.current a {
    color: blue;
}

#list_lesson li.no-release a{
    color: #D8D8D8;
}

.wrap_cham_page {
    font-family: 'times new roman';
    font-size: 1.1em;
}
.wrap_cham_page h1,
.wrap_cham_page h2,
.wrap_cham_page h3,
.wrap_cham_page h4,
.wrap_cham_page h5,
.wrap_cham_page h6 {
    font-size: 1.0em;
}
.wrap_cham_page p {
    padding: 0;
    margin: 0;

}
.wrap_cham_page table thead,
.wrap_cham_page table tbody,
.wrap_cham_page table tfoot{
    background-color: #FFF;
}

.wrap_cham_page table tbody th,
.wrap_cham_page table tbody td {
    padding: 0;
}

.block-convert {
    font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
}
.article_content .title {
    color: #0d59a5;
    font-size: 1.2em;
    margin: 10px 0 10px 0;
    font-weight: bold;
}
.article_content .main_content {
    font-size: 0.9em;
    color: #747474;
}
.written_by,
.in_category,
.post_time {
    font-size: 0.9em;
    color: #747474;
    font-style: italic;
}

.in_category {
    margin-bottom: 16px;
}

/* DICTIONARY */
#list-words {
    /*min-height: 25.5px;*/
}
#list-words li {
    display: inline-block;
    margin: 0 5px;
}
#list-words li a:hover {
    cursor: pointer;
    background-color: #2199E8;
}
#ellipsis {
    position: absolute;
    padding-top: 5px;
}

/* FIX BUTTON */
.button {
    transition: all 0.05s ease-out;
}
.button:active {
    background-color: #146DA9;
}

/* ONLINE DICTIONARY */
#online-dictionary-page #word {
    width: 300px;
}
#online-dictionary-page .word-meaning {
    font-family: "Times New Roman";
    font-size: 110%;
}
#online-dictionary-page .cham_thrah, .font_cham {
    color: #C50909;
    line-height: 1em;
}
#online-dictionary-page .viet {
    display: block;
}
#online-dictionary-page .example li {
    list-style: none;
    line-height: 1.1em;
    padding-bottom: 10px;
}

/* FIX LESSON */
.wrap_list_lesson {
    border-right: 1px solid #ccc;
}
/*
#language_right table tr td {
    border: 1px solid #ccc;
}
*/

#language_right table,
table.border
{
    border-collapse: separate !important;
    border: 0;
}

#language_right table tr,
#language_right table th,
#language_right table td,
table.border tr,
table.border th,
table.border td
{
    border-right-width: 0;
    border-bottom-width: 0;
    border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;
}

#language_right table td:last-child,
#language_right table th:last-child,
table.border td:last-child,
table.border th:last-child
{
    border-right: 1px solid #ccc;
}

#language_right table tr:last-child td,
table.border tr:last-child td
{
    border-bottom: 1px solid #ccc;
}

.thumbnail-img {
    max-width:170px;
    display: inline-block;
    margin: 5px;
}

.select_language {
    text-align: right;
}

.select_language label {
    display: inline-flex;
    margin-left: 15px;
}
.select_language input {
    margin: 0;
    margin-top: 6px;
    margin-right: 2px;
}

/* SLIDER */
#right_bar .bx-wrapper .bx-pager.bx-default-pager a {
    background: #ddd;
}
#right_bar .bx-wrapper .bx-pager.bx-default-pager a:hover,
#right_bar .bx-wrapper .bx-pager.bx-default-pager a.active {
    background: #deb223 !important;
}

#right_bar .bx-wrapper {
    margin-bottom: 40px;
}