/*!
Theme Name: Oregon
Theme URI: https://oregon.webstore.com.vn
Author: WebStore Team
Author URI: https://webstore.com.vn
Version: 1.0.0
Text Domain: oregon
Tags: Oregon Việt Nam cung cấp lam cưa xích, dây xích và phụ kiện chính hãng từ thương hiệu Oregon – giải pháp cắt chuyên nghiệp, bền bỉ và hiệu quả.
*/

:root {
    --red: #C8102E;
    --black: #3A3A3A;
}

/*---------------------------------
**** Scrollbar
-----------------------------------*/
/* width */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--red);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

.wrapper {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding-left: 12px;
    padding-right: 12px;
}

.ws-header {
    z-index: 999;
}

.js-header {
    position: relative !important;
}

.body-container {
    margin-top: 0 !important;
}

img {
    height: auto;
}

a {
    text-decoration: none !important;
}

/* Global style */

.hide {
    display: none !important;
}

.text-white {
    color: white !important;
}

.bg-white {
    background: white !important;
}

.ws-editor {
    line-height: 1.5;
}

.ws-heading {
    color: black;
    line-height: 1.4;
}

.ws-heading.center {
    text-align: center;
}

.aligncenter {
    display: block;
    margin: auto;
}

.wp-caption-text {
    font-size: 0.75em;
    text-align: center;
    background: #F9F9F9;
    font-style: italic;
    padding: 0.5rem;
}

figure.wp-caption {
    display: flex;
    margin-bottom: 1rem;
    justify-content: center;
    flex-direction: column;
}

/* Blocks style */

/* block-editor */
.block-editor,
.block-editor * {
    line-height: 1.6;
}
.block-editor h1,
.block-editor h2,
.block-editor h3,
.block-editor h4,
.block-editor h5,
.block-editor h6,
.block-editor p:not(:last-child) {
    margin-bottom: 1rem;
}

.block-editor ul li,
.block-editor ol li {
    margin-bottom: 0.5rem;
}

.block-editor ul li:last-child,
.block-editor ol li:last-child {
    margin-bottom: 0;
}

.block-editor h2 {
    font-size: 1.5rem;
}

.block-editor h3 {
    font-size: 1.25rem;
}

.block-editor h4 {
    font-size: 1.125rem;
}

.block-editor table {
    width: 100%;
    margin-bottom: 1.5rem;
    border: 1px solid #EAEAEA;
    border-collapse: collapse;
}

.block-editor table thead td,
.block-editor table tbody tr:nth-child(even) td {
    background: #F9F9F9;
}

.block-editor table thead td,
.block-editor table tbody td {
    padding: 10px 12px;
    border: 1px solid #EAEAEA;
}

.block-editor blockquote {
    padding: 1rem;
    margin: 0 0 1.5rem;
    line-height: 1.5rem;
    background: #F9F9F9;
    border-left: 4px solid #AAA;
}

.block-editor a {
    color: var(--red);
}

.block-editor img.aligncenter {
    margin: auto;
    display: block;
}

.block-editor .wpforms-container.wpforms-container-full {
    padding: 20px;
    border-radius: 0;
    background: #F9F9F9;
    border: 1px solid #EAEAEA;
}

/* block-image_group */
.block-image_group .OTB-container {
    width: 100%;
    aspect-ratio: 1/1;
    /* border-bottom: 6px solid #A5A4A2; */
}

.block-image_group .OTB-block {
    height: 100%;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.block-image_group .OTB-block:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at center, #0000004d, #000000b3 60%, #000000d6);
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    transition: all .3s ease-in-out;
}
.block-image_group .OTB-title {
    color: #fff;
    font-size: 2rem;
    line-height: 1.4;
    font-weight: 800;
    font-style: normal;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    z-index: 2;
}
.block-image_group .OTB-btn {
    background-color: #c8102e;
    text-align: center;
    display: block;
    padding: 12px 1rem;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    border: 2px solid transparent;
    transition: all .3s;
    position: relative;
    z-index: 2;
}
.block-image_group .OTB-block {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* wpforms */
.wpforms-container-full {
    margin: 0 !important;
}
.wpforms-container-full * {
    font-size: 0.875rem !important;
}
.wpforms-confirmation-container-full {
    margin: 0 !important;
}
.wpforms-submit {
    background: var(--red) !important;
}
.wpforms-field {
    padding: 0 !important;
    margin: 0 0 20px !important;
}
.wpforms-submit-container {
    margin: 20px 0 0 !important;
}
.wpforms-field-label {
    font-weight: 600 !important;
    margin: 0 0 0.5rem !important;
    font-size: 0.875rem !important;
}

/* custom style */

#ez-toc-container {
    margin-top: 1rem !important;
}

.current-menu-item > a {
    color: white;
}

.js-tcc-tile-title {
    overflow: hidden;
    line-height: 1.4;
    font-size: 1rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    text-transform: none;
    word-break: break-word;
    -webkit-box-orient: vertical;
    min-height: 3rem;
}

.js-tcc-tile-cta {
    margin: 0;
}

.js-tcc-tile-description {
    padding: 0;
    overflow: hidden;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    word-break: break-word;
    -webkit-box-orient: vertical;
    margin: 0.5rem auto;
}

.follow-us .link-list {
    gap: 0.75rem;
    display: flex;
    align-items: center;
}
.follow-us .link-list a {
    margin: 0;
}

#desktop-footer .content {
    height: 400px;
}

#desktop-nav-menu .sub-menu:not(.js-submenu) {
    display: none;
}

.block-video .relative.items-center {
    aspect-ratio: 16/9;
}

@media screen and (min-width: 767px) {

    .block-image_group .OTB-container {
        display: grid;
    }

    .block-image_group[data-count="1"] .OTB-container,
    .block-image_group[data-count="2"] .OTB-container,
    .block-image_group[data-count="3"] .OTB-container {
        height: 600px;
        grid-template-columns: repeat(3, 1fr);
    }

    .block-image_group[data-count="4"] .OTB-container {
        height: 500px;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 767px) {
    #black-bar-footer .black-bar-content,
    .js-tcc-tile-container {
        width: 100%;
    }

    h1.js-phsb-header.mv0.pv4 {
        padding-left: 12px;
        padding-right: 12px;
    }
}