/* Exhibition landing pages (/batimat/, /vietnam-hardware-hand-tools/, /2020-ihf/).
   Sizes are measured from the old Elementor canvas pages: 1140px boxed container, 10px column
   padding, 20px between widgets; tablet <=1024px, phone <=767px (Elementor), body text shrinks
   at <=768px (Astra).
   The old pages only loaded Montserrat 400 and 700, so the Elementor settings of 600/800 were
   drawn at 700 — the weights below are the rendered ones, which also keeps the line breaks. */

.ex-page { line-height: 1.85714; }

.ex-sr {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ex-box {
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px;
}

/* ---------- mini header ---------- */
.ex-top {
    display: flex;
    max-width: 1140px;
    margin: 0 auto;
}
.ex-top__nav { display: contents; }
.ex-top__logo,
.ex-top__item,
.ex-top__mail { padding: 10px; }
.ex-top__logo { width: 38.205%; text-align: center; }
.ex-top__logo a { display: inline-block; vertical-align: top; }
.ex-top__logo img { display: inline-block; vertical-align: middle; height: auto; }
.ex-top__item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}
.ex-top__item--website { width: 17.778%; }
.ex-top__item--products { width: 13.846%; }
.ex-top__item--quality { width: 24.701%; }
.ex-top__mail { width: 5.47%; text-align: center; }
.ex-top__mail a {
    display: block;
    width: 50px; height: 50px;
    margin: 0 auto 9px;
    color: #5daf52;
}
.ex-top__mail svg { display: block; width: 100%; height: 100%; }

/* ---------- shared bits ---------- */
.ex-divider { padding: 15px 0; }
.ex-divider::before { content: ""; display: block; border-top: 1px solid #000; }

.ex-w:not(:last-child) { margin-bottom: 20px; }

.ex-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #99c95e;
    color: #fff;
    font-weight: 400;
    transition: all .3s;
}
.ex-btn::before {
    content: "";
    flex: none;
    width: 1.125em; height: 1em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M288 144a110.94 110.94 0 0 0-31.24 5 55.4 55.4 0 0 1 7.24 27 56 56 0 0 1-56 56 55.4 55.4 0 0 1-27-7.24A111.71 111.71 0 1 0 288 144zm284.52 97.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400c-98.65 0-189.09-55-237.93-144C98.91 167 189.34 112 288 112s189.09 55 237.93 144C477.1 345 386.66 400 288 400z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath d='M288 144a110.94 110.94 0 0 0-31.24 5 55.4 55.4 0 0 1 7.24 27 56 56 0 0 1-56 56 55.4 55.4 0 0 1-27-7.24A111.71 111.71 0 1 0 288 144zm284.52 97.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400c-98.65 0-189.09-55-237.93-144C98.91 167 189.34 112 288 112s189.09 55 237.93 144C477.1 345 386.66 400 288 400z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ex-btn:hover,
.ex-btn:focus { background: #fff; color: #84c657; }
.ex-btn--md {
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    font-size: 16px;
    line-height: 17px;
}
.ex-btn--sm {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 15px;
}
.ex-btn-row { display: flex; }
.ex-btn-row--right { justify-content: flex-end; }

/* ---------- News block (the only part that differs per exhibition) ---------- */
.ex-news__title {
    margin: 20px 0;
    color: #808285;
    font-size: 59px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}
.ex-news__title--xl { font-size: 39px; }
.ex-news__banner { margin-bottom: 20px; text-align: center; }
.ex-news__banner img { display: inline-block; vertical-align: middle; width: 19%; height: auto; }

.ex-news__panel {
    position: relative;
    display: flex;
    background: url("../../img/exhibit/news-bg.d16a0297e46b.jpg") 0 0 / cover no-repeat;
}
.ex-news__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: .68;
}
.ex-news__col { position: relative; padding: 10px; }
.ex-news__col--1 { width: 33.391%; }
.ex-news__col--2 { width: 66.609%; }
.ex-news--vietnam .ex-news__col--1 { width: 40.261%; }
.ex-news--vietnam .ex-news__col--2 { width: 59.739%; }

.ex-img { text-align: center; }
.ex-img img { display: inline-block; vertical-align: middle; height: auto; }
.ex-map { line-height: 0; }
.ex-map iframe { width: 100%; height: 300px; border: 0; }
.ex-map--short iframe { height: 235px; }
.ex-text {
    color: #000;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: .5px;
}
.ex-text--date { font-size: 24px; font-weight: 700; }
.ex-text--small { font-size: 17px; }

/* ---------- "See What We Have" ---------- */
.ex-showcase {
    padding: 10px;
    background: url("../../img/exhibit/intro.0744a06d1ee7.jpg") 0 0 / contain no-repeat;
}
.ex-showcase__cta { padding: 255px 0; text-align: center; }

/* ---------- founder + counters ---------- */
.ex-founder { position: relative; padding: 10px; }
.ex-founder::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../../img/exhibit/founder-bg.ef984f196c92.jpg") 0 0 / cover no-repeat;
    opacity: .32;
}
.ex-founder__row,
.ex-counters { position: relative; display: flex; }
.ex-founder__video,
.ex-founder__text { width: 50%; padding: 10px; }
.ex-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.ex-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ex-founder__text p {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: .5px;
}
.ex-counter { width: 25%; padding: 10px; }
.ex-counter__number {
    display: flex;
    font-size: 69px;
    font-weight: 700;
    line-height: 1;
}
.ex-counter__prefix,
.ex-counter__suffix { flex-grow: 1; white-space: pre-wrap; }
.ex-counter__prefix { text-align: right; }
.ex-counter__title {
    font-size: 19px;
    line-height: 2.5;
    text-align: center;
}

/* ---------- Born for Durability! ---------- */
.ex-durability { display: flex; flex-direction: row-reverse; }
.ex-durability__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    padding: 10px;
    background: #fffc7f;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}
.ex-durability__born { margin-bottom: 20px; font-size: 120px; }
.ex-durability__for { margin-bottom: 20px; font-size: 59px; }
.ex-durability__durability { font-size: 100px; }

.ex-slideshow { position: relative; width: 50%; min-height: 400px; overflow: hidden; }
.ex-slideshow__slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    transform: translateX(-100%);
    transition: transform .5s ease;
}
.ex-slideshow__slide.is-active { transform: none; }
.ex-slideshow__slide.is-leaving { transform: translateX(100%); }
.ex-slideshow__slide.no-anim { transition: none; }
/* Elementor "Ken Burns": the active slide zooms in for 20s, the others zoom back out over 10s */
.ex-slideshow__image {
    position: absolute;
    inset: 0;
    background: center / cover no-repeat;
    transition: transform 10s linear;
}
.ex-slideshow__slide.is-active .ex-slideshow__image { transform: scale(1.3); transition-duration: 20s; }

/* ---------- Professional Manufacturing ---------- */
.ex-mfg {
    padding: 10px;
    background: url("../../img/exhibit/manufacturing.b7ac5bed47ed.jpg") 0 0 / contain no-repeat;
}
.ex-mfg__text {
    margin-bottom: 20px;
    padding: 90px 20px 0 0;
    font-size: 40px;
    font-weight: 700;
    text-align: right;
}
.ex-mfg__cta { padding: 0 20px 80px 0; }

/* ---------- Quality Certification ---------- */
.ex-cert { display: flex; background: linear-gradient(150deg, #38a0ea 28%, #fff 69%); }
.ex-cert > * { padding: 10px; }
.ex-cert__title { display: flex; align-items: center; width: 26.435%; }
.ex-cert__title p {
    color: #fff;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -1.5px;
}
.ex-cert__item { text-align: center; }
.ex-cert__item a { display: inline-block; }
.ex-cert__item img { display: inline-block; vertical-align: middle; height: auto; }
.ex-cert__item--1 { width: 13.391%; }
.ex-cert__item--2 { width: 13.217%; }
.ex-cert__item--3 { width: 13.13%; }
.ex-cert__item--4 { width: 33.827%; }
.ex-cert__item--4 img { border-radius: 18px; }

/* ---------- Contact Us ---------- */
.ex-contact h2 {
    margin-bottom: 20px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}
.ex-form input,
.ex-form textarea {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, .4);
    border-radius: 0;
    background: #fff;
    color: #9e9e9e;
    font: 500 16px/1.4 "Roboto", sans-serif;
}
.ex-form textarea { height: 102px; padding: 5px 14px; resize: vertical; }
.ex-form input::placeholder,
.ex-form textarea::placeholder { color: #9e9e9e; opacity: .6; }
.ex-form button {
    display: block;
    width: 100%;
    height: 40px;
    margin-top: 12px;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    font: 700 15px/1 "Roboto", sans-serif;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .3s;
}
.ex-form button:hover,
.ex-form button:focus { background: transparent; color: #000; }

/* ---------- mini footer ---------- */
.ex-foot {
    display: flex;
    max-width: 1140px;
    margin: 0 auto;
    padding-bottom: 50px;
}
.ex-foot > * { display: flex; align-items: center; }
.ex-foot__logo { width: 27.179%; padding: 10px; }
.ex-foot__logo img { height: auto; }
.ex-foot__icon { justify-content: center; color: #69727d; }
/* Elementor's icon box is a line taller than the glyph, which sits at its top */
.ex-foot__icon svg { display: block; width: auto; height: 18px; margin-bottom: 8px; }
.ex-foot__icon--pin { width: 2.228%; }
.ex-foot__icon--phone { width: 2.483%; }
.ex-foot__icon--mail { width: 2.072%; }
.ex-foot__text--address { width: 38.04%; }
.ex-foot__text--phone { width: 13.678%; padding: 10px; }
.ex-foot__text--email { width: 14.285%; padding: 10px; }

/* ---------- certificate lightbox (old Elementor lightbox) ---------- */
.ex-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    background: rgba(0, 0, 0, .8);
}
.ex-lightbox[hidden] { display: none; }
.ex-lightbox__image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, .3), 0 0 8px -5px rgba(0, 0, 0, .3);
    animation: ex-zoom-in .3s;
}
.ex-lightbox__title {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    padding: 15px 20px;
    color: rgba(238, 238, 238, .9);
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}
.ex-lightbox__close {
    position: absolute;
    top: 13px; right: 15px;
    width: 30px; height: 30px;
    padding: 5px;
    border: 0;
    background: none;
    color: rgba(238, 238, 238, .9);
    cursor: pointer;
}
.ex-lightbox__close svg { display: block; width: 100%; height: 100%; }
@keyframes ex-zoom-in {
    from { opacity: 0; transform: scale3d(.3, .3, .3); }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ex-slideshow__slide,
    .ex-slideshow__image { transition: none; }
    .ex-slideshow__slide.is-active .ex-slideshow__image { transform: none; }
    .ex-lightbox__image { animation: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
    .ex-box,
    .ex-top,
    .ex-foot { max-width: 1024px; }
    .ex-top__item { font-size: 18px; }
    .ex-top__item--quality { line-height: 1.4; }
    .ex-top__mail a { width: 41px; height: 41px; margin-bottom: 8px; }
    .ex-showcase__cta { padding: 150px 0; }
    .ex-counter__number { font-size: 43px; }
    .ex-counter__title { font-size: 15px; }
    .ex-durability__born,
    .ex-durability__durability { font-size: 64px; }
    .ex-mfg__text { padding: 14px 0 0; font-size: 32px; }
    .ex-mfg__cta { padding: 0 0 29px; }
}
/* Between tablet and ~1160px the unbreakable e-mail address is wider than its 14% column and
   pushed the whole page sideways (on the old site too); let it take its own width instead. */
@media (min-width: 768px) and (max-width: 1160px) {
    .ex-foot__text--email { flex: none; width: auto; }
    .ex-foot__text--address { flex: 1 1 0; min-width: 0; }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .ex-top__logo { width: 36%; }
    .ex-founder__row { flex-wrap: wrap; }
    .ex-founder__video,
    .ex-founder__text { width: 100%; }
}

/* Astra shrinks the root font size here, which scales body text and theme headings */
@media (max-width: 768px) {
    .ex-page { font-size: 13.68px; }
    .ex-contact h2 { font-size: 40px; }
    .ex-foot__icon svg { margin-bottom: 10px; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
    .ex-top,
    .ex-news__panel,
    .ex-founder__row,
    .ex-counters,
    .ex-durability,
    .ex-cert,
    .ex-foot { flex-wrap: wrap; }
    .ex-top > *,
    .ex-top__nav > *,
    .ex-news__col,
    .ex-news--vietnam .ex-news__col--1,
    .ex-news--vietnam .ex-news__col--2,
    .ex-founder__video,
    .ex-founder__text,
    .ex-counter,
    .ex-durability__text,
    .ex-slideshow,
    .ex-cert__title,
    .ex-cert__item--4,
    .ex-foot__logo { width: 100%; }
    .ex-durability { flex-direction: row; }

    .ex-news__title { font-size: 30px; }
    .ex-text,
    .ex-text--date,
    .ex-text--small,
    .ex-founder__text p { font-size: 12px; }
    .ex-showcase__cta { padding: 154px 0 0; }
    .ex-durability__born,
    .ex-durability__durability { font-size: 55px; }
    .ex-durability__for { font-size: 32px; }
    .ex-mfg__text { font-size: 19px; line-height: 2; }
    .ex-mfg__cta { padding: 0; }
    .ex-cert__title p { width: 100%; text-align: center; }
    .ex-cert__item--1,
    .ex-cert__item--2,
    .ex-cert__item--3 { width: 33%; }

    .ex-foot__logo img { width: auto; }
    .ex-foot__icon--pin,
    .ex-foot__icon--phone,
    .ex-foot__icon--mail { width: 10%; }
    .ex-foot__text--address,
    .ex-foot__text--phone,
    .ex-foot__text--email { width: 90%; }
}

@media (max-width: 544px) {
    .ex-contact h2 { font-size: 25px; }
}
