/* Thiền viện Trúc Lâm Bạch Mã - colors and images of the old "bachma" Joomla template (templates/bachma/css/template.css) */
:root {
    --brown: #96511f;        /* wrapper border, header bar, footer menu */
    --brown-dark: #743200;   /* module borders */
    --brown-footer: #7a3403; /* copyright bar */
    --brown-text: #522802;   /* category links, first news title */
    --gold: #f3d541;         /* menu hover */
    --menu-sep: #d39a48;
    --cream: #fffec5;        /* sub menu bar */
    --cream-cat: #fefeb4;    /* sub category bar of home blocks */
    --page-bg: #c4ced0;
    --link-hover: #cc0000;
}

body { background: var(--page-bg); color: #000; font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.5; }
a { color: #000; text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }

.site-wrap { max-width: 1020px; margin: 0 auto; background: #fff; border: 10px solid var(--brown); border-bottom: 0; }

/* header */
.site-header .banner { line-height: 0; background: #fff; }
.site-header .banner img { width: 100%; height: auto; display: block; }
.top-bar { background: var(--brown); color: #fff; font-size: 13px; padding: 6px 7px; gap: 4px 12px; }
.top-menu > li + li::before { content: "|"; color: #fff; margin: 0 6px; }
.top-menu a { color: #fff; }
.top-menu a:hover, .top-menu a.show, .top-menu a.active { color: var(--gold); text-decoration: none; }
.top-menu .dropdown-menu { font-size: 13px; border-radius: 0; background: var(--cream); border: 1px solid var(--menu-sep); }
.top-menu .dropdown-item { color: #333; }
.top-menu .dropdown-item:hover { background: #fff6b0; color: var(--brown); }
.top-bar .today { color: #fff; white-space: nowrap; margin-left: auto; }

/* main menu: old "Zaragoza News Menu" (mod_newsmenu/css/blue.css), dropline style
   level 1 = links on bg_menu_header.jpg, level 2 = children of the open section on a cream bar */
.main-nav { background: #a85207 url(/images/template/bg_menu_header.jpg) repeat-x; background-size: auto 100%; padding: 0; min-height: 42px; }
.main-nav .navbar-nav { padding: 4px 0 0; }
.main-nav .navbar-nav > .nav-item { border-right: 1px solid var(--menu-sep); margin: 4px 0; }
.main-nav .navbar-nav > .nav-item:last-child { border-right: 0; }
.main-nav .nav-link { color: #fff; font-size: 15px; padding: 2px 10px !important; white-space: nowrap; }
.main-nav .nav-link:hover, .main-nav .nav-link:focus { color: var(--gold); text-decoration: underline; }
.main-nav .nav-link.active, .main-nav .show > .nav-link { color: var(--gold); }
.main-nav .dropdown-menu { border-radius: 0; margin-top: 4px; border: 1px solid var(--menu-sep); background: var(--cream); font-size: 13px; padding: 2px 0; }
.main-nav .dropdown-item { color: #333; }
.main-nav .dropdown-item:hover { background: transparent; color: var(--brown); text-decoration: underline; }
.main-nav .navbar-toggler { border-color: rgba(255, 255, 255, .7); margin: 6px 0; }
.main-nav .navbar-toggler-icon { filter: invert(1); }

.sub-nav { background: var(--cream); min-height: 30px; padding: 3px 6px; gap: 4px; }
.sub-nav li { border-right: 1px solid #333; padding: 0 10px; line-height: 1.3; margin: 2px 0; }
.sub-nav li:last-child { border-right: 0; }
.sub-nav a { color: #333; font-size: 12.5px; }
.sub-nav a:hover { color: var(--gold); text-decoration: underline; }
.sub-nav a.active { color: var(--brown); font-weight: bold; text-decoration: none; }
.top-bar .search-form input { width: 150px; height: 24px; padding: 1px 6px; font-size: 12px; border-radius: 0; border: 1px solid #d39a48; }

/* scrolling quote under the menu */
.marquee { overflow: hidden; white-space: nowrap; background: var(--page-bg); color: #000; padding: 3px 10px; height: 25px; }
.marquee-inner { display: inline-block; padding-left: 100%; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-inner { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* layout */
.site-body { padding: 10px; }
.site-main { border-right: 1px solid #e2e1e1; }
.breadcrumb-wrap { font-size: 12px; padding: 0 2px 6px; margin-bottom: 8px; }
.breadcrumb-wrap a { color: #000; }
.breadcrumb-item.active { color: #666; }
.page-title { font-family: Arial, Tahoma, sans-serif; font-size: 24px; font-weight: normal; border-bottom: 3px double #aaa; padding: 0 8px 4px 0; margin-bottom: 10px; }
.meta { color: #999; font-size: 12px; }
.meta a { color: #999; }
.btn-theme { background: var(--brown); color: #fff; border-radius: 0; }
.btn-theme:hover { background: var(--brown-dark); color: #fff; }

/* article text (HTML written in the old Joomla editor) */
.content-body { word-wrap: break-word; }
.content-body img { max-width: 100%; height: auto !important; }
.content-body table { max-width: 100%; }
.content-body p { margin-bottom: .6em; }
.content-body::after { content: ""; display: block; clear: both; }

/* article page (Joomla 2.5 com_content article layout + Pagebreak plugin) */
.item-page .article-title { font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 24px; font-weight: normal; margin: 0 0 8px; line-height: 1.3; }
.item-page .article-title a { color: #000; }
.item-page .article-title a:hover { color: var(--link-hover); }
#article-index { float: right; width: 35%; margin: 0 0 8px 8px; border: 3px double #eee; padding: 4px 8px; background: #fff; }
#article-index h3 { font-size: 14px; font-weight: bold; margin: 0 0 4px; }
#article-index ul { margin: 0; padding: 0; list-style: none; }
#article-index li { padding: 2px 0 2px 14px; background: url(/images/template/bullet.gif) no-repeat 3px 9px; font-size: 12px; }
#article-index a.active { font-weight: bold; }
.pagenavcounter { font-weight: bold; padding: 4px 0 8px; }
.pagebreak-nav ul { list-style: none; margin: 15px auto 0; padding: 0; text-align: center; }
.pagebreak-nav li { display: inline; margin: 0 6px; color: #999; }
.pagebreak-nav a { color: #000; font-weight: bold; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 6px; clear: both; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.audio-player { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.audio-player audio { width: 100%; max-width: 420px; height: 40px; }
.audio-download { font-size: 13px; font-weight: bold; }

/* category list (Joomla 2.5 blog layout + template.css rules) */
.blog .items-leading > div:not(.item-separator) { display: table; width: 100%; }
.blog .items-leading h2 { font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 18px; font-weight: normal; margin: 0 0 4px; }
.blog .items-leading h2 a { color: #000; }
.blog .items-leading h2 a:hover { color: var(--link-hover); }
.blog .items-leading img { width: 180px; height: auto !important; }
.blog .readmore { margin: 4px 0 0; }
.blog .readmore a { color: #000; }
.blog .item-separator { border-bottom: 1px dotted #333; height: 1px; padding-top: 15px; width: 100%; margin-bottom: 10px; }
.blog .items-more h3, .blog .cat-children h3 { font-size: 15px; font-weight: bold; margin: 10px 0 4px; }
.blog .items-more ol { margin: 0 0 8px; padding-left: 22px; }
.blog .cat-children ul { margin: 0 0 6px; padding-left: 18px; }
.joomla-pagination { margin: 15px 0 10px; text-align: center; }
.joomla-pagination .counter { margin: 0 0 4px; }
.jpagination { margin: 0 auto; padding: 0; text-align: center; }
.jpagination li { display: inline; margin: 0; padding: 0; }
.jpagination li span { padding: 2px 5px; color: #999; }
.jpagination a { padding: 2px 3px; color: #000; }
.jpagination a:hover { color: var(--link-hover); }
.sub-cats { background: var(--cream-cat); line-height: 25px; padding-left: 5px; font-size: 12.5px; }
.sub-cats a { color: var(--brown-text); }
.search-item { border-bottom: 1px dotted #333; padding-bottom: 8px; margin-bottom: 10px; }
.search-item h2 { font-size: 16px; margin: 0; }
.pagenav { border-top: 1px dotted #333; padding-top: 8px; font-size: 12.5px; }
.pagination .page-link { color: #000; border-radius: 0 !important; }
.pagination .active > .page-link { background: var(--brown); border-color: var(--brown); color: #fff; }

/* front page modules of the old site */
.moduletable_none { margin-bottom: 5px; }
.home-banner img { width: 100%; height: auto; display: block; }

/* "Điểm tin tức" (mod_cbnews/assets/cbnews.css) */
#featured { position: relative; border: 5px solid #ccc; height: 320px; background: #fff; padding-right: 250px; }
#featured .ui-tabs-nav { position: absolute; top: 0; right: 0; width: 250px; list-style: none; padding: 0; margin: 0; }
#featured .ui-tabs-nav li { padding: 1px 0 1px 13px; font-size: 12px; color: #666; }
#featured .ui-tabs-nav li.ui-tabs-selected { background: url(/images/template/home/selected-item.gif) top left no-repeat; }
#featured .ui-tabs-nav li a { display: block; height: 60px; color: #333; background: #fff; line-height: 20px; overflow: hidden; text-decoration: none; }
#featured .ui-tabs-nav li a:hover { background: #f2f2f2; }
#featured .ui-tabs-nav li.ui-tabs-selected a { background: #ccc; }
#featured .ui-tabs-nav li img { float: left; margin: 2px 5px; background: #fff; padding: 2px; border: 1px solid #eee; width: 52px; height: 52px; object-fit: cover; }
#featured .ui-tabs-nav li span { font-size: 11px; font-family: Verdana, sans-serif; line-height: 18px; }
#featured .ui-tabs-panel { position: relative; height: 310px; background: #999; overflow: hidden; }
#featured .ui-tabs-panel > a > img { width: 100%; height: 310px; object-fit: cover; display: block; }
#featured .ui-tabs-hide { display: none; }
#featured .ui-tabs-panel .info { position: absolute; left: 0; bottom: 2px; width: 99%; height: 70px; overflow: hidden; background: url(/images/template/home/transparent-bg.png); color: #eee; }
#featured .info h2 { font-size: 18px; font-family: Tahoma, Georgia, serif; color: #fff; padding: 5px; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#featured .info p { margin: 0 5px; font-family: Verdana, sans-serif; font-size: 11px; line-height: 15px; color: #f0f0f0; }
#featured .info a { color: #fff; text-decoration: none; }
#featured .info a:hover { text-decoration: underline; }

/* module boxes "moduletable_home" (template.css): gold title.jpg header */
.moduletable_home { background: #f8f7f7; border: 1px solid #ccc; border-top: 0; box-shadow: -2px 2px 2px #c8c8c8; margin-bottom: 4px; padding: 0 0 4px; }
.moduletable_home > h3 {
    background: #d9b33a url(/images/template/title.jpg) repeat-y 0 0; background-size: 100% 100%;
    color: var(--brown-text); font-size: 15px; font-weight: bold; margin: 0; padding: 5px 0 5px 10px;
}
.moduletable_home .categories { padding-left: 5px; background: var(--cream-cat); line-height: 25px; font-size: 12.5px; }
.moduletable_home .categories a { color: var(--brown-text); }
.moduletable_home .newsl { float: left; width: 48%; padding: 4px 8px; border-right: 1px solid #e2e1e1; text-align: left; }
.moduletable_home .newsr { float: right; width: 48%; padding: 4px 6px 0 0; text-align: left; }
.moduletable_home .newsr ul { margin: 0; padding-left: 18px; }
.moduletable_home .newsr li { padding: 1px 0 6px; }
.moduletable_home .latestnews { color: var(--brown-text); font-weight: bold; }
.moduletable_home .newsl-img { float: left; width: 150px; height: 150px; object-fit: cover; margin: 3px 5px 2px 0; }

/* "Tin nổi bật" (Sot article simple slider, theme 3) */
.sotss-slider { position: relative; padding: 15px 34px 12px; }
.featured-swiper .swiper-slide { padding: 0 2px; }
.featured-swiper .media_content { position: relative; height: 150px; overflow: hidden; background: #728ea6; }
.featured-swiper .media_content img { width: 100%; height: 150px; object-fit: cover; display: block; }
.featured-swiper .contentSlider { position: absolute; left: 0; right: 0; top: 120px; height: 150px; padding: 5px; background: url(/images/template/home/slider-bg.png); line-height: 18px; overflow: hidden; transition: top .35s ease; }
.featured-swiper .media_content:hover .contentSlider { top: 0; }
.featured-swiper .ss_title { font-weight: bold; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-swiper .media_content:hover .ss_title { white-space: normal; }
.featured-swiper .ss_title a { color: #000; text-decoration: none; }
.featured-swiper .ss_content { margin-top: 5px; text-align: justify; font-size: 11px; color: #000; }
.sotss-prev, .sotss-next { position: absolute; top: 70px; width: 20px; height: 40px; border: 0; padding: 0; cursor: pointer; z-index: 2; background: transparent url(/images/template/home/prev-horizontal.png) no-repeat 0 0; }
.sotss-prev { left: 7px; }
.sotss-next { right: 7px; background-image: url(/images/template/home/next-horizontal.png); }
.sotss-prev:hover, .sotss-next:hover { background-position: 0 -40px; }

/* main column ~723px, right column ~257px as on the old template */
@media (min-width: 992px) {
    .site-body > .row > .site-main { flex: 0 0 auto; width: 74%; }
    .site-body > .row > .site-side { flex: 0 0 auto; width: 26%; }
}
@media (max-width: 767.98px) {
    #featured { padding-right: 0; height: auto; }
    #featured .ui-tabs-nav { position: static; width: auto; }
    #featured .ui-tabs-nav li { display: none; }
    .moduletable_home .newsl, .moduletable_home .newsr { float: none; width: auto; border: 0; }
}

/* right column: module boxes of template.css ("moduletable": brown border, titlemenu.jpg header) */
.site-side .moduletable { margin: 0 0 10px; border: 1px solid var(--brown-dark); }
.site-side .moduletable > h3 {
    background: var(--brown) url(/images/template/titlemenu.jpg) no-repeat -2px 0; background-size: cover;
    color: #fff; font-size: 15px; font-weight: bold; margin: 0 0 5px; padding: 5px 0 5px 6px;
}
.site-side .moduletable ul { margin: 0; padding: 0 2px; list-style: none; }
.site-side .moduletable li { background: url(/images/template/bullet.gif) no-repeat 5px 8px; margin: 0; padding-left: 16px; }
.site-side .moduletable_none { margin-bottom: 5px; }
.side-static .border { border: 1px solid #783201; }
.side-static .staticText { float: left; width: 47%; font-size: 13px; line-height: 15.5px; padding: 5px 0 5px 5px; white-space: nowrap; }
.side-static .staticImage { float: right; width: 51%; text-align: right; }
.side-static .staticImage img { max-width: 100%; height: auto; }
.side-static .clear { clear: both; color: #fff; line-height: 0; font-size: 0; }
.side-static::after { content: ""; display: block; clear: both; }
.side-video .video-embed-fixed iframe { width: 100%; }
/* "Audio / Video mới nhất": ul.latestnews (template.css: bold) */
.site-side ul.latestnews { font-weight: bold; color: var(--brown-text); }
.site-side ul.latestnews a { color: #000; }
.site-side ul.latestnews a:hover { color: var(--link-hover); }
/* JA Bulletin (mod_jabulletin/assets/style.css) */
#ja-bulletin { position: relative; }
#ja-bulletin ul { margin: 0; padding: 0 4px; }
.site-side #ja-bulletin li { margin: 0; padding: 8px 0; border-bottom: 1px solid #e6e6e6; background: none; position: relative; line-height: normal; }
#ja-bulletin ul img { position: absolute; left: 0; top: 8px; width: 20px; height: 20px; object-fit: cover; }
#ja-bulletin ul div { line-height: 1.2; display: block; }
#ja-bulletin a { color: #000; }
/* Vinaora Visitors Counter (led-green digits, default stats icons) */
#vvisit_counter { padding: 5px; text-align: center; }
#vvisit_counter .vdigit_counter span { width: 16px; height: 21px; background: url(/images/template/counter/led-green.png) no-repeat 0 0; text-indent: -999em; display: inline-block; overflow: hidden; }
.vdigit-0 { background-position: 0 0 !important; } .vdigit-1 { background-position: -32px 0 !important; } .vdigit-2 { background-position: -64px 0 !important; }
.vdigit-3 { background-position: -96px 0 !important; } .vdigit-4 { background-position: -128px 0 !important; } .vdigit-5 { background-position: -160px 0 !important; }
.vdigit-6 { background-position: -192px 0 !important; } .vdigit-7 { background-position: -224px 0 !important; } .vdigit-8 { background-position: -256px 0 !important; }
.vdigit-9 { background-position: -288px 0 !important; }
#vvisit_counter .vstats_counter { margin-top: 5px; text-align: left; }
#vvisit_counter .vrow { display: flex; align-items: center; height: 20px; }
#vvisit_counter .vrow > span[class^="vstats-v"] { width: 16px; height: 16px; margin-right: 5px; flex-shrink: 0; background: url(/images/template/counter/stats.png) no-repeat 0 0; }
.vstats-vall { background-position: 0 0 !important; } .vstats-vlmonth { background-position: -32px 0 !important; } .vstats-vlweek { background-position: -64px 0 !important; }
.vstats-vxmonth { background-position: -96px 0 !important; } .vstats-vtoday { background-position: -128px 0 !important; } .vstats-vxweek { background-position: -160px 0 !important; }
.vstats-vyesterday { background-position: -192px 0 !important; }
#vvisit_counter .vtitle { flex: 1; }
#vvisit_counter .vnum { text-align: right; }

/* photo gallery: Phoca Gallery (phocagallery.css + colors of the old site's Phoca settings) */
#phocagallery a img { border: 0; }
#phocagallery a:hover { text-decoration: none; }
.pg-cat-row { margin: 0 0 2px; border-collapse: separate; }
.pg-cat-row td { vertical-align: middle; padding: 2px 4px; }
.pg-cat-row .pg-cat-img { width: 68px; height: 68px; text-align: center; background: url(/images/template/phoca/shadow3.png) 50% 50% no-repeat; }
.pg-cat-row .pg-cat-img img { max-width: 50px; max-height: 50px; width: auto; height: auto; }
.pg-cat-row .small { color: #999; }
.pg-category-view-desc { margin: 0 0 10px; }
.phocagallery-box-file { position: relative; float: left; text-align: center; width: 120px; min-height: 158px; margin: 5px; padding: 5px; background: #fcfcfc; border: 1px solid #e8e8e8; }
.phocagallery-box-file:hover { border-color: #b36b00; background: #f5f5f5; }
.phocagallery-box-file-first { display: table; width: 118px; height: 118px; margin: auto; background: url(/images/template/phoca/shadow1.png) 50% 50% no-repeat; }
.phocagallery-box-file-second { display: table-cell; vertical-align: middle; }
.phocagallery-box-file-third { text-align: center; line-height: 0; }
.phocagallery-box-file-third img { max-width: 100px; max-height: 100px; width: auto; height: auto; }
.pg-box-folder { min-height: 138px; }
#phocagallery .pg-name { color: #b36b00; font-size: 12px; margin-top: 2px; text-align: center; white-space: nowrap; overflow: hidden; }
#phocagallery .detail { text-align: right; margin-top: 2px; line-height: 1; }
#phocagallery .detail a { margin-left: 3px; }
.pg-center { text-align: center; clear: both; padding-top: 12px; }
.pg-inline { display: inline-block; margin: 2px 8px; vertical-align: middle; }
.pg-select { font-size: 12px; padding: 0 2px; }
@media (max-width: 575.98px) {
    .phocagallery-box-file { width: calc(50% - 10px); }
}

/* footer (#ja-footer of the old template) */
.site-footer { background: #fff; color: #666; font-size: 11px; clear: both; }
.footer-strip { overflow: hidden; white-space: nowrap; background: var(--page-bg); height: 132px; padding: 2px 0 0; }
.footer-strip-inner { display: inline-block; animation: strip 120s linear infinite; }
.footer-strip:hover .footer-strip-inner { animation-play-state: paused; }
.footer-strip img { width: 150px; height: 130px; margin: 0 2px 0 0; vertical-align: top; }
@keyframes strip { to { transform: translateX(-50%); } }
.footer-menu { background: var(--brown); text-align: center; margin: 0; padding: 0; line-height: 30px; }
.footer-menu li { display: inline; padding: 0 10px; background: url(/images/template/vline.gif) no-repeat center left; }
.footer-menu li:first-child { background: none; padding-left: 0; }
.footer-menu a { color: #fff; font-size: 14px; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.footer-contact { background: var(--brown-footer); color: yellow; padding: 5px; text-align: center; }
.footer-contact table { width: 100%; }
.footer-contact td { width: 50%; vertical-align: middle; padding: 0 4px; }
.footer-contact a { color: yellow; }

@media (max-width: 575.98px) {
    #article-index { float: none; width: auto; margin: 0 0 10px; }
}

@media (max-width: 991.98px) {
    .site-wrap { border-width: 4px; }
    .site-main { border-right: 0; }
    .footer-contact td { display: block; width: 100%; padding: 3px 0; }
    .cat-first { border-right: 0; }
    .top-bar { font-size: 12.5px; }
    .main-nav .navbar-nav { padding: 0 0 6px; }
    .main-nav .navbar-nav > .nav-item { border-right: 0; border-bottom: 1px solid var(--menu-sep); margin: 0; }
    .main-nav .nav-link { padding: 7px 12px !important; }
    .top-bar .today { margin-left: 0 !important; }
    .top-bar .search-form { width: 100%; }
    .top-bar .search-form input { width: 100%; }
}
