/*
Theme Name: Mondial
Author: MONDIAL.vn
Author URI: https://mondial.vn
Description: Công ty thiết kế thương hiệu Tận Tâm - Uy Tín
Version: 100.0
*/
@import url("style_adder.css");

@font-face {
    font-family: 'mainr';
    src: url("fonts/mainr.ttf");
    font-display: swap;
}
@font-face {
    font-family: 'mainm';
    src: url("fonts/mainm.ttf");
    font-display: swap;
}
@font-face {
    font-family: 'mainb';
    src: url("fonts/mainb.ttf");
    font-display: swap;
}

:root {
    --main: #633617;
    --sub: #D79B29;
	--lgray: #808080;
    --gray: #202020;
}
::-webkit-scrollbar { width: 10px;background-color: #f1f1f1; }
::-webkit-scrollbar-thumb {
    height: 20%;
    background: #aaa;
    transition: 0.3s ease-out;
}
::-webkit-scrollbar-thumb:hover { background: #ccc }
::selection { background: #80808050; color: #000; }
::-moz-selection { background: #80808050; color: #000; }
::-webkit-selection { background: #80808050; color: #000; }

html {
    scroll-behavior: smooth;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}
html,body,button,p,text,textarea,select,input {
	outline: 0;
	font-family: 'mainr';
    line-height: 1.6;
}
b, strong { font-weight: normal; font-family: 'mainb'; }
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    font-family: 'mainb';
    line-height: 1.3;
    transition: 0.3s ease-out;
}
.wp-block-heading, p {
    scroll-margin-top: 100px;
}

/*WRAPPER_CENTER*/
.wrapper-center { margin: auto; }
@media (min-width: 1801px) { .wrapper-center { max-width: 1600px;}}
@media (min-width: 569px) { .wrapper-center { width: 90%;}}
@media (max-width: 568px) { .wrapper-center { margin: 0 30px }}

/*header*/
.pdt60 { padding-top: 70px }
.fixed { 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.custom-logo-link img { max-width: 200px; }
.head-bar-in {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}
.head-profile .mondial-button { margin: 0 }
@media (max-width: 1024px) { .head-profile { display: none; } }
/*head main menu*/
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
    line-height: inherit;
}
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-item-has-children > a.mega-menu-link > span.mega-indicator {
    margin: 0 !important;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
    line-height: 1.1 !important;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item:last-child { margin: 0; }
#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner, 
#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner::before, 
#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-0 .mega-toggle-animated-inner::after {
    height: 2px;
}
.mega-current-post-ancestor>a { color: var(--sub) !important}
@media only screen and (min-width: 1025px) {
    .mega-sub-menu { top: 50px !important; }
}
@media only screen and (max-width: 1024px) {
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        padding: 10px 20px;
    }
}
#menu-services-menu {
    padding: 0;
    margin: 5px 0 0 0;
    display: flex;
    justify-content: space-around;
}
#menu-services-menu li {
    margin: 0;
    width: 25%;
    margin: 1px;
}
#menu-services-menu li a { 
    text-align: center;
    padding: 6px 10px 5px 10px;
    display: inline-block;
    width: 100%;
    font-family: 'mainm';
    text-transform: uppercase;
    background-color: var(--sub);
    color: #000;
    font-size: 14px;
}
#menu-services-menu li a:hover {
    background-color: var(--gray);
    color: var(--sub)
}
@media (max-width: 1200px) {
    .head-service-menu { display: none;}
}

/*footer*/
.mondial-footer { background-color: var(--gray);}
.mondial-footer .decor {
    opacity: 0.1;
    z-index: 0;
    top: 0;
    right: 0;
}
.mondial-footer { padding: 50px 0 0 0; overflow: hidden; }

.footer-info * { color: #fff }
.footer-info hr { 
    background-color: #ffffff20;
    width: 100%;
    margin: 0 30px;
}
.footer-info .hotline .number {
    line-height: 1;
    font-size: 4em;
    font-family: 'mainb';
    padding-bottom: 30px;
}
.footer-info h3 { color: var(--sub); }
.footer-info ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
}
.footer-info ul li { margin: 0 20px 15px 0; }
.footer-info a {
    position: relative;
    display: inline;
    background: linear-gradient(to right, var(--sub) 0%, var(--sub) 100%);
    background-size: 0px 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
}
.footer-info a:hover { 
    color: var(--sub);
    background-size: 100% 1px; 
}
#menu-menu-service li {
    width: 25%;
    margin: 10px 0;
    padding-left: 20px;
}
#menu-menu-service li a {
    font-size: 18px;
    font-family: 'mainm';
    color: #fff;
}
#menu-menu-service li a::before {
    position: absolute;
    content: "";
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: var(--sub);
}
@media (min-width: 569px) { 
    
    .footer-info { margin: 0 -30px; } 
    .footer-info .box { margin: 30px; }
    .footer-info .box.mid h3 { margin-top: 50px;}
}
@media (max-width: 568px) { 
    .footer-info hr { margin: 0 }
    #menu-menu-service li {
        width: 50%;
    }
    .footer-info .box { margin: 30px 0; }
}

/*contact form*/
.wpforms-field { padding: 10px 0 !important; }
.wpforms-field-label { 
    margin-bottom: 8px !important; 
    font-family: 'mainm' !important;
    font-weight: normal !important;
}
.wpforms-required-label { color: var(--sub) !important }
.wpforms-field-checkbox ul { margin-top: 10px !important;}
div.mondial-form-1.wpforms-container-full .wpforms-field-label { 
    color: #fff;
    margin: 0;
}
div.mondial-form-1.wpforms-container-full input[type=text],
div.mondial-form-1.wpforms-container-full input[type=email],
div.mondial-form-1.wpforms-container-full .wpforms-form textarea {
    background-color: transparent;
    color: #fff !important;
    border: unset;
    border-bottom: 1px solid #ffffff20;
    border-radius: unset;
    padding: 0;
}
div.mondial-form-1.wpforms-container-full input[type=text]:focus,
div.mondial-form-1.wpforms-container-full input[type=email]:focus, 
div.mondial-form-1.wpforms-container-full select:focus, 
div.mondial-form-1.wpforms-container-full textarea:focus {
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--sub)
}
div.mondial-form-1.wpforms-container-full input { height: 30px; }
div.mondial-form-1.wpforms-container-full .wpforms-form textarea { 
    margin: 5px 0;
    height: 40px !important;
}
.wpforms-submit-container {text-align: center;}
.wpforms-container-full button[type=submit] {
    height: 40px;
    width: 180px;
    font-size: 15px !important;
    background-color: var(--sub) !important;
    font-family: 'mainm' !important;
}
.wpforms-container-full button[type=submit]:hover {
    background: var(--main) !important;
}

@media (max-width: 568px) {
    .wpforms-field {
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 0;
    }
}


.block-mobile-buttons {
    z-index: 3;
    position: fixed;
    right: 5px;
    bottom: 0px;
}
.pulse {
    cursor: pointer;
    margin: 25px 10px;
    padding: 8px;
    background-color: var(--sub);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.pulse:hover { background-color: var(--main); }
.pulse::before,
.pulse::after {
    content: "";
    position: absolute;
    border: 1px solid var(--sub);
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    border-radius: 50%;
    animation: pulse 1s linear infinite;
}
.pulse::after { animation-delay: 0.3s }
.pulse:hover::before, 
.pulse:hover::after { border: 1px solid var(--main); }
.pulse img { width: 20px; height: 20px; }
@keyframes pulse {
    0% { transform: scale(0.5); opacity: 0 }
    50% { transform: scale(1); opacity: 1 }
    100% { transform: scale(1.3); opacity: 0 }
}
/*end footer*/

/*trang chu*/
/*trang chu du an*/
@media (min-width: 569px) {
    .home-news-2 { 
        margin: 0 -10px;
        padding: 20px 0 50px 0; 
    }
    .home-news-2>.item:nth-child(1),
    .home-news-2>.item:nth-child(2) { width: 50% }
    .home-news-2>.item:nth-child(3),
    .home-news-2>.item:nth-child(4),
    .home-news-2>.item:nth-child(5) { width: 33.3% }
    .home-news-2>.item:nth-child(1) .thumbnail>img,
    .home-news-2>.item:nth-child(2) .thumbnail>img { height: 60vh;}
    .home-news-2 a .thumbnail>img { height: 40vh; max-height: 500px;}
}
@media (max-width: 568px) {
    .home-news-2 { margin: 0 -15px }
    .home-news-2>.item { width: 100% }
}
.home-news-2 a {
    display: block;
    margin: 10px;
    height: calc(100% - 20px);
    border-radius: 20px;
    overflow: hidden;
}
.home-news-2 a .thumbnail { overflow: hidden; }
.home-news-2 a .thumbnail>img {
    width: 100%;
    object-fit: cover;
}
.home-news-2 a:hover .thumbnail>img { transform: scale(1.1); }
.home-news-2 .info {
    align-items: flex-end;
    width: 100%;
    left: 0;
    bottom: 0;
    padding: 100px 20px 20px 20px;
    background: linear-gradient( #00000000, #00000080);
}
.home-news-2 .info h3 {
    font-family: 'mainm';
    color: #fff;
    margin: 0;
}

/*trang chu tin tuc - home news*/
.home-news { margin: 50px 0}

/*trang chu danh gia sao - home-rating*/
.home-rating { padding-top: 20px; display: flex; justify-content: flex-end;}

/*trang khao sat*/
.template-post-survey { padding: 50px 0 }
.template-post-survey h1 { 
    margin: 0 0 20px 0;
    font-size: 40px;
    color: var(--main);
    text-transform: uppercase;
}
.template-post-survey form {
    width: 100%;
    display: flex; 
    flex-wrap: wrap;
    margin: 0 -10px;
}
.template-post-survey h1,
.template-post-survey h2 { width: 100%;}
.template-post-survey form>p,
.template-post-survey form h2 { margin: 10px;}
.template-post-survey form .wp-block-image { width: 100%; margin: 20px 10px; }
.survey-question p { margin: 3px 0; }
.survey-question p.question { margin: 0 0 10px 0; }
.survey-question { 
    width: 33.33%;
    padding: 10px;
}
.survey-question label { 
    cursor: pointer;
    color: var(--lgray)
}
.survey-question label:hover { color: #000; } 
.survey-button { margin: 20px 0; }
.survey-question input[type="radio"] { margin-right: 8px; }

.survey-email-form { 
    width: 100%;
    justify-content: space-between;
}
.survey-email-form label {
    width: 32%;
}
.survey-email-form input { 
    width: 100%;
    margin: 10px;
}
.survey-button input[type="submit"] {
    text-transform: uppercase;
    font-family: 'mainm';
    background: var(--sub);
    color: var(--gray);
    padding: 8px 30px;
    border-radius: 30px;
    border: unset;
    transition: 0.3s;
}
.survey-button input[type="submit"]:hover {
    background: var(--gray);
    color: var(--sub)
}
@media (max-width: 768px) {
    .template-post-survey .survey-question { width: calc(100% - 40px); } 
    .survey-email-form label { width: 100%; }
}
.survey-comment { margin: 50px -10px 0 -10px;}
.survey-comment .box { 
    padding: 20px;
    margin: 10px;
    border: 2px solid var(--sub);
    border-radius: 10px;
    height: calc(100% - 20px);
}
.survey-comment .box h2 { margin: 0; }
.survey-comment .left p { margin: 15px 0 0 0; }
.survey-comment .right {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.survey-comment .right .hotline {
    font-size: 40px;
    font-family: 'mainb';
    color: var(--sub);
    line-height: 1;
    margin-top: 10px;
}
/*trang trong*/
.page-content { padding: 50px 0; }
.entry-title { 
    position: relative;
    max-width: 1000px;
    color: var(--main);
    text-transform: uppercase;
    font-size: 40px;
    letter-spacing: -1px;
    margin: 0 auto 30px auto;
    text-align: center;
}
.entry-title::before {
    content: "";
    position: absolute;
    width: 8%;
    height: 4px;
    background-color: var(--sub);
    bottom: -15px;
    left: 50%;
    transform: translate(-50%, 0);
}
@media (max-width: 568px) { 
    .entry-title { text-align: left; }
    .entry-title::before { 
        left: 0;
        transform: translate(0, 0);
    } 
}

/*trang 404*/ 
.number-404 { height: 200px; }
.number-404 .number {
    font-size: 160px;
    line-height: 1;
    color: #00000000;
    -webkit-text-fill-color: #f1f1f1;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: var(--main);
    text-shadow: 0px 8px var(--main);
}
.mondial-404 .return-home { margin: 30px 0; }


/*breadcrumb*/
.breadcrumbs { 
    background-color: var(--gray);
    padding: 12px 0px;
}
.aioseo-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap;}
.aioseo-breadcrumbs * { font-size: 13px; color: #fff }
.aioseo-breadcrumb-separator,
.aioseo-breadcrumbs a:hover { color: var(--sub)}
.aioseo-breadcrumb-separator { font-family: 'mainm'; }
.aioseo-breadcrumb-separator:not(:first-child) { margin: 0 8px; }
/*end breadcrumb*/


/*navigation*/
.navigation ul {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.navigation li a,
.navigation li a:hover,
.navigation li.active a,
.navigation li.disabled {
    font-family: 'mainm';
    font-size: 13px;
    line-height: 1;
    display: inline-block;
    padding: 10px 16px;
    margin: 5px;
    color: #000;
    background-color: #f1f1f1;
    cursor: pointer;
}
.navigation li.active a,
.navigation li a:hover {
    color: #fff;
    background-color: var(--sub);
}
/*end navigation*/

/*animation slide */
.anisl { transform: translate3d(-100px, 0px, 0px); }
.anisr { transform: translate3d(100px, 0px, 0px); }
.anist { transform: translate3d(0px, -100px, 0px); }
.anisb { transform: translate3d(0px, 100px, 0px); }
.anis {
    position: relative;
    z-index: 10;
    opacity: 0;
    transition: all 800ms ease-out;
}
.anis.in-view {
    opacity: 1;
    transform: translate3d(0px, 0px, 0px);
    z-index: 0;
}

/*tieu de mondial-title*/
.mondial-title { font-size: 2.5em;}

/*nut mondial-button*/
.mondial-button {
    font-size: 15px;
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 30px;
    background-color: #fff;
    margin: 10px;
}
.mondial-button::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: -100%;
    top: 0;
    z-index: 0;
    transition: 0.3s ease-out;
}
.mondial-button:hover::after { left: 0; }
.mondial-button span { 
    position: relative; 
    display: inline-block;
    z-index: 1;
    padding: 10px 35px;
    font-family: 'mainm';
    line-height: 1;
    border-radius: 30px;
}
.mbtn-1 {
    border: none;
    color: var(--sub);
    background-color: var(--gray);
}
.mbtn-3 {
    border: none;
    color: var(--gray);
    background-color: var(--sub);
}
.mbtn-1::after { background-color: var(--sub); }
.mbtn-3::after { background-color: var(--gray); }
.mbtn-2::after { background-color: var(--main); }
.mbtn-2 span { 
    color: var(--main);
    border: 2px solid var(--main) 
}
.mbtn-1:hover span { color: var(--main); }
.mbtn-2:hover span,
.mbtn-3:hover span { color: var(--sub); }



/*trang du an - danh muc*/
.list-projects-title {
    color: var(--main);
    text-transform: uppercase;
}
.project-item-thumbnail { height: 100%; }
.the-list-projects { 
    padding: 30px 0 10px 0;
    margin: 0 -10px;
}
.the-project-item { 
    overflow: hidden;
    height: calc(100% - 20px);
    margin: 10px;
    display: block; 
}
.the-project-item .info {
    padding: 20px 30px;
    width: 100%;
    height: 50%;
    align-items: flex-end;
    left: 0;
    bottom: 0;
    background: linear-gradient(transparent, #00000090);
}
.the-project-item .post-title {
    color: #fff;
    font-size: 16px;
    font-family: 'mainm';
    margin: 0;
}
.the-project-item .post-title::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 3px;
    background-color: var(--sub);
    left: -30px;    
    top: 1.2ex;
}

@media (min-width: 1025px) {
    .the-list-projects {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 10px;
        grid-template-areas:
            "one one two"
            "one one three";
    }
    .the-list-projects .the-project-item:nth-child(1) { grid-area: one; }
    .the-list-projects .the-project-item:nth-child(2) { grid-area: two; }
    .the-list-projects .the-project-item:nth-child(3) { grid-area: three; }
    .the-list-projects .the-project-item:nth-child(1) .post-title { font-size: 32px; }
}
@media (max-width: 1024px) {
    .the-list-projects .the-project-item  { 
        width: calc(50% - 20px);
        height: calc(100% - 20px);
        margin: 10px;
    }
}
@media (max-width: 568px) {
    .the-list-projects .the-project-item { width: 100%; }
}
/*trang du an - chi tiet*/



/*trang tin tuc - danh muc*/
#mondial_posts { padding: 30px 0 50px 0; overflow: hidden; }
#mondial_posts .decor {
    top: -130px;
    right: 0;
    z-index: -1;
}
.list-posts-title {
    color: var(--main);
    text-transform: uppercase;
}
.post-title-description p { margin: 0; }
.the-list-posts { margin: 10px -10px; }
.the-post-item {
    background-color: #fff;
    border: 1px solid #ddd;
    display: block;
	height: calc(100% - 30px);
    margin: 15px 10px;
}
.the-post-item:hover { box-shadow: 0px 5px 10px -5px #00000080; }
.the-post-item .info { padding: 15px 20px; }
.the-post-item .post-date {
    width: 48px;
    top: 0;
    left: 15px;
    padding: 7px 0px;
    color: #fff;
    background-color: var(--main);
    line-height: 1;
    z-index: 1;
    border-bottom: 2px solid var(--sub);
    font-family: 'mainm';
    transition: 0.3s ease-out;
}
.the-post-item .post-date .day { font-size: 20px; }
.the-post-item .post-date .month {
    display: inline-block;
    font-size: 12px;
    margin-top: 5px;
    padding-top: 7px;
    border-top: 1px solid #fff;
    letter-spacing: 1px;
}
.the-post-item:hover .post-date { background-color: var(--sub); }
.the-post-item .line {
    content: '';
    background-color: var(--sub);
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    transition: 0.5s ease-out;
}
.the-post-item:hover .line { width: 100%; }
.the-post-item .post-title {
    line-height: 1.4;
    font-size: 15px;
    font-family: 'mainm';
    margin: 0;
	overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
.post-item-thumbnail {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding-top: 66%;
}
.post-item-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.the-post-item:hover .post-item-thumbnail img,
.the-project-item:hover .post-item-thumbnail img { transform: scale(1.1); }


/*trang tin tuc - chi tiet*/
.mondial-post { 
    padding: 50px 0; 
    background: #e1e1e1;
}
.post-detail h1.post-title { 
    position: relative;
    padding-bottom: 15px;
}
.post-detail h1.post-title::before {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--sub);
    bottom: 0;
    left: 0;
}
/*post form*/
.post-form { margin-top: 50px;}
@media (max-width: 1024px) {
    .mondial-post .box-1 { order: 2; }
    .mondial-post .box-2 { order: 1; }
    .mondial-post .box-3 { order: 3; }
}

/*table of content - toc*/
#page .ez-toc-open-icon { font-weight: 'normal';}
#ez-toc-container a.ez-toc-toggle span { left: 0 }
.ez-toc-sticky-title-container { padding: 20px 20px 15px 20px; }
.ez-toc-sticky-fixed .ez-toc-sidebar .ez-toc-sticky-title-container .ez-toc-sticky-title,
.ez-toc-sidebar .ez-toc-sticky-title {
    font-family: 'mainm';
    font-weight: normal;
}
.ez-toc-sticky-fixed .ez-toc-sidebar {
    padding: 20px 30px 20px 20px;
}
#ez-toc-sticky-container ul {
    margin-left: 0 !important;
    margin-bottom: 5px;
}
#ez-toc-sticky-container ul li {
    position: relative;
    margin: 8px 0;
}
#ez-toc-sticky-container .ez-toc-sticky-heading-level-2 { padding-left: 20px; }
.ez-toc-sticky-heading-level-2::before {
    position: absolute;
    content: "";
    background-color: var(--sub);
    width: 15px;
    height: 2px;
    top: 12px;
    left: 0px;
}
.post-toc #ez-toc-container {
    padding: 0;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    box-shadow: none;
}
.mondial-post-sub-title,
.post-toc #ez-toc-container .ez-toc-title {
    position: relative;
    font-family: 'mainm';
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 20px;
}
.mondial-post-sub-title::before,
.post-toc #ez-toc-container .ez-toc-title::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: var(--sub);
}
#ez-toc-container a {
    line-height: 1.3;
    margin-bottom: 10px;
}
.post-toc #ez-toc-container ul ul { margin-left: 0; }
.post-toc .ez-toc-counter nav ul li a::before { margin: 0 6px 0 2px; }
.post-detail { 
    background-color: #fff; 
    border-radius: 5px;
}

@media (min-width: 1025px) { 
    .post-toc,
    .post-related { margin: 50px 0px 10px 0px; }
    .post-detail { 
        margin: 0 30px; 
        padding: 30px 40px; 
    }
}
@media (max-width: 1024px) {
    .post-toc { margin: 30px 0; }
    .post-related { margin: 50px 0; }
    .post-detail {
        margin-left: -30px;
        margin-right: -30px;
        padding: 30px;
    }
}

/*block editor*/
.tac { text-align: center; }
.tal { text-align: left; }
.tar { text-align: right; }
.taj { text-align: justify; }
.ttu {text-transform: uppercase;}

.psr { position: relative; }
.psa { position: absolute; }
.lh1 { line-height: 1;}
.ls1 { letter-spacing: 1px;}
.clb { color: #000; }
.clw { color: #fff; }
.cls { color: var(--sub) }
.clm { color: var(--main); }
.fs20 { font-size: 20px; }
.fs30 { font-size: 30px; }
.fs40 { font-size: 40px; }
.fs50 { font-size: 50px; }
.fs60 { font-size: 60px; }
.ffb { font-family: 'mainb';}
.ffm { font-family: 'mainm';}
.ffr { font-family: 'mainr';}

.gap0 { gap: 0 }
.gap1 { gap: 1em }

.bgw { background-color: #fff}
.bgm { background-color: var(--main)}
.bgs { background-color: var(--sub)}
.w100 { width: 100% }
.w90 { width: 90% }
.w80 { width: 80% }
.w70 { width: 70% }
.w60 { width: 60% }
.w50 { width: 50% }
.w40 { width: 40% }
.w30 { width: 30% }
.w20 { width: 20% }
.w10 { width: 10% }
.lsn { list-style: none;}
.mg0 { margin: 0 !important}
.mga { margin: 15px auto !important }
.jcc { justify-content: center;}
.mg5 { margin: 5px }
.mg30 { margin: 30px; }
.b2s { border: 2px solid var(--sub)}
.pd20 { padding: 20px; }
.pd0-20 { padding: 0px 20px; }
.pd10-20 { padding: 10px 20px; }
.br20 { border-radius: 20px; }
.br15 { border-radius: 15px; }
.br10 { border-radius: 10px; }
.b2ss5g { 
    border: 2px solid var(--sub);
    box-shadow: 5px 5px #ddd;
}
.ts20 { text-shadow: 20px 20px #ddd; }
@media (max-width: 768px) {
    .w100,.w90,.w80,.w70,.w60,.w50,.w40,.w30,.w20,.w10 { width: 100% }
    .mtal { text-align: left !important;}
}
@media (max-width: 568px) {
    .fsm2 { font-size: 2em !important; }
}
/*link*/
.the-content a:not(.wp-element-button, .ez-toc-link, .wp-block-latest-posts__post-title) {
    background-image: linear-gradient(120deg, #ffa600 0%, #ffa600 100%);
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: bottom;
    color: inherit;
    text-decoration: none;
    overflow-wrap: break-word;
}
.the-content a:not(.wp-element-button, .ez-toc-link, .wp-block-latest-posts__post-title):hover {
    background-size: 100% 100%;
}

/*button*/
.wp-block-button__link:not(.has-background) {
    position: relative;
    color: #000;
    background-color: var(--sub);
    min-width: 160px;
}
.wp-block-button__link:not(.has-background)::before {
    z-index: -1;
    content: "";
    position: absolute;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    top: -3px;
    left: -3px;
    border-radius: 999px;
    background-color: #e7b558;
    transition: 0.3s ease-out;
}
.wp-block-button__link:not(.has-background):hover {
    color: var(--sub);
    background-color: #fff;
}
.wp-block-button__link:not(.has-background):hover::before {
    box-shadow: 0px 3px 5px -2px #000;
    background-color: var(--sub);
}
.wp-block-button a.wp-block-button__link {
    font-size: 15px;
    font-family: 'mainm';
    padding: 6px 25px ;
    margin: 10px;
}
@media (max-width: 568px) {
    .wp-block-buttons>.wp-block-button.wp-block-button__width-25 { width: auto; text-align: center; }
}

/*ul ol li*/
.post-title-description ul li,
ul.wp-block-list>li { position: relative; }
.post-title-description ul li::before,
ul.wp-block-list>li::before {
    position: absolute;
    content: "";
    left: -20px;
    top: 1.2ex;
    width: 12px;
    height: 2px;
    background-color: var(--sub);
}
ol.wp-block-list>li::marker {
    color: var(--main);
    letter-spacing: 2px;
}
/*.wp-block-cover*/
.wp-block-cover { 
    padding: 60px 0;
    min-height: 480px !important;
}
@media (max-width: 768px) { 
    .wp-block-cover { padding: 60px 30px }
}

/*wp-block-columns*/
.wp-block-column.has-background { padding: 20px; }
@media (max-width: 568px) {
    .wp-block-columns.is-layout-flex { gap: 1em }
}
/*.wp-block-details*/
.wp-block-details { margin: 15px 0;}

/*.wp-block-latest-posts*/
.wp-block-latest-posts__featured-image { position: relative; }
.wp-block-latest-posts__featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wp-block-latest-posts:not(.is-grid) li {
    display: flex;
    flex-wrap: wrap;
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}
.wp-block-latest-posts:not(.is-grid) li:first-child {
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.wp-block-latest-posts:not(.is-grid) .wp-block-latest-posts__featured-image { width: 20%; }
.wp-block-latest-posts:not(.is-grid) .wp-block-latest-posts__post-title { width: calc(60% - 20px); margin-left: 20px; }
.wp-block-latest-posts:not(.is-grid) .wp-block-latest-posts__post-date { width: 90px; }
.wp-block-latest-posts:not(.is-grid) li {
    display: flex;
    justify-content: space-between;
}
.wp-block-latest-posts.is-grid .wp-block-latest-posts__featured-image {
    padding-top: 66%;
}
.wp-block-latest-posts:not(.is-grid) .wp-block-latest-posts__featured-image {
    padding-top: 15%;
}
.wp-block-latest-posts__post-title {
    font-family: 'mainm';
    margin: 10px 0 5px 0;
    display: block;
}
.wp-block-latest-posts__post-date {
    margin: 10px 0 5px 0;
    color: #808080
}

/*home-text-slide-down*/
.home-text-slide-down { padding: 50px 0px; }
.home-text-slide-down .text-slide {
    position: relative;
    overflow: hidden;
}
.home-text-slide-down .text-style { 
    font-size: 7vw;
    line-height: 1.2;
    font-family: 'mainb';
    color: var(--sub);
    opacity: 0;
}
.home-text-slide-down .slideDown {
    position: absolute;
    top: -100%;
    left: 0;
    animation: slideDown ease-out 3s infinite;
}
@keyframes slideDown {
    0% {transform: translateY(0);}
    20% {transform: translateY(100%);opacity:1;}
    80% {transform: translateY(100%);opacity:1;}
    100% {transform: translateY(200%);opacity:0;}
}
@media (max-width: 568px) {
    .home-text-slide-down .slideDown,
    .home-text-slide-down .hidden-text { font-size: 80px; }
}

p,
.wp-block-heading { 
    margin-top: 15px;
    margin-bottom: 15px;
}
.wp-block-quote {
    box-shadow: 5px 5px #ddd;
    position: relative;
    padding: 10px 25px 20px 25px;
    margin: 30px 0;
    border: 2px solid var(--sub);
}
.wp-block-quote::before {
    content:url('image/quote.png');
    position: absolute;
    right: 30px;
    top: -30px;
}
.wp-block-quote cite {
    position: relative;
    padding-left: 30px;
    font-family: 'mainm';
}
.wp-block-quote cite::before {
    position: absolute;
    content: '';
    left: 0;
    bottom: 7px;
    width: 20px;
    height: 2px;
    background-color: var(--sub);
}

.wp-block-media-text { 
    margin: 30px 0;
    border-radius: 5px;
    overflow: hidden;
}
.wp-block-media-text.is-image-fill .wp-block-media-text__media {
    min-height: unset;
}


/*google news*/
.google-news {
    background-color: #f1f1f1;
    padding: 20px;
    margin: 30px 0;
    border-radius: 5px;
}
.google-news img { max-width: 100px; }
/*tags*/
.post-tags { margin: 30px 0}
.post-tags a {
    padding-top: 3px;
    line-height: 1.2;
    border-bottom: 2px solid var(--sub);
    color: var(--main);
    font-size: 15px;
    display: inline-block;
    font-family: 'mainm';
    margin: 0 10px 10px 0;
}
.post-tags a:hover {
    background-color: var(--sub);
    color: #000;
}
/*comments*/
#comments .comment-list { padding: 0}
.kk-star-ratings.kksr-valign-bottom { margin-bottom: 2rem;}


/*responsive*/
@media (min-width: 569px) {
	.dom { display: none; }
}
@media (max-width: 568px) {
    .dod { display: none; }
}
/*.template-post-fullwidth*/
.template-post-fullwidth header { background-color: var(--sub); }
.template-post-fullwidth header h1 {
    position: relative;
    z-index: 2;
    word-spacing: 2px;
    letter-spacing: -0.5px;
    text-align: center;
    max-width: 800px;
    text-transform: uppercase;
    margin: 0 auto;
    padding: 50px 0
}
.template-post-fullwidth-content { padding: 50px 0; }
@media (max-width: 568px) {
    .template-post-fullwidth header h1 { text-align: left;}
}


/*.template-post-project*/
.template-post-project { padding-bottom: 50px;}
.template-post-project header h1 {
    font-size: 40px;
    position: relative;
    z-index: 2;
    word-spacing: 2px;
    letter-spacing: -0.5px;
    text-align: center;
    max-width: 1000px;
    text-transform: uppercase;
    margin: 50px auto;
}
.template-post-project header h1::after {
    position: absolute;
    content: "";
    width: 60px;
    height: 5px;
    background-color: var(--sub);
    bottom: -15px;
    left: 50%;
    transform: translate(-50%, 0);
}
.template-post-project-content p,
.template-post-project-content ul,
.template-post-project-content ol,
.template-post-project-content .wp-block-heading,
.template-post-project-content .wp-block-details,
.template-post-project-content .wp-block-quote {
    margin: 15px auto;
    max-width: 720px;
}
@media (max-width: 568px) {
    .template-post-project header h1 { text-align: left; }
    .template-post-project header h1::after {
        left: 0;
        transform: translate(0, 0);
    }
}
