/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

@import url('./assets/css/faq-accordion.css');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@100;200;300;400;500;600;700&display=swap');

:lang(th) {
    --e-global-typography-primary-font-family: 'IBM Plex Sans Thai';
    --e-global-typography-secondary-font-family: 'IBM Plex Sans Thai';
    --e-global-typography-text-font-family: 'IBM Plex Sans Thai';
    --e-global-typography-accent-font-family: 'IBM Plex Sans Thai';
    --e-global-typography-ty-h1-font-family: 'IBM Plex Sans Thai';
    --e-global-typography-ty-h2-font-family: 'IBM Plex Sans Thai';
    --e-global-typography-ty-h3-font-family: 'IBM Plex Sans Thai';
    --e-global-typography-ty-nav-font-family: 'IBM Plex Sans Thai';
}

body:lang(th) {
    font-family: 'IBM Plex Sans Thai', sans-serif;
}

/* Match Elementor container width for non-Elementor pages */
body:not([class*="elementor-page-"]) .site-main {
    max-width: 1398px;
    margin-left: auto;
    margin-right: auto;
    width: 100%; 
}
 
@media (max-width:1460px) {
    body:not([class*="elementor-page-"]) .site-main {
        max-width: 1024px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 1024px) {
    body:not([class*="elementor-page-"]) .site-main {
        max-width: 767px;
    }
}


@media(min-width: 1025px){
    header li.menu-item{
        padding-left:10px;
        padding-right:10px;
    }
    header ul.sub-menu{
        padding-top:10px;
        padding-bottom:10px;
    }
}

header a.hfe-sub-menu-item {
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

#masthead.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

body.admin-bar #masthead.is-sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #masthead.is-sticky {
        top: 46px;
    }
}

@media screen and (max-width: 600px) {
    body.admin-bar #masthead.is-sticky {
        top: 0;
    }
}

.footer-nav-links > ul{
    width: 100%;
    flex-wrap: wrap;
}

.footer-nav-links > ul > li.elementor-icon-list-item{
    width: 50%;
    padding: 0 15px 15px 0;
}

/* ═══════════════════════════════════════════
   Knowledge Hub — Banner
═══════════════════════════════════════════ */

.kh-banner {
    background: #f4f8f9;
    overflow: hidden;
}

.kh-banner__inner {
    display: flex;
    min-height: 230px;
    background-color: var(--bg-color);
}

.kh-banner__text {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px 56px 80px;
}

.kh-banner .kh-banner__title {
    font-size: 38px;
    font-weight: 700;
    color: #1F1E1E;
    margin: 0 0 10px;
    line-height: 1.15;
}

.kh-banner__desc {
    font-size: 16px;
    color: #475569;
    margin: 0 0 18px;
    line-height: 1.5;
}

.kh-banner__line {
    display: block;
    width: 48px;
    height: 3px;
    background: #416A74;
    border-radius: 2px;
    flex-shrink: 0;
}

.kh-banner__image {
    flex: 1;
    background-color: transparent;
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    min-height: 200px;
}

/* Compact banner on single post */
.kh-banner--compact .kh-banner__inner {
    min-height: 160px;
}

.kh-banner--compact .kh-banner__text {
    padding: 36px 48px 36px 80px;
}

.kh-banner--compact .kh-banner__title {
    font-size: 28px;
}


/* ═══════════════════════════════════════════
   Knowledge Hub — Archive Grid
═══════════════════════════════════════════ */

.kh-archive {
    padding: 64px 0 80px;
}

.kh-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.kh-archive__empty {
    text-align: center;
    color: #718096;
    font-size: 16px;
    padding: 60px 24px;
}

/* Card */
.kh-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
    border: none;
    background: transparent;
}

.kh-card__thumb-link {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
}

.kh-card__thumb {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3 / 2;
    background: #dde6e8;
}

.kh-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.kh-card__thumb-link:hover .kh-card__img {
    transform: scale(1.04);
}

.kh-card__img--placeholder {
    width: 100%;
    height: 100%;
    background: #b8cdd0;
}

/* Category badge */
.kh-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    display: inline-block;
    background: #416A74;
    color: #ffffff;
    
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    padding: 11px 12px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Card body */
.kh-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 8px;
    padding: 24px 16px 36px;
}

.kh-card__date {
    display: block;
    font-size: 13px;
    color: #718096;
    margin-bottom: 24px;
}

.kh-card .kh-card__title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 24px;
    color: #416A74;
}

.kh-card .kh-card__title a {
    color: #416A74;
    text-decoration: none;
}

.kh-card .kh-card__title a:hover {
    text-decoration: underline;
}

.kh-card__excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.kh-card__excerpt p {
    margin: 0;
}

.kh-card__more {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #1F1E1E;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kh-card__more:hover {
    color: #416A74;
}


/* ═══════════════════════════════════════════
   Knowledge Hub — Pagination
═══════════════════════════════════════════ */

.kh-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 56px auto 0;
}

.kh-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    font-size: 14px;
    color: #1F1E1E;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.kh-pagination .page-numbers.current,
.kh-pagination .page-numbers:hover {
    background: #416A74;
    border-color: #416A74;
    color: #ffffff;
}


/* ═══════════════════════════════════════════
   Knowledge Hub — Single Post
═══════════════════════════════════════════ */

.kh-single {
    padding: 60px 0 100px;
}

.kh-single__container {
    width: 100%;
    padding: 0 24px;
}

.kh-single__hero {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 40px;
}

.kh-single__hero-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 460px;
    object-fit: cover;
}

.kh-single__hero .kh-badge {
    top: 16px;
    left: 16px;
}

.kh-single__header {
    margin-bottom: 32px;
}

.kh-single .kh-single__title {
    font-size: 30px;
    font-weight: 700;
    color: #416A74;
    margin: 0 0 12px;
    line-height: 1.3;
}

.kh-single__date {
    display: block;
    font-size: 14px;
    color: #718096;
}

.kh-single__content {
    font-size: 16px;
    color: #334155;
    line-height: 1.8;
}

.kh-single__content p {
    margin-bottom: 18px;
}

.kh-single__content h2,
.kh-single__content h3,
.kh-single__content h4 {
    font-weight: 600;
    color: #1F1E1E;
    margin: 36px 0 12px;
    line-height: 1.3;
}

.kh-single__content h2 { font-size: 22px; }
.kh-single__content h3 { font-size: 18px; }

.kh-single__content ul,
.kh-single__content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.kh-single__content li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.kh-single__content a {
    color: #416A74;
    text-decoration: underline;
}


/* ═══════════════════════════════════════════
   Technical Support — Archive Grid
═══════════════════════════════════════════ */

.ts-archive {
    padding: 64px 0 80px;
}

.ts-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Overlay card */
.ts-card {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.ts-card__link {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
}

.ts-card__thumb {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 8px;
    background: #cdd8db;
}

.ts-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ts-card__link:hover .ts-card__img {
    transform: scale(1.04);
}

.ts-card__img--placeholder {
    width: 100%;
    height: 100%;
    background: #b8cdd0;
}

.ts-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 40px 24px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 60%);
    transition: background 0.3s ease;
}

.ts-card__link:hover .ts-card__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 60%);
}

.ts-card .ts-card__title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin: 0;
}


/* ═══════════════════════════════════════════
   Technical Support — Single Post
═══════════════════════════════════════════ */

.ts-single {
    padding: 60px 0 100px;
}

.ts-single__container {
    width: 100%;
    padding: 0 24px;
}

.ts-single__header {
    max-width: 1398px;
    width:100%;
    margin: 0 auto 40px;
}

.ts-single .ts-single__title {
    font-size: 30px;
    font-weight: 700;
    color: #1F1E1E;
    margin: 0 0 12px;
    line-height: 1.3;
}

.ts-single__date {
    display: block;
    font-size: 14px;
    color: #718096;
}

.ts-single__content {
    font-size: 15px;
    color: #334155;
    line-height: 1.7;
}

.ts-single__content p {
    margin-bottom: 16px;
}


/* ═══════════════════════════════════════════
   Technical Support — Responsive
═══════════════════════════════════════════ */

@media (max-width: 1100px) {
    .ts-archive__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .ts-archive {
        padding: 40px 0 60px;
    }

    .ts-archive__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ts-card .ts-card__title {
        font-size: 18px;
    }

    .ts-single {
        padding: 40px 0 72px;
    }

    .ts-single__container {
        padding: 0 16px;
    }

    .ts-single .ts-single__title {
        font-size: 22px;
    }

}


/* ═══════════════════════════════════════════
   Knowledge Hub — Responsive
═══════════════════════════════════════════ */

@media (max-width: 1100px) {
    .kh-banner__text {
        padding: 48px 40px 48px 48px;
    }

    .kh-archive__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .kh-banner__inner {
        flex-direction: column;
    }

    .kh-banner__text {
        flex: none;
        padding: 40px 24px;
    }

    .kh-banner--compact .kh-banner__inner{
        min-height: 388px;
        position: relative;
    }

    .kh-banner--compact .kh-banner__text {
        position: absolute;
        width: 100%;
        left: 0;
        top: 0;
        padding: 32px 24px;
    }

    .kh-banner__inner {
        background-color: var(--bg-color-mobile, var(--bg-color));
    }

    .kh-banner__image {
        min-height: 220px;
        background-image: var(--bg-mobile, var(--bg-desktop));
        background-position: bottom center;
        background-size: cover;
    }

    .kh-banner .kh-banner__title {
        font-size: 28px;
    }

    .kh-banner--compact .kh-banner__title {
        font-size: 22px;
    }

    .kh-archive {
        padding: 40px 0 60px;
    }

    .kh-archive__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .kh-card__title {
        font-size: 20px;
    }

    .kh-single {
        padding: 40px 0 72px;
    }

    .kh-single__container {
        padding: 0 16px;
    }

    .kh-single__title {
        font-size: 22px;
    }

    .kh-pagination {
        padding: 0 24px;
    }
}


/* ═══════════════════════════════════════════
   Products — Archive (overview + category)
═══════════════════════════════════════════ */

.prod-archive {
    padding: 64px 0 80px;
}

/* Category section */
.prod-section {
    margin-bottom: 72px;
}

.prod-section:last-of-type {
    margin-bottom: 0;
}

.prod-section__header {
    margin-bottom: 32px;
}

.prod-section__header .prod-section__heading {
    font-size: 28px;
    font-weight: 400;
    color: #1F1E1E;
    margin: 0 0 8px;
    line-height: 1.2;
}

.prod-section__cat-link,
.prod-section__back-link {
    color: #416A74;
    font-weight: 700;
    text-decoration: none;
}

.prod-section__desc {
    font-size: 15px;
    color: #718096;
    margin: 0;
}

/* Product grid */
.prod-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Product card */
.prod-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    transition: box-shadow 0.25s ease;
}

.prod-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.prod-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.prod-card__thumb {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #ffffff;
    height: 240px;
}

.prod-card__img {
    width: 100%;
    height: 100%;
     object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.product_cat-rubber-hose .prod-card__thumb{
    background: #ffffff;
}

.product_cat-rubber-hose .prod-card__img{
    object-fit: contain;
}

.prod-card:hover .prod-card__img {
    transform: scale(1.04);
}

.prod-card__img--placeholder {
    width: 100%;
    height: 100%;
    background: #dde6e8;
}

.prod-card__body {
    padding: 20px 20px 24px;
    flex: 1;
}

.prod-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #1F1E1E;
    margin: 0 0 8px;
    line-height: 1.3;
}

.prod-card__desc {
    font-size: 14px;
    color: #718096;
    margin: 0;
    line-height: 1.55;
}


/* ═══════════════════════════════════════════
   Homepage — Product Categories Grid  [thaiflex_product_cats]
═══════════════════════════════════════════ */

.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-cat-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.25s ease;
}

a.home-cat-card{
    text-decoration: none;
}

.home-cat-card__thumb {
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eef1f3;
    max-height: 297px;
}

.home-cat-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.home-cat-card__img--placeholder {
    width: 100%;
    height: 100%;
    background: #dde6e8;
}

.home-cat-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid #E2E8F0;
}

.home-cat-card__name {
    font-size: 15px;
    font-weight: 500;
    color: #1F1E1E;
    line-height: 1.3;
}

.home-cat-card__arrow {
    font-size: 16px;
    color: #416A74;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.home-cat-card:hover .home-cat-card__arrow {
    transform: translateX(3px);
}

@media (max-width: 1100px) {
    .home-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .home-cat-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* ═══════════════════════════════════════════
   Products — Applications section
═══════════════════════════════════════════ */

.prod-apps {
    margin-top: 80px;
    padding-top: 56px;
    border-top: 1px solid #E2E8F0;
}

.elementor-shortcode .prod-apps{
    margin-top:0;
    padding-top: 0;
    border-top: 0;
}

.prod-apps .prod-apps__heading {
    font-size: 32px;
    font-weight: 400;
    color: #1F1E1E;
    text-align: center;
    margin: 0 0 40px;
}

.prod-apps .prod-apps__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.prod-apps .prod-app-tile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    background-color: #416A74;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.prod-app-tile:hover {
    opacity: 0.9;
}

.prod-app-tile__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: #E4EBEC;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    text-align: center;
    line-height: 1.3;
}

/* ═══════════════════════════════════════════
   Products — Single
═══════════════════════════════════════════ */

.prod-single {
    padding: 60px 0 100px;
}

.prod-single__container {
    width: 100%;
    padding: 0 24px;
}

/* Hero image card */
.prod-single__hero {
    position: relative;
    width: 100%;
    margin: 0 auto 40px;
    overflow: hidden;
    box-sizing: border-box;
    text-align: center;
}

.prod-single__hero-img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 360px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.prod-single__guide-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #475569;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    padding: 6px 12px;
    white-space: nowrap;
    z-index: 1;
}

/* Intro: breadcrumb + excerpt */
.prod-single__intro {
    margin-bottom: 40px;
}

.prod-single .prod-single__breadcrumb {
    font-size: 26px;
    font-weight: 400;
    color: #1F1E1E;
    margin: 0 0 12px;
    line-height: 1.25;
}

.prod-single__bc-cat {
    font-weight: 400;
    color: #1F1E1E;
    text-decoration: none;
}

.prod-single__bc-cat:hover {
    text-decoration: underline;
    color: #416A74;
}

.prod-single__bc-sep {
    color: #94A3B8;
    margin: 0 6px;
}

.prod-single__bc-title {
    font-weight: 700;
    color: #416A74;
}

.prod-single__content {
    font-size: 15px;
    color: #718096;
    margin: 0;
    line-height: 1.6;
}

/* Catalog download */
.prod-single__catalog {
    margin-top: 24px;
}

.prod-single__catalog-label {
    display: block;
    font-size: 14px;
    color: #475569;
    margin-bottom: 12px;
}

a.prod-single__catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #416A74;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.25s ease;
}

a.prod-single__catalog-btn{
     color: #ffffff;
}

a.prod-single__catalog-btn:hover {
    background: #345359;
    color: #ffffff;
}

/* ACF section cards */
.prod-single__sections {
    display: flex;
    flex-direction: column;
    gap: 16px; 
    width:100%;
}

.prod-single__content img{
    padding: 25px 0;
}

.prod-single__section {
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
}

.prod-single__section .prod-single__section-title {
    font-size: 14px;
    font-weight: 500;
    color: #1F1E1E;
    margin: 0;
    background: #ffffff;
    padding: 12px 20px;
    border-bottom: 1px solid #E2E8F0;
}

.prod-single__section-body {
    font-size: 14px;
    color: #334155;
    line-height: 1.75;
    padding: 20px;
    background: #ffffff;
}

.prod-single__section-body p {
    margin: 0 0 10px;
}

.prod-single__section-body p:last-child {
    margin-bottom: 0;
}

.prod-single__section-body strong {
    font-weight: 600;
    color: #1F1E1E;
}


/* ═══════════════════════════════════════════
   Products — Responsive
═══════════════════════════════════════════ */

@media (max-width: 1100px) {
    .prod-apps .prod-apps__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .prod-archive {
        padding: 40px 0 60px;
    }

    .prod-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .prod-section__header .prod-section__heading {
        font-size: 22px;
    }

    .prod-section {
        margin-bottom: 48px;
    }

    .prod-apps {
        margin-top: 48px;
    }

    .prod-apps .prod-apps__heading {
        font-size: 22px;
    }

    .prod-apps .prod-apps__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .prod-apps .prod-app-tile{
        min-height: 200px;
        aspect-ratio: auto;
    }

    .prod-app-tile__label{
        font-size: 14px;
    }

    .prod-single {
        padding: 40px 0 72px;
    }

    .prod-single__container {
        padding: 0 16px;
    }

    .prod-single__hero {
        max-width: 100%;
        padding: 24px; 
        margin: 0 0 20px;
    }

    .prod-single .prod-single__breadcrumb {
        font-size: 20px;
    }

    .prod-single__sections {
        gap: 12px;
    }
}


/* ═══════════════════════════════════════════
   404 — Not Found
═══════════════════════════════════════════ */
 
.error-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 80px 24px;
    text-align: center;
}

.error-404__inner {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.error-404__code {
    display: block;
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    color: #416A74;
    opacity: 0.15;
    margin-bottom: 0;
    user-select: none;
    padding-bottom: 20px;
}

.error-404 .error-404__title {
    font-size: 32px;
    font-weight: 700;
    color: #1F1E1E;
    margin: -16px 0 16px;
    line-height: 1.2;
}

.error-404__desc {
    font-size: 16px;
    color: #718096;
    margin: 0 0 36px;
    line-height: 1.6;
}

a.error-404__btn {
    display: inline-block;
    background: #416A74;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
    margin-bottom: 40px;
}

a.error-404__btn:hover {
    background: #355760;
}

.error-404__links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 14px;
}

.error-404__links-label {
    color: #94A3B8;
}

.error-404__links a {
    color: #416A74;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.error-404__links a:hover {
    color: #355760;
}

.error-404__links span[aria-hidden] {
    color: #CBD5E1;
}

@media (max-width: 768px) {
    .home {
        overflow-x: hidden;
    }

    .error-404__code {
        font-size: 80px;
    }

    .error-404 .error-404__title {
        font-size: 24px;
    }
}

#home-swiper {
    opacity: 0;
    transition: opacity 0.3s ease;
}
#home-swiper.swiper-ready {
    opacity: 1;
}

@media(min-width: 768px){
    #home-swiper .swiper-slide{
        position: relative;
    }

    #home-swiper .swiper-slide:after {
        content: "";
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.8);
        position: absolute;
        left: 0;
        top: 0;
        opacity: 1;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    #home-swiper .swiper-slide.swiper-slide-active:after {
        opacity: 0;
    }
}


@media only screen and (max-width: 1024px) {
    .hfe-nav-menu__breakpoint-tablet .hfe-nav-menu__layout-horizontal:not(.menu-is-active) .hfe-nav-menu {
      display: none;
    }
}

header .trp-language-item{
    padding: 7px;
}

@media only screen and (max-width: 767px) {
    header .trp-language-item-name {
        font-size: 12px;
    }
}


@media(min-width:1025px){
    #masthead .line-menu-mobile{
        display: none;
    }
}

#masthead .line-menu-mobile a.hfe-menu-item{
    border-radius: 0;
    padding-top: 15px !important;
    padding-bottom: 5px !important;
}

#masthead .line-menu-mobile .hfe-menu-item > span{
   width: 100%;
   padding: 15px;
   display: flex;
   justify-content: center;
   align-items: center;
   background: #416A74;
   border-radius: 6px;
   color: #ffffff;
   gap: 5px;
   font-size: 16px;
   text-transform: uppercase;
}

#masthead .line-menu-mobile a.hfe-menu-item:hover > span,
#masthead .line-menu-mobile a.hfe-menu-item:focus > span{
    text-decoration: none;
    opacity: 0.7;
}

#masthead .line-menu-mobile .hfe-menu-item > span:before{
    content: "";
    display: inline-flex;
    width: 24px;
    height: 24px;
    background-image: url(assets/img/simple-icons_line.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
}
