/* Tiến Thịnh - colours of the old Joomla template (shaper_awetive preset3) */
:root {
    --tt-blue: #184785;
    --tt-blue-2: #2980b9;
    --tt-dark: #363948;
    --tt-bg: #f0ece1;
    --tt-text: #4a4a4a;
}

body { background: var(--tt-bg); color: var(--tt-text); font-size: 15px; }
a { color: var(--tt-blue); text-decoration: none; }
a:hover { color: var(--tt-blue-2); }
img { max-width: 100%; height: auto; }

/* header */
.site-header { background: #fff; }
.site-header .logo img { display: block; }
.header-info .company { font-weight: 700; color: var(--tt-blue); text-transform: uppercase; }
.langs a { display: inline-block; margin-left: 6px; opacity: .55; }
.langs a.active, .langs a:hover { opacity: 1; }

/* main menu */
.main-nav { background: var(--tt-blue); padding: 0; }
.main-nav .navbar-toggler { border-color: rgba(255,255,255,.5); margin: 6px 0; }
.main-nav .navbar-toggler-icon { filter: invert(1); }
.main-nav .nav-link { color: #fff; font-weight: 600; text-transform: uppercase; padding: 14px 16px !important; font-size: 14px; }
.main-nav .nav-link:hover, .main-nav .nav-link.active, .main-nav .nav-link.show { color: #fff; background: var(--tt-blue-2); }
.main-nav .dropdown-menu { border-radius: 0; border: 0; margin-top: 0; padding: 0; min-width: 220px; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.main-nav .dropdown-item { padding: 10px 16px; border-bottom: 1px solid #eee; font-size: 14px; }
.main-nav .dropdown-item:hover { background: var(--tt-blue-2); color: #fff; }
@media (min-width: 992px) {
    .main-nav .dropdown:hover > .dropdown-menu { display: block; }
}
.search-form input, .search-mini input { width: 200px; border-radius: 2px; }
.search-mini input { width: 160px; }

/* breadcrumb */
.breadcrumb-wrap { background: #fff; padding: 10px 15px; margin-top: 15px; font-size: 14px; }

.site-main { padding: 20px 0 30px; }
.site-main > .container > .row > .col-lg-8 { background: #fff; padding: 20px 24px; }

/* titles */
.page-title { font-size: 22px; text-transform: uppercase; color: var(--tt-blue); font-weight: 700; margin-bottom: 18px; }
.block-title { font-size: 16px; text-transform: uppercase; font-weight: 700; color: var(--tt-blue); border-bottom: 2px solid var(--tt-blue-2); padding-bottom: 8px; margin-bottom: 14px; }
.section-title { font-size: 18px; text-transform: uppercase; font-weight: 700; color: #fff; background: var(--tt-blue); padding: 10px 15px; margin: 0; }

/* content from the editor */
.content-body { line-height: 1.7; overflow-wrap: break-word; }
.content-body img { height: auto !important; }
/* article / project detail: every picture of the text on its own line, centred */
.article .content-body img { display: block; float: none !important; margin: 12px auto !important; }
.project-main-image { display: block; text-align: center; margin-bottom: 16px; }
.project-main-image img { max-height: 520px; width: auto; max-width: 100%; }.content-body table { max-width: 100%; }
.content-body iframe { max-width: 100%; }

/* home */
.home-slider { background: #000; }
.home-slider img { width: 100%; height: 468px; object-fit: cover; display: block; }
.home-slider .caption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(24,71,133,.8); color: #fff; padding: 10px 16px; font-weight: 600; }
.home-slider .swiper-button-prev, .home-slider .swiper-button-next { color: #fff; }
.home-slider .swiper-pagination { bottom: 46px !important; }
.home-slider .swiper-pagination-bullet { background: #fff; opacity: .7; }
@media (max-width: 991px) { .home-slider img { height: 340px; } }
@media (max-width: 575px) { .home-slider img { height: 230px; } }

/* desktop: the slider column takes the height of the right column (intro + news), so both end on the same line */
@media (min-width: 992px) {
    .home-top > .col-lg-7 { display: flex; }
    .home-top .home-slider { flex: 1; min-height: 420px; width: 100%; }
    .home-top .home-slider .swiper-wrapper, .home-top .home-slider .swiper-slide { height: 100%; }
    .home-top .home-slider img { height: 100%; }
    .home-top > .col-lg-5 { display: flex; flex-direction: column; }
    .home-top .news-carousel { flex: 1; }
}
.home-slider .swiper-slide > a { display: block; height: 100%; }

.intro-box, .news-carousel { background: #fff; padding: 15px; }
.intro-body { font-size: 14px; }
.intro-body p { margin-bottom: 6px; }
.news-carousel { margin-top: 12px; }
.news-carousel h3 { font-size: 14px; font-weight: 700; margin: 8px 0 4px; line-height: 1.35; min-height: 2.7em; }
.news-carousel p { font-size: 13px; margin: 0 0 28px; min-height: 4.5em; }

/* text cut to a fixed number of lines so every card has the same height */
.news-carousel h3, .project-card h3, .side-project h4 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-carousel p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-card h3 { -webkit-line-clamp: 3; min-height: 4.05em; }
.home-section .swiper-slide { height: auto; }
.ratio > img { width: 100%; height: 100%; object-fit: cover; }
.thumb.ratio { display: block; background: #eee; overflow: hidden; }

.home-section { margin-top: 25px; }
.home-section .swiper { background: #ccc; padding: 10px; }
.home-section .swiper-button-prev, .home-section .swiper-button-next { color: #fff; background: rgba(24,71,133,.8); width: 34px; height: 34px; }
.home-section .swiper-button-prev:after, .home-section .swiper-button-next:after { font-size: 16px; }
.partners-swiper { background: #fff !important; }
.partner { display: flex; align-items: center; justify-content: center; height: 90px; }
.partner img { max-height: 80px; width: auto; }

/* project cards */
.project-card { background: #fff; height: 100%; padding-bottom: 10px; text-align: center; display: flex; flex-direction: column; }
.project-card .more { margin-top: auto; }
.project-card h3 { font-size: 14px; font-weight: 700; margin: 10px 8px 4px; line-height: 1.35; }
.project-card h3 a { color: var(--tt-blue); }
.project-card .more, .side-project .more, .news-item .more { font-size: 13px; color: var(--tt-blue-2); }
.col-lg-8 .project-card { border: 1px solid #e3e3e3; }

/* right column */
.side-block { background: #fff; padding: 15px; }
.side-project { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.side-project:last-child { border-bottom: 0; margin-bottom: 0; }
.side-project h4 { font-size: 14px; font-weight: 700; margin: 8px 0 4px; }

/* news list */
.news-item { display: flex; gap: 15px; padding: 14px 0; border-bottom: 1px solid #ddd; }
.news-item .thumb { flex: 0 0 170px; }
.news-item .thumb img { width: 170px; height: 115px; object-fit: cover; }
.news-item h2 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
.news-item p { margin: 6px 0; font-size: 14px; }
.meta { color: #888; font-size: 13px; }
@media (max-width: 575px) {
    .news-item { flex-direction: column; }
    .news-item .thumb img { width: 100%; height: auto; }
}
.related-list { padding-left: 18px; }
.related-list li { margin-bottom: 6px; }

/* bottom + footer */
.site-bottom { background: var(--tt-dark); color: #ccc; padding: 30px 0; font-size: 14px; }
.site-bottom .block-title { color: #fff; border-bottom-color: #555; }
.site-bottom a { color: #ddd; }
.site-bottom a:hover { color: #fff; }
.news-links li { padding: 6px 0; border-bottom: 1px dotted #555; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 5px; }
.gallery-thumbs a { width: 60px; height: 40px; overflow: hidden; border-radius: 2px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.contact-block p { margin-bottom: 6px; }
.site-footer { background: #2b2d39; color: #aaa; padding: 12px 0; font-size: 13px; }
.site-footer .to-top { color: #fff; }

/* pagination */
.pagination .page-link { color: var(--tt-blue); }
.pagination .active > .page-link { background: var(--tt-blue); border-color: var(--tt-blue); color: #fff; }
