/*
Theme Name: FTECH
Author: FTECH
Description: Base WordPress theme for FTECH.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ftech
*/

/* Vùng phân khu trên bản đồ mặt bằng khi được gắn link. */
a.l349xx {
    display: block;
    text-decoration: none;
}

/* ==================================================================
   SECTION TIỆN ÍCH NỔI BẬT (3 ô + popup bài viết)
================================================================== */
.elc-tien-ich {
    position: relative;
    overflow: hidden;
    background-color: var(--c1);
}

.elc-ti-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 12, 47, .82), rgba(8, 12, 47, .55));
    z-index: 0;
}

.elc-ti-container {
    position: relative;
    z-index: 1;
}

.elc-ti-heading h2 {
    text-align: center;
    color: #fff !important;
}

.elc-ti-mo-ta {
    max-width: 800px;
    margin: 0 auto 34px;
    text-align: center;
    line-height: 1.7;
}

.elc-ti-mo-ta p {
    color: #ffffffd9;
    font-weight: 400;
}

/* ---------- Lưới 3 ô ---------- */
.elc-ti-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 -13px;
}

.elc-ti-item {
    width: 33.3333%;
    padding: 0 13px;
    margin-bottom: 26px;
}

.elc-ti-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(3px);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.elc-ti-link:hover {
    transform: translateY(-6px);
    border-color: var(--c2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .38);
}

.elc-ti-anh {
    display: block;
    border-radius: 0;
    transition: transform .5s ease;
}

.elc-ti-body {
    display: block;
    padding: 22px 24px 26px;
}

.elc-ti-ten {
    display: block;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
    margin-bottom: 12px;
    transition: color .3s;
}

.elc-ti-link:hover .elc-ti-ten {
    color: var(--c2);
}

.elc-ti-tom-tat {
    display: block;
    color: #ffffffc4;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 18px;
}

.elc-ti-nut {
    display: inline-block;
    padding: 7px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    border: 1px solid var(--c2);
    border-radius: 20em;
    transition: .3s;
}

.elc-ti-nut i {
    margin-left: 6px;
}

.elc-ti-link:hover .elc-ti-nut {
    background: var(--c2);
    color: var(--c1);
}

/* Bài viết trong popup */
.elc-ti-bai-viet img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.elc-ti-bai-viet h2,
.elc-ti-bai-viet h3,
.elc-ti-bai-viet h4 {
    color: #fff !important;
    font-size: 18px;
    text-transform: none;
    margin: 20px 0 10px;
}

.elc-ti-bai-viet ul,
.elc-ti-bai-viet ol {
    padding-left: 20px;
    margin-bottom: 14px;
}

.elc-ti-bai-viet li {
    line-height: 1.7;
    margin-bottom: 6px;
}

@media only screen and (max-width: 991px) {
    .elc-ti-item {
        width: 50%;
    }

    .elc-ti-ten {
        font-size: 17px;
    }
}

@media only screen and (max-width: 575px) {
    .elc-ti-item {
        width: 100%;
    }

    .elc-ti-body {
        padding: 18px 18px 22px;
    }
}

/* ==================================================================
   MENU CON (dropdown)
   polo.css đã lo phần đóng/mở, đây là phần màu sắc cho khớp tông site.
================================================================== */
.l219{
        width: 16px !important;
}
/* ---------- Desktop ---------- */
@media only screen and (min-width: 992px) {

    #mainMenu nav > ul > li .dropdown-menu {
        min-width: 250px;
        padding: 6px 0;
        background-color: var(--c1);
        border: 0;
        border-top: 2px solid var(--c2);
        border-radius: 0 0 4px 4px;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
    }

    #mainMenu nav > ul > li .dropdown-menu > li > a {
        padding: 11px 20px;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.4;
        color: #fff !important;
        border: 0;
        white-space: normal;
        transition: .25s;
    }

    #mainMenu nav > ul > li .dropdown-menu > li > a:hover,
    #mainMenu nav > ul > li .dropdown-menu > li:hover > a,
    #mainMenu nav > ul > li .dropdown-menu > li.current > a,
    #mainMenu nav > ul > li .dropdown-menu > li.hover-active > a {
        padding-left: 26px;
        background: rgba(255, 255, 255, .08) !important;
        color: var(--c2) !important;
    }

    /* Mũi tên của menu cấp 3 */
    #mainMenu nav > ul > li .dropdown-submenu:before {
        color: #fff;
    }

    #mainMenu nav > ul > li .dropdown-submenu:hover:before {
        color: var(--c2);
    }

    /* Menu cấp 3 nằm cạnh, bỏ viền trên cho liền mạch */
    #mainMenu nav > ul > li .dropdown-submenu > .dropdown-menu {
        border-top: 0;
        border-left: 2px solid var(--c2);
        border-radius: 0 4px 4px 0;
    }
}

/* ---------- Mobile / tablet ---------- */
@media only screen and (max-width: 991px) {

    /* Menu dài + mở submenu thì phải cuộn được, custom.css đang để overflow:hidden. */
    .mainMenu-open #header #mainMenu {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #header #mainMenu:not(.menu-overlay) nav > ul > li {
        border-bottom: 1px solid rgba(255, 255, 255, .12);
    }

    #header #mainMenu:not(.menu-overlay) nav > ul > li:last-child {
        border-bottom: 0;
    }

    /* Mũi tên xổ xuống của mục có menu con */
    #header #mainMenu:not(.menu-overlay) nav > ul > li.dropdown:before {
        content: "\f107";
        right: 6px;
        top: 12px;
        color: #fff;
        opacity: .75;
        transition: transform .3s ease;
    }

    #header #mainMenu:not(.menu-overlay) nav > ul > li.dropdown.hover-active:before {
        transform: rotate(180deg);
        color: var(--c2);
    }

    #header #mainMenu:not(.menu-overlay) nav > ul > li.hover-active > a {
        color: var(--c2) !important;
    }

    /* Khối menu con */
    #header #mainMenu:not(.menu-overlay) nav > ul > li .dropdown-menu {
        background-color: rgba(0, 0, 0, .22) !important;
        border-radius: 4px;
    }

    #header #mainMenu:not(.menu-overlay) nav > ul li.hover-active > .dropdown-menu {
        margin: 0 0 10px;
        padding: 4px 0;
    }

    #header #mainMenu:not(.menu-overlay) nav > ul > li .dropdown-menu > li > a {
        padding: 10px 14px !important;
        font-size: 14px !important;
        font-weight: 400;
        text-align: center;
        color: #ffffffd9 !important;
    }

    #header #mainMenu:not(.menu-overlay) nav > ul > li .dropdown-menu > li + li > a {
        border-top: 1px solid rgba(255, 255, 255, .08);
    }

    #header #mainMenu:not(.menu-overlay) nav > ul > li .dropdown-menu > li > a:hover,
    #header #mainMenu:not(.menu-overlay) nav > ul > li .dropdown-menu > li.current > a {
        background: transparent !important;
        color: var(--c2) !important;
    }

    /* Menu cấp 3 thụt vào cho dễ phân biệt */
    #header #mainMenu:not(.menu-overlay) nav > ul > li .dropdown-menu .dropdown-menu > li > a {
        padding-left: 30px !important;
        font-size: 13px !important;
        opacity: .85;
    }

    #header #mainMenu:not(.menu-overlay) nav > ul li > .dropdown-menu > .dropdown-submenu:before {
        color: #fff;
        opacity: .75;
    }
}

/* ==================================================================
   TRANG TRONG (danh mục, bài viết, tuyển dụng, liên hệ)
================================================================== */

/* ---------- Banner đầu trang ---------- */
.elc-banner {
    position: relative;
    overflow: hidden;
    background: var(--c1);
}

.elc-banner-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.elc-banner-inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(90deg, rgba(8, 12, 47, .8), rgba(8, 12, 47, .15));
}

.elc-page-title {
    color: #fff !important;
    font-size: 38px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 10px;
    line-height: 1.3;
}

.elc-breadcrumb,
.elc-breadcrumb p,
.elc-breadcrumb a,
.elc-breadcrumb span {
    color: #ffffffcc !important;
    font-size: 13px;
    margin: 0;
}

.elc-breadcrumb a:hover {
    color: var(--c2) !important;
}

.elc-breadcrumb-bar {
    background: var(--c1);
    padding: 14px 0;
}

.elc-breadcrumb-bar p,
.elc-breadcrumb-bar a,
.elc-breadcrumb-bar span {
    color: #ffffffcc !important;
    font-size: 13px;
    margin: 0;
}

/* ---------- Khung trang nền trắng ---------- */
.elc-page-white {
    background: #fff;
}

.elc-page-white,
.elc-page-white p,
.elc-page-white li,
.elc-page-white td,
.elc-page-white th {
    color: #1d1919;
}

/*
 * custom.css đặt body,p,a,li { font-weight: 100 } — quá mảnh khi đọc trên nền
 * trắng. Trang trong nâng lên 400 làm mặc định, các thành phần quan trọng đậm hơn.
 */
.elc-page p,
.elc-page li,
.elc-page a,
.elc-page td,
.elc-page th,
.elc-banner p,
.elc-banner a,
.elc-breadcrumb-bar p,
.elc-breadcrumb-bar a {
    font-weight: 400;
}

.elc-page-white .heading h2,
.elc-page-white .elc-heading h2 {
    color: var(--c1) !important;
    font-size: 30px;
    text-align: left;
}

.elc-page-head {
    margin-bottom: 26px;
}

.elc-cat-description {
    margin-bottom: 26px;
    line-height: 1.7;
}

.elc-empty {
    padding: 40px 0;
    text-align: center;
    font-size: 15px;
}

/* ---------- Tabs danh mục ---------- */
.elc-cat-tabs {
    text-align: right;
    margin: 8px 0 0;
}

.elc-cat-tabs a {
    display: inline-block;
    padding: 4px 18px;
    margin: 0 0 6px 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c1);
    border: 1px solid var(--c1);
    border-radius: 20em;
    transition: .3s;
}

.elc-cat-tabs a:hover,
.elc-cat-tabs a.active {
    background: var(--c1);
    color: #fff;
}

/* ---------- Thẻ bài viết trên nền trắng ---------- */
.elc-page-white .elc-post-list .n256 {
    color: var(--c3);
    font-weight: 500;
}

.elc-page-white .elc-post-list .n258 {
    color: var(--c1);
    font-weight: 600;
}

.elc-page-white .elc-post-list .n259 {
    color: #4f5763;
    font-weight: 400;
}

.elc-page-white .elc-post-list .l420:hover .n258 {
    color: var(--c3);
}

/*
 * Lưới tin: dùng flex thay cho float của Bootstrap. Float làm thẻ cao thấp
 * khác nhau bị "mắc" vào nhau rồi rớt dòng, và số cột phụ thuộc media query
 * của polo.css. Flex cho kết quả cố định 4 thẻ/hàng trên desktop.
 */
.elc-post-list {
    display: flex;
    flex-wrap: wrap;
}

.elc-post-list:before,
.elc-post-list:after {
    display: none;
}

.elc-post-list > div {
    float: none;
    width: 25%;
    margin-bottom: 26px;
}

@media only screen and (max-width: 1199px) {
    .elc-post-list > div {
        width: 33.3333%;
    }
}

@media only screen and (max-width: 991px) {
    .elc-post-list > div {
        width: 50%;
    }
}

@media only screen and (max-width: 575px) {
    .elc-post-list > div {
        width: 100%;
    }

    .elc-post-list > div:not(:first-child)::before {
        display: none;
    }
}

/* ---------- Phân trang ---------- */
.elc-pagination {
    margin-top: 20px;
}

.elc-pagination .page-numbers {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 34px;
    padding: 0 10px;
    margin: 0 3px;
    text-align: center;
    font-weight: 500;
    color: var(--c1);
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    transition: .3s;
}

.elc-pagination .page-numbers:hover,
.elc-pagination .page-numbers.current {
    background: var(--c1);
    border-color: var(--c1);
    color: #fff;
}

.elc-pagination .screen-reader-text,
.elc-pagination .nav-links > h2 {
    display: none;
}

/* ---------- Bài viết chi tiết ---------- */
.elc-single-title {
    color: var(--c1) !important;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
}

.elc-single-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee;
}

.elc-single-meta span {
    margin-right: 18px;
    font-weight: 500;
}

.elc-single-meta a {
    color: var(--c3);
}

.elc-single-thumb {
    margin-bottom: 22px;
}

.elc-single-thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.elc-single-content {
    font-size: 15px;
    line-height: 1.8;
}

.elc-single-content p,
.elc-single-content li {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}

.elc-single-content strong,
.elc-single-content b {
    font-weight: 700;
}

.elc-single-content img {
    max-width: 100%;
    height: auto !important;
    border-radius: 6px;
}

.elc-single-content h2,
.elc-single-content h3,
.elc-single-content h4 {
    color: var(--c1) !important;
    font-size: 20px;
    margin: 26px 0 12px;
    text-transform: none;
}

.elc-block-title {
    color: var(--c1) !important;
    font-size: 20px !important;
    font-weight: 700;
    margin: 28px 0 12px !important;
    padding-left: 12px;
    border-left: 4px solid var(--c3);
    text-transform: uppercase;
}

.elc-single-tags {
    margin-top: 24px;
    font-size: 13px;
}

.elc-single-tags a {
    display: inline-block;
    padding: 2px 12px;
    margin: 0 4px 6px 0;
    background: #f1f3f7;
    border-radius: 20em;
    color: var(--c1);
    font-weight: 500;
}

.elc-single-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.elc-single-nav a {
    max-width: 48%;
    font-size: 13px;
    color: var(--c1);
    font-weight: 500;
}

.elc-single-nav a:hover {
    color: var(--c3);
}

.elc-nav-next {
    text-align: right;
    margin-left: auto;
}

/* ---------- Sidebar ---------- */
.elc-widget {
    background: #f7f9fc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.elc-widget-title {
    color: var(--c1) !important;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e3e8f0;
}

.elc-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.elc-widget-list li {
    margin-bottom: 14px;
}

.elc-widget-list li:last-child {
    margin-bottom: 0;
}

.elc-widget-list a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.elc-widget-thumb {
    flex: 0 0 64px;
    width: 64px;
    border-radius: 5px;
}

.elc-widget-info {
    flex: 1;
}

.elc-widget-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--c1);
}

.elc-widget-list a:hover .elc-widget-name {
    color: var(--c3);
}

.elc-widget-date {
    display: block;
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 4px;
}

.elc-widget-list-plain a {
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px dashed #dfe5ee;
}

/* ---------- Tin liên quan ---------- */
.elc-related {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

/* ---------- Tuyển dụng ---------- */
.elc-job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #f7f9fc;
    border: 1px solid #e6ecf5;
    border-left: 4px solid var(--c3);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: .3s;
}

.elc-job:hover {
    box-shadow: 0 6px 20px rgba(8, 12, 47, .1);
    transform: translateY(-2px);
}

.elc-job-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.elc-job-title a {
    color: var(--c1);
    font-weight: 700;
}

.elc-job-title a:hover {
    color: var(--c3);
}

.elc-job-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.elc-job-meta li {
    font-size: 14px;
    font-weight: 500;
    color: #3c4457;
}

.elc-job-meta i {
    color: var(--c3);
    margin-right: 6px;
}

.elc-job-action .btn-my {
    font-weight: 600;
    padding: 9px 24px;
}

.elc-job-action {
    flex: 0 0 auto;
}

.elc-job-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #e6ecf5;
    border: 1px solid #e6ecf5;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 26px;
}

.elc-job-info-item {
    background: #f7f9fc;
    padding: 12px 18px;
}

.elc-job-info-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #7b8494;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.elc-job-info-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--c1);
}

.elc-apply-form {
    margin-top: 34px;
    padding: 26px;
    background: #f7f9fc;
    border-radius: 8px;
}

.elc-apply-form .wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d9e0ea;
    border-radius: 4px;
    margin-bottom: 12px;
    background: #fff;
}

.elc-apply-form textarea.wpcf7-form-control {
    height: 110px;
    padding: 12px 14px;
}

/* ---------- Trang liên hệ ---------- */
.elc-lien-he-head {
    margin-bottom: 26px;
}

.elc-lien-he-head .heading h2 {
    text-align: center;
}

.elc-ban-do iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

@media only screen and (max-width: 991px) {
    .elc-banner-img {
        height: 220px;
    }

    .elc-page-title {
        font-size: 26px;
    }

    .elc-cat-tabs {
        text-align: left;
    }

    .elc-cat-tabs a {
        margin: 0 4px 6px 0;
    }

    .elc-job {
        flex-direction: column;
        align-items: flex-start;
    }

    .elc-job-info {
        grid-template-columns: 1fr;
    }

    .elc-sidebar {
        margin-top: 30px;
    }

    .elc-single-nav {
        flex-direction: column;
        gap: 12px;
    }

    .elc-single-nav a {
        max-width: 100%;
    }

    .elc-nav-next {
        text-align: left;
        margin-left: 0;
    }
}

/* ------------------------------------------------------------------
   Danh sách phân khu — tự căn giữa khi số lượng ít hơn 7
   (custom.css đặt cứng .r772 { width: calc(100%/7) } nên ít item sẽ dạt trái)
------------------------------------------------------------------ */
.r771 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* .row có :before/:after clearfix, trong flex container sẽ thành flex item. */
.r771:before,
.r771:after {
    display: none;
}

.r771 > .r772 {
    float: none;
}

@media only screen and (max-width: 991px) {
    /* Mobile đã căn giữa bằng flex, bỏ hack margin-left của item lẻ cuối. */
    .r771 > .r772:last-child:nth-child(2n+1) {
        margin-left: 0;
    }
}

/* ------------------------------------------------------------------
   Popup chi tiết phân khu
------------------------------------------------------------------ */
/* Căn popup ra giữa màn hình theo cả chiều dọc lẫn chiều ngang. */
.modal-elc {
    text-align: center;
    padding: 0 !important;
}

.modal-elc:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}

.modal-elc .modal-dialog {
    display: inline-block;
    vertical-align: middle;
    text-align: left;
    width: 96%;
    max-width: 1100px;
    margin: 20px auto;
}

.modal-elc .modal-content {
    background: #fff;
    border: 0;
    border-radius: 4px;
    color: #fff;
    overflow: hidden;
}

.modal-elc .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    padding: 20px 25px;
}

.modal-elc .modal-header .close {
    color: #fff;
    opacity: .8;
    font-size: 30px;
    font-weight: 300;
    text-shadow: none;
    margin-top: -4px;
}

.modal-elc .modal-header .close:hover {
    opacity: 1;
}

.modal-elc .modal-title {
    color: #000;
    font-size: 22px;
    line-height: 1.3;
    text-transform: uppercase;
    margin: 0;
}

.modal-elc .modal-title span {
    display: block;
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    opacity: .85;
    margin-top: 6px;
}

.modal-elc .modal-body {
    padding: 25px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.modal-elc .pk-gallery {
    position: relative;
    margin-bottom: 22px;
}

.modal-elc .pk-gallery img {
    width: 100%;
    height: auto;
    display: block;
    /* Chặn ảnh quá cao đẩy bài viết xuống dưới tầm nhìn. */
    max-height: 46vh;
    object-fit: cover;
}

/* Gallery chỉ có 1 ảnh: không dùng slider, hiển thị ảnh thẳng. */
.modal-elc .pk-carousel-single {
    display: block;
}

.modal-elc .pk-carousel-single .pk-gallery-item {
    display: block;
}

/* Trước khi Owl khởi tạo: chỉ hiện ảnh đầu tiên để tránh nháy cả chồng ảnh. */
.modal-elc .pk-carousel:not(.owl-loaded) .pk-gallery-item + .pk-gallery-item {
    display: none;
}

.modal-elc .pk-carousel .owl-nav .owl-prev,
.modal-elc .pk-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    font-size: 24px;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    border-radius: 50%;
    margin: 0;
    transition: background .25s;
}

.modal-elc .pk-carousel .owl-nav .owl-prev:hover,
.modal-elc .pk-carousel .owl-nav .owl-next:hover {
    background: rgba(0, 0, 0, .75);
}

.modal-elc .pk-carousel .owl-nav .owl-prev {
    left: 12px;
}

.modal-elc .pk-carousel .owl-nav .owl-next {
    right: 12px;
}

.modal-elc .pk-carousel .owl-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    text-align: center;
}

.modal-elc .pk-carousel .owl-dots .owl-dot span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    transition: background .25s;
}

.modal-elc .pk-carousel .owl-dots .owl-dot.active span {
    background: #fff;
}

.modal-elc .pk-mo-ta {
    margin-bottom: 22px;
    line-height: 1.7;
}

.modal-elc .pk-mo-ta p:last-child {
    margin-bottom: 0;
}

.modal-elc .tabs-navigation li a {
    color: #fff;
}

.modal-elc .tabs-content {
    line-height: 1.7;
}

/* Lightbox (magnificPopup) phải nổi trên modal của Bootstrap. */
.mfp-bg {
    z-index: 1060;
}

.mfp-wrap {
    z-index: 1061;
}

@media only screen and (max-width: 767px) {
    .modal-elc .modal-dialog {
        width: calc(100% - 24px);
        margin: 12px auto;
    }

    .modal-elc .pk-carousel .owl-nav .owl-prev,
    .modal-elc .pk-carousel .owl-nav .owl-next {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 18px;
    }

    .modal-elc .modal-body {
        padding: 18px;
        max-height: calc(100vh - 150px);
    }

    .modal-elc .modal-title {
        font-size: 18px;
    }
}
