/* SaigonTown Project Frontend - Part 2 */

.sgt-project-page .portfolio-sidebar,
.sgt-project-article-page .post-sidebar {
    margin-top: 20px;
}

.sgt-project-page .portfolio-meta {
    margin-bottom: 24px;
}

.sgt-project-page .portfolio-meta p {
    display: block;
    padding: 6px 10px 6px 0;
    margin-bottom: 4px;
}

.sgt-project-page .portfolio-meta p > span {
    display: inline-block;
    min-width: 100px;
    font-weight: 500;
}

.sgt-project-page .portfolio-meta .price {
    font-weight: 700;
}

.sgt-project-section {
    margin: 0 0 30px;
}

.sgt-project-section .heading {
    position: relative;
    margin-bottom: 15px;
    overflow: hidden;
}

.sgt-project-section .heading:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-bottom: 3px solid #ececec;
    z-index: 0;
}

.sgt-project-section .heading .title {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin: 0;
    padding: 0 18px 0 0;
    background: #fff;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.sgt-project-address {
    margin-bottom: 15px;
}

/* Accordion sidebox */
.sgt-project-sidebox-wrapper {
    margin: 0 0 18px;
    border: 1px solid #dcdada;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.sgt-project-sidebox-header {
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #ffca00;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    user-select: none;
}

.sgt-project-sidebox-title,
.sgt-project-sidebox-toggle {
    color: #fff;
}

.sgt-project-sidebox-toggle {
    display: inline-block;
    font-size: 18px;
    transition: transform .25s ease;
}

.sgt-project-sidebox-wrapper.active .sgt-project-sidebox-toggle {
    transform: rotate(90deg);
}

.sgt-project-sidebox-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}

.sgt-project-sidebox-wrapper.active .sgt-project-sidebox-content {
    max-height: 900px;
}

.sgt-project-sidebox-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sgt-project-sidebox-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.sgt-project-sidebox-list li:last-child {
    border-bottom: 0;
}

.sgt-project-sidebox-list a {
    display: block;
    padding: 11px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.sgt-project-sidebox-list a:hover {
    background: #fafafa;
}

.sgt-sidebox-link-text {
    display: inline-block;
    color: inherit;
}

.sgt-project-sidebox-list li.active > a,
.sgt-project-sidebox-list li.active .sgt-sidebox-link-text {
    color: #d32a26;
    font-weight: 700;
}

/* Gallery */
.sgt-project-album {
    margin-bottom: 25px;
}

.sgt-project-gallery-item {
    padding: 0 6px;
}

.sgt-project-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

.sgt-project-gallery .slick-prev,
.sgt-project-gallery .slick-next {
    z-index: 5;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 28px;
    line-height: 32px;
}

.sgt-project-gallery .slick-prev { left: 16px; }
.sgt-project-gallery .slick-next { right: 16px; }

/* Mobile horizontal project navigation */
.sgt-project-mobile-nav-wrapper {
    display: none;
}

@media (min-width: 992px) {
    .sgt-project-page .portfolio-sidebar,
    .sgt-project-article-page .post-sidebar {
        position: sticky;
        top: 110px;
        align-self: flex-start;
    }
}

@media (max-width: 991px) {
    .sgt-project-sidebox-wrapper {
        display: none;
    }

    .sgt-project-mobile-nav-wrapper {
        display: block;
        position: sticky;
        top: 70px;
        z-index: 100;
        margin: 0 0 20px;
        overflow-x: auto;
        overflow-y: hidden;
        background: #fff;
        border-bottom: 1px solid #e6e6e6;
        -webkit-overflow-scrolling: touch;
    }

    .sgt-project-mobile-nav-list {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        gap: 12px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .sgt-project-mobile-nav-list li {
        flex: 0 0 auto;
        margin: 0;
        white-space: nowrap;
    }

    .sgt-project-mobile-nav-list li a {
        display: inline-block;
        padding: 9px 4px;
        color: #333;
        font-size: 13px;
        text-decoration: none;
        border-bottom: 2px solid transparent;
    }

    .sgt-project-mobile-nav-list li.active a,
    .sgt-project-mobile-nav-list li.active .sgt-mobile-nav-link-text {
        color: #d32a26;
        border-bottom-color: #d32a26;
        font-weight: 700;
    }

    .sgt-project-page .portfolio-sidebar,
    .sgt-project-article-page .post-sidebar {
        display: none;
    }
}

/* v1.1 - PMH-style project section heading */
.sgt-project-page .heading {
    position: relative;
    z-index: 0;
    margin-bottom: 15px;
}

.sgt-project-page .heading:after {
    content: "";
    border-bottom: 5px solid #eaeaea;
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 100%;
    z-index: 0;
}

.sgt-project-page p.title {
    text-transform: uppercase;
    position: relative;
    color: rgb(211, 42, 38);
    display: inline-block;
    width: auto;
    z-index: 1;
    padding-right: 25px;
    font-size: 20px;
    line-height: 1.35;
    background: #fff;
    margin: 0 0 10px;
    font-weight: 600;
}

.sgt-project-page p.title:after {
    content: "";
    background: #d32a26;
    width: 5px;
    height: 5px;
    display: block;
    position: absolute;
    right: 5px;
    bottom: 8px;
}

.sgt-project-page #tong_quan {
    margin-top: 30px;
}

/* v1.1 - PMH-style post date / author row */
.sgt-project-page .sgt-entry-meta,
.sgt-project-article-page .sgt-entry-meta {
    margin: 0 0 12px;
    line-height: 1.5;
    font-size: .9em;
    text-transform: none;
}

.sgt-entry-meta a {
    color: inherit;
}
