/* Alya global overrides */

/* 1) Typography: force Montserrat for text UI */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
label,
li,
small,
strong,
button,
input,
select,
textarea {
    font-family: "Montserrat", sans-serif !important;
}

body {
    font-size: 15px;
    line-height: 1.55;
    color: #1f2d3a;
}

h1 {
    font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.3rem, 1.05rem + 1vw, 1.85rem);
    line-height: 1.25;
}

h3 {
    font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem);
    line-height: 1.3;
}

/* 2) Breadcrumb: responsive and consistent */
.breadcrumb.breadcrumb-custom,
.breadcrumb-container .breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    margin: 0.35rem 0 0.9rem;
    border: 1px solid #e4e8ee;
    border-radius: 999px;
    background: #f8fafc;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item,
.breadcrumb-container .breadcrumbs li {
    white-space: nowrap;
    color: #556578;
    font-size: 0.82rem;
    font-weight: 500;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item a,
.breadcrumb-container .breadcrumbs li a {
    color: #304255;
    text-decoration: none;
}

.breadcrumb.breadcrumb-custom .breadcrumb-item.active,
.breadcrumb-container .breadcrumbs li.active {
    color: #152737;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .breadcrumb.breadcrumb-custom,
    .breadcrumb-container .breadcrumbs {
        padding: 0.4rem 0.55rem;
        margin-bottom: 0.7rem;
        border-radius: 12px;
    }

    .breadcrumb.breadcrumb-custom .breadcrumb-item,
    .breadcrumb-container .breadcrumbs li {
        font-size: 0.74rem;
    }
}

/* 3) Product card list paint and image rendering performance */
.product-grid2,
.testimonial-item {
    content-visibility: auto;
    contain-intrinsic-size: 420px;
}

.product-grid2 .product-image2,
.testimonial-item a {
    display: block;   
    overflow: hidden;
}

.product-grid2 .product-image2 img,
.testimonial-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 4) Product search form modern + responsive + instant results */
.product-searchfm-modern {
    width: min(980px, 96vw);
    margin: 0 auto;
}

.product-searchfm-inner {
    position: relative;
}

.product-searchfm-row {
    display: grid;
    grid-template-columns: 1fr 230px 58px;
    gap: 0.55rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 12px 34px rgba(16, 24, 40, 0.08);
}

.product-searchfm-query input,
.product-searchfm-category select {
    height: 46px;
    border-radius: 12px !important;
    border: 1px solid #dce4ed !important;
    font-size: 0.95rem;
}

.product-searchfm-action .btn {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    border: none;
}

.product-searchfm-suggest {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 1200;
    background: #fff;
    border: 1px solid #dce4ed;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    max-height: 370px;
    overflow-y: auto;
}

.product-searchfm-suggest-list {
    margin: 0;
    padding: 0.35rem;
    list-style: none;
}

.product-searchfm-suggest-list li + li {
    border-top: 1px solid #eef2f6;
}

.search-suggest-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem;
    text-decoration: none;
    color: #1c2a38;
}

.search-suggest-link img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    flex: 0 0 52px;
}

.search-suggest-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.search-suggest-meta strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1d2d3c;
}

.search-suggest-meta small {
    font-size: 0.72rem;
    color: #607387;
}

.product-searchfm-suggest-list li.is-active,
.product-searchfm-suggest-list li:hover {
    background: #f3f7fb;
}

/* 5) Header menu typography and spacing responsive */
.navbar-light .navbar-nav .nav-link {
    font-family: "Montserrat", sans-serif !important;
    font-size: clamp(0.78rem, 0.7rem + 0.25vw, 0.95rem) !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    line-height: 1.25;
    padding-top: 0.62rem !important;
    padding-bottom: 0.62rem !important;
    text-transform: uppercase;
}

.navbar-nav .dropdown-menu .dropdown-item {
    font-family: "Montserrat", sans-serif !important;
    font-size: clamp(0.76rem, 0.68rem + 0.2vw, 0.9rem) !important;
    letter-spacing: 0.03em;
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        font-size: 0.82rem !important;
        letter-spacing: 0.03em !important;
        padding-top: 0.58rem !important;
        padding-bottom: 0.58rem !important;
    }

    .navbar-collapse {
        max-height: calc(100vh - 92px);
        overflow-y: auto;
    }
}

@media (max-width: 767.98px) {
    .product-searchfm-row {
        grid-template-columns: 1fr;
        border-radius: 12px;
        padding: 0.45rem;
    }

    .product-searchfm-action .btn {
        height: 42px;
    }

    .product-searchfm-query input,
    .product-searchfm-category select {
        height: 42px;
        font-size: 0.88rem;
    }

    .product-searchfm-suggest {
        border-radius: 12px;
    }

    body {
        font-size: 14px;
    }

    .navbar-light .navbar-nav .nav-link {
        font-size: 0.78rem !important;
        letter-spacing: 0.02em !important;
    }
}

/* 6) Corporate readability + stable menu behavior on tablet/mobile */
:root {
    --alya-text: #1f2d3a;
    --alya-muted: #556578;
    --alya-nav-bg: rgba(255, 255, 255, 0.98);
    --alya-nav-border: #e7edf4;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.navbar.navbar-light {
    background: var(--alya-nav-bg);
    border-bottom: 1px solid var(--alya-nav-border);
}

.navbar-light .navbar-nav {
    gap: 0.15rem;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--alya-text) !important;
    border-radius: 10px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    background: #f3f7fb;
    color: #142433 !important;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-light .navbar-nav .nav-link {
        font-size: 0.76rem !important;
        letter-spacing: 0.02em !important;
        padding-left: 0.45rem !important;
        padding-right: 0.45rem !important;
    }
}

@media (max-width: 991.98px) {
    .navbar.navbar-light .container-fluid.container-mobil {
        min-height: 64px;
    }

    .navbar-toggler {
        border-radius: 10px;
        padding: 0.35rem 0.55rem;
        border-color: #d3dde8;
    }

    .navbar-collapse {
        margin-top: 0.4rem;
        padding: 0.45rem;
        border: 1px solid #e4ebf3;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    }

    .navbar-light .navbar-nav .nav-link {
        display: block;
        width: 100%;
        text-transform: none;
        font-weight: 600 !important;
        font-size: 0.88rem !important;
        letter-spacing: 0.01em !important;
        line-height: 1.35;
        padding: 0.6rem 0.7rem !important;
    }

    .navbar-nav .dropdown-menu {
        border: 1px solid #e8eef5;
        border-radius: 10px;
        box-shadow: none;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    h1 {
        font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem);
    }

    h2 {
        font-size: clamp(1.15rem, 0.98rem + 0.9vw, 1.5rem);
    }

    .navbar-light .navbar-nav .nav-link {
        font-size: 0.85rem !important;
        padding: 0.55rem 0.62rem !important;
    }
}

/* 7) Homepage hero/menu contrast: white text over visual */
body.homepage .navbar.navbar-light {
    background: linear-gradient(180deg, rgba(8, 14, 20, 0.78) 0%, rgba(8, 14, 20, 0.52) 68%, rgba(8, 14, 20, 0.22) 100%) !important;
    border-bottom-color: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(6px);
}

body.homepage .navbar-light .navbar-nav .nav-link,
body.homepage .navbar-light .navbar-nav .nav-link:visited,
body.homepage .navbar-light .navbar-brand,
body.homepage .navbar-light .fa-search,
body.homepage .navbar-light .dropdown-toggle {
    color: #ffffff !important;
}

body.homepage .navbar-light .navbar-nav .nav-link:hover,
body.homepage .navbar-light .navbar-nav .nav-link:focus,
body.homepage .navbar-light .navbar-nav .active > .nav-link,
body.homepage .navbar-light .navbar-nav .show > .nav-link {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14) !important;
}

body.homepage .navbar-light .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

body.homepage .navbar-light .navbar-toggler-icon {
    filter: invert(1) brightness(1.8);
}

body.homepage .navbar-light .dropdown-menu {
    background: rgba(15, 21, 28, 0.95);
    border-color: rgba(255, 255, 255, 0.12);
}

body.homepage .navbar-light .dropdown-menu .dropdown-item {
    color: #f4f7fa !important;
}

body.homepage .navbar-light .dropdown-menu .dropdown-item:hover,
body.homepage .navbar-light .dropdown-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

@media (max-width: 991.98px) {
    body.homepage .navbar.navbar-light {
        background: rgba(9, 15, 21, 0.94) !important;
    }
}

/* 8) Category/Product hero title alignment + contrast */
.cat-head-img {
    position: relative;
    overflow: hidden;
}

.cat-head-img > img,
.cat-head-img img.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

.cat-head-img .img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(12px, 2vw, 28px);
    background: linear-gradient(180deg, rgba(9, 15, 22, 0.28) 0%, rgba(9, 15, 22, 0.46) 100%);
}

.cat-head-img .img-overlay .category-title,
.cat-head-img .img-overlay h1,
.cat-head-img .img-overlay h2 {
    margin: 0 !important;
    color: #ffffff !important;
    text-align: center !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
    font-size: clamp(1.1rem, 0.9rem + 1.4vw, 2.1rem);
    line-height: 1.2;
    max-width: min(92%, 980px);
}

@media (max-width: 767.98px) {
    .cat-head-img .img-overlay {
        padding: 10px 14px;
    }

    .cat-head-img .img-overlay .category-title,
    .cat-head-img .img-overlay h1,
    .cat-head-img .img-overlay h2 {
        font-size: clamp(1rem, 0.9rem + 1.1vw, 1.45rem);
    }
}

/* 9) Search panel: no full-screen overlay, dropdown panel under navbar */
.navbar {
    position: relative;
}

.navbar .searchtext,
#searchtext.searchtext,
#searchtext {
    position: absolute !important;
    top: 100% !important;
    left: 0;
    right: 0;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border-top: 1px solid #e6edf4;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
    z-index: 1200;
}

#closesearch.closesearch {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: absolute !important;
    top: 10px !important;
    right: 14px !important;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    background: #f2f6fa;
    color: #32465a;
    z-index: 2;
    cursor: pointer;
}

#closesearch.closesearch i {
    font-size: 0.95rem;
}

#searchtext .product-searchfm-modern {
    width: min(980px, calc(100% - 44px));
    margin: 0 auto;
}

#searchtext .product-searchfm-row {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body.homepage #searchtext {
    background: rgba(12, 18, 24, 0.92) !important;
    border-top-color: rgba(255, 255, 255, 0.14);
}

body.homepage #searchtext .product-searchfm-row {
    background: #ffffff;
}

@media (max-width: 991.98px) {
    #searchtext,
    .navbar .searchtext {
        padding: 8px 10px !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
    }

    #closesearch.closesearch {
        top: 8px !important;
        right: 10px !important;
        width: 30px;
        height: 30px;
    }

    #searchtext .product-searchfm-modern {
        width: calc(100% - 38px);
    }
}

/* 9.1) Homepage search panel keep light (no dark scrim) */
body.homepage #searchtext {
    background: rgba(255, 255, 255, 0.98) !important;
    border-top-color: #e6edf4 !important;
}


/* 10) Category listing modernization (Alya) */
.category-page .category-toolbar {
    background: #ffffff;
    border: 1px solid #e4ebf3;
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.category-page .category-toolbar .text-muted {
    color: #1b2a39 !important;
}

.category-page .category-toolbar .text-secondary {
    color: #5f7388 !important;
}

.category-page .category-toolbar .sort-by {
    margin-left: auto;
}

.category-page .category-toolbar .sort-by .form-control {
    min-width: 220px;
    height: 38px;
    border-radius: 10px;
    border-color: #d8e2ed;
    font-size: 0.86rem;
}

.category-page .nav-pagination .page-link {
    border-radius: 10px;
}

.category-page .alert.alert-light {
    border-radius: 14px;
    background: #f8fbff;
    color: #304255;
}

.category-page .swip-filter.product-list-filters {
    position: sticky;
    top: 98px;
}

@media (max-width: 991.98px) {
    .category-page .category-toolbar {
        padding: 0.6rem 0.7rem;
        border-radius: 12px;
    }

    .category-page .category-toolbar .sort-by {
        width: 100%;
        margin-left: 0;
    }

    .category-page .category-toolbar .sort-by .form-control {
        min-width: 100%;
    }

    .category-page .swip-filter.product-list-filters {
        position: static;
    }
}

/* 11) Navbar stabilization across home/detail/tablet/mobile */
.navbar.navbar-light.sticky-top {
    top: 0 !important;
    z-index: 1100;
}

body.homepage .navbar.navbar-light.sticky-top,
body.detailbody .navbar.navbar-light.sticky-top {
    position: sticky !important;
    top: 0 !important;
}

/* keep header visible on first paint (prevents "appears after scroll/refresh" issue) */
body.homepage .navbar,
body.homepage .topmenu,
body.detailbody .navbar,
body.detailbody .topmenu {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (min-width: 992px) {
    /* neutralize old absolute/fixed desktop rules that break logo/menu alignment */
    .navbar > .container,
    .navbar > .container-fluid,
    .navbar > .container-lg,
    .navbar > .container-md,
    .navbar > .container-sm,
    .navbar > .container-xl,
    .navbar > .container-xxl {
        position: relative !important;
        display: flex !important;
        align-items: center;
    }

    .topmenu {
        position: relative !important;
        width: auto !important;
        flex: 1 1 auto;
    }

    .navbar-collapse {
        position: relative !important;
        top: auto !important;
        width: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
    }

    body.detailbody .detailtopmenu {
        position: sticky !important;
        top: 0 !important;
    }

    body.detailbody .detailtopmenu .mobilelogo,
    body.detailbody .detailtopmenu .desclogo,
    body.detailbody .detailtopmenu .descimglogo,
    body.detailbody .detailtopmenu .mobimglogo {
        margin-top: 0 !important;
        top: auto !important;
        position: relative !important;
    }
}

@media (max-width: 991.98px) {
    .navbar.navbar-light.sticky-top {
        position: sticky !important;
        top: 0 !important;
    }

    .navbar-collapse {
        position: absolute !important;
        top: 100% !important;
        left: 0;
        right: 0;
    }
}

/* 12) Homepage nav over slider: transparent and clean */
body.homepage .navbar.navbar-light,
body.homepage .navbar.navbar-light.sticky-top {
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.homepage .navbar .container-mobil,
body.homepage .navbar .topmenu,
body.homepage .navbar .navbar-collapse {
    background: transparent !important;
}

/* On scroll: keep sticky nav but add blur glass background */
body.homepage .navbar.navbar-light.is-scrolled,
body.homepage .navbar.navbar-light.sticky-top.is-scrolled {
    background: rgba(12, 18, 24, 0.58) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 8px 24px rgba(8, 14, 20, 0.2) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Search close button: clearer and premium */
#searchtext #closesearch.closesearch {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #d6e0ea;
    border-radius: 999px;
    background: #0f1b27 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(15, 27, 39, 0.3);
}

#searchtext #closesearch.closesearch i {
    color: #ffffff !important;
    font-size: 0.92rem;
    line-height: 1;
}

#searchtext #closesearch.closesearch:hover {
    background: #1d3145 !important;
}

/* 12.1) Homepage nav overlays slider at top, then becomes fixed on scroll */
body.homepage .navbar.navbar-light,
body.homepage .navbar.navbar-light.sticky-top {
    position: absolute !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1200;
}

body.homepage .navbar.navbar-light.is-scrolled,
body.homepage .navbar.navbar-light.sticky-top.is-scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
}

/* 13) Contact page modernization */
.contactpage .contactfrm-modern .wrapper {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e3ebf4;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09);
    background: #ffffff;
}

.contactpage .contactfrm-modern .contact-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.contactpage .contactfrm-modern .heading-section {
    font-size: clamp(1.4rem, 1.2rem + 0.9vw, 2rem);
    letter-spacing: 0.02em;
}

.contactpage .contactfrm-modern .form-control,
.contactpage .contactfrm-modern .input-contact {
    border: 1px solid #d9e3ee;
    border-radius: 12px;
    min-height: 46px;
    font-size: 0.92rem;
    box-shadow: none;
}

.contactpage .contactfrm-modern textarea.form-control {
    min-height: 130px;
}

.contactpage .contactfrm-modern .form-control:focus,
.contactpage .contactfrm-modern .input-contact:focus {
    border-color: #90a9bf;
    box-shadow: 0 0 0 0.18rem rgba(107, 137, 163, 0.15);
}

.contactpage .contactfrm-modern .btn.btn-primary {
    border: 0 !important;
    border-radius: 12px;
    padding: 0.72rem 1.15rem;
    background: #1f3348 !important;
    color: #ffffff !important;
}

.contactpage .contactfrm-modern .btn.btn-primary:hover {
    background: #152638 !important;
}

.contactpage .contactfrm-modern .info-wrap {
    background: linear-gradient(180deg, #2b3e52 0%, #1a2b3b 100%) !important;
}

.contactpage .contactfrm-modern .info-wrap .dbox {
    padding: 0.42rem 0;
}

.contactpage .contactfrm-modern .info-wrap .dbox .icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.contactpage .contactfrm-modern .info-wrap .dbox .icon span {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1;
}

.contactpage .contactfrm-modern .info-wrap .dbox .text a {
    color: #f2f8ff;
    text-decoration: none;
}

.contactpage .contactfrm-modern .info-wrap .dbox .text a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .contactpage .contactfrm-modern .wrapper {
        border-radius: 14px;
    }

    .contactpage .contactfrm-modern .contact-wrap,
    .contactpage .contactfrm-modern .info-wrap {
        padding: 1rem !important;
    }
}

/* 14) Submit contact result + corporate footer refresh */
.contactpage .contact-result-modern .contact-result-card {
    max-width: 760px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dfe8f1;
    border-radius: 18px;
    padding: clamp(18px, 3vw, 34px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}

.contactpage .contact-result-modern .contact-result-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 14px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #22a05b 0%, #157744 100%);
    color: #ffffff;
    font-size: 2rem;
}

.contactpage .contact-result-modern .contact-result-title {
    color: #1b2d3f;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.contactpage .contact-result-modern .contact-result-text {
    color: #506377;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contactpage .contact-result-modern .contact-result-actions .btn {
    min-width: 170px;
    border-radius: 11px;
    padding: 0.64rem 1rem;
}

.contactpage .contact-result-modern .contact-result-actions .btn-outline-secondary {
    border-color: #c4d2df;
    color: #2a4055;
}

.contactpage .contact-result-modern .contact-result-actions .btn-outline-secondary:hover {
    background: #edf3f8;
    color: #1b2d3f;
}

.footer.bgfooter {
    background-image: linear-gradient(140deg, rgba(17, 23, 38, 0.97), rgba(28, 42, 56, 0.37)), url('/themes/Alya/img/foother-bg.jpg');
    background-size: cover;
    background-position: center;
    border-top: 0;
}

.footer .row.g-5 {
    row-gap: 1.8rem !important;
}

.footer h4,
.footer .text-white {
    color: #f5f8fb !important;
    letter-spacing: 0.02em;
}

.footer a {
    color: #d7e3ef;
    text-decoration: none;
}

.footer a:hover {
    color: #ffffff !important;
}

.footer .btn.btn-link {
    color: #dbe7f2;
}

.footer .btn.btn-link:hover {
    color: #ffffff !important;
    letter-spacing: 0.2px;
}

.footer .copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer .footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.7rem;
}

.footer .footer-menu a {
    margin-right: 0;
    padding-right: 0.7rem;
    border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.footer .footer-menu a:last-child {
    border-right: 0;
    padding-right: 0;
}

@media (max-width: 767.98px) {
    .contactpage .contact-result-modern .contact-result-card {
        border-radius: 14px;
    }

    .footer .footer-menu {
        justify-content: center;
        gap: 0.4rem;
    }
}

/* 15) News/Blog pages modernization */
.news-category-page .news-category-intro {
    border: 1px solid #e4ebf3;
    border-radius: 14px;
    background: #ffffff;
    padding: 0.95rem 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.news-category-page .news-category-toolbar h3 {
    color: #1c2d3e;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.news-category-page .news-category-count {
    font-size: 0.82rem;
    color: #5b7085;
    background: #eef4fb;
    border: 1px solid #d8e3ef;
    border-radius: 999px;
    padding: 0.26rem 0.6rem;
}

.news-category-page .blog-container {
    border: 1px solid #e4ebf3;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-category-page .blog-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.news-category-page .blog-container .panel-body {
    padding: 0.9rem;
}

.news-category-page .blog-container .image-wrapper img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.news-detail-page .news-detail-hero {
    position: relative;
    min-height: clamp(240px, 36vw, 430px);
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.news-detail-page .news-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.72);
}

.news-detail-page .news-detail-hero .overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(11, 18, 26, 0.2) 0%, rgba(11, 18, 26, 0.56) 100%);
    padding: 0 1rem;
}

.news-detail-page .news-detail-hero h1 {
    color: #ffffff;
    text-align: center;
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem);
    max-width: 900px;
}

.news-detail-page .news-article-card {
    border: 1px solid #e4ebf3;
    border-radius: 16px;
    background: #ffffff;
    padding: clamp(1rem, 1.2vw, 1.6rem);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.news-detail-page .news-short-content,
.news-detail-page .news-full-content {
    color: #283b4d;
    line-height: 1.75;
}

.news-detail-page .news-main-image img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-detail-page .news-gallery img {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.news-detail-page .news-sidebar-card {
    border: 1px solid #e4ebf3;
    border-radius: 14px;
    background: #ffffff;
    padding: 0.8rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.news-detail-page .news-sidebar-title {
    color: #1f3347;
    text-transform: none !important;
    letter-spacing: 0.01em;
    font-weight: 700;
}

.news-detail-page .related-post {
    border: 1px solid #e6edf5;
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.news-detail-page .related-post img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
}

.news-detail-page .related-post a {
    color: #23364a;
    text-decoration: none;
}

.news-detail-page .related-post a:hover {
    color: #0f2236;
}

@media (max-width: 991.98px) {
    .news-detail-page .news-article-card {
        margin-bottom: 1rem;
    }
}

/* 16) Premium news thumbnail card (safe, non-breaking) */
.news-category-page .news-thumb-card {
    border: 1px solid #e5edf5;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.news-category-page .news-thumb-body {
    padding: 0.85rem;
}

.news-category-page .news-thumb-media {
    margin-bottom: 0.7rem;
}

.news-category-page .news-thumb-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.news-category-page .news-thumb-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.news-category-page .news-thumb-card:hover .news-thumb-image {
    transform: scale(1.04);
}

.news-category-page .news-thumb-title {
    font-size: 1.02rem;
    line-height: 1.35;
    color: #1e3144;
    font-weight: 700;
    margin-bottom: 0.42rem;
}

.news-category-page .news-thumb-excerpt {
    color: #576b7f;
    font-size: 0.87rem;
    line-height: 1.58;
    margin-bottom: 0.55rem;
}

.news-category-page .news-thumb-readmore {
    display: inline-flex;
    align-items: center;
    color: #1f3b56;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.86rem;
}

.news-category-page .news-thumb-readmore:hover {
    color: #0f2740;
}

/* 17) News detail sidebar typography + icons */
.news-detail-page .news-sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
}

.news-detail-page .news-sidebar-title .bi {
    color: #2b435a;
    font-size: 0.95em;
}

.news-detail-page .nav-pills.nav-stacked {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-detail-page .nav-pills.nav-stacked li {
    margin: 0;
    border-bottom: 1px solid #edf2f7;
}

.news-detail-page .nav-pills.nav-stacked li:last-child {
    border-bottom: 0;
}

.news-detail-page .nav-pills.nav-stacked li > a {
    display: flex;
    align-items: center;
    gap: 0.46rem;
    padding: 0.55rem 0.25rem;
    color: #2b4055;
    text-decoration: none;
    font-size: clamp(0.84rem, 0.8rem + 0.18vw, 0.95rem);
    line-height: 1.35;
}

.news-detail-page .nav-pills.nav-stacked li > a .bi {
    color: #617a91;
    font-size: 0.72rem;
    flex: 0 0 auto;
}

.news-detail-page .nav-pills.nav-stacked li > a:hover {
    color: #14283c;
}

.news-detail-page .nav-pills.nav-stacked .submenu {
    list-style: none;
    margin: 0 0 0 0.85rem;
    padding: 0 0 0 0.25rem;
    border-left: 1px dashed #d8e2ec;
}

.news-detail-page .nav-pills.nav-stacked .submenu li > a {
    padding: 0.44rem 0.25rem;
    font-size: clamp(0.8rem, 0.76rem + 0.12vw, 0.9rem);
}

.news-detail-page .related-post div > a {
    font-size: clamp(0.88rem, 0.84rem + 0.2vw, 0.98rem);
    font-weight: 650;
    line-height: 1.35;
}

.news-detail-page .related-post .text-muted.small {
    font-size: clamp(0.74rem, 0.72rem + 0.12vw, 0.82rem) !important;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .news-detail-page .news-sidebar-card {
        padding: 0.72rem;
    }

    .news-detail-page .nav-pills.nav-stacked li > a {
        padding: 0.5rem 0.15rem;
    }
}

/* 18) News search form upgrade */
.news-search-form {
    margin: 0;
    width: 100%;
}

.news-search-form .news-search-form-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.38rem;
    border: 1px solid #dbe5ef;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.news-search-form .news-search-input.form-control {
    height: 44px;
    border: 0 !important;
    border-radius: 10px !important;
    font-size: 0.92rem;
    padding: 0.6rem 0.72rem;
    color: #223549;
    box-shadow: none !important;
}

.news-search-form .news-search-input::placeholder {
    color: #8398ad;
    opacity: 1;
}

.news-search-form .news-search-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 0 !important;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1d3348 !important;
    box-shadow: 0 8px 18px rgba(16, 35, 53, 0.25);
    flex: 0 0 44px;
}

.news-search-form .news-search-btn .bi {
    font-size: 0.95rem;
    color: #ffffff;
}

.news-search-form .news-search-btn:hover,
.news-search-form .news-search-btn:focus {
    background: #142637 !important;
}

@media (max-width: 767.98px) {
    .news-search-form .news-search-form-inner {
        border-radius: 12px;
        padding: 0.32rem;
    }

    .news-search-form .news-search-input.form-control {
        height: 40px;
        font-size: 0.86rem;
    }

    .news-search-form .news-search-btn {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}

/* 19) News search autocomplete */
.news-search-form {
    position: relative;
}

.news-search-form .news-search-suggest {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 1250;
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
    max-height: 360px;
    overflow-y: auto;
}

.news-search-form .news-search-suggest-list {
    margin: 0;
    padding: 0.34rem;
    list-style: none;
}

.news-search-form .news-search-suggest-list li + li {
    border-top: 1px solid #eef3f8;
}

.news-search-form .news-search-suggest-link {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    padding: 0.48rem;
    color: #21364a;
    text-decoration: none;
}

.news-search-form .news-search-suggest-link img,
.news-search-form .news-search-suggest-dot {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    flex: 0 0 42px;
    object-fit: cover;
}

.news-search-form .news-search-suggest-dot {
    background: linear-gradient(180deg, #dce7f2 0%, #c7d5e4 100%);
    display: inline-block;
}

.news-search-form .news-search-suggest-text {
    font-size: 0.86rem;
    line-height: 1.35;
    font-weight: 600;
}

.news-search-form .news-search-suggest-list li.is-active,
.news-search-form .news-search-suggest-list li:hover {
    background: #f2f7fc;
}

/* 20) CMS page detail modernization */
.cms-page-detail .cms-content-shell {
    max-width: min(1080px, 96vw);
    margin: 0 auto;
    padding: clamp(1rem, 1.4vw, 1.7rem);
    border: 1px solid #e3ebf4;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    color: #25384c;
    line-height: 1.8;
}

.cms-page-detail .cms-content-shell h1,
.cms-page-detail .cms-content-shell h2,
.cms-page-detail .cms-content-shell h3,
.cms-page-detail .cms-content-shell h4 {
    color: #1a2f43;
    margin-top: 1.1em;
    margin-bottom: 0.55em;
    line-height: 1.35;
}

.cms-page-detail .cms-content-shell p,
.cms-page-detail .cms-content-shell li {
    font-size: clamp(0.92rem, 0.88rem + 0.18vw, 1rem);
}

.cms-page-detail .cms-content-shell ul,
.cms-page-detail .cms-content-shell ol {
    padding-left: 1.1rem;
}

.cms-page-detail .cms-content-shell img,
.cms-page-detail .cms-content-shell iframe,
.cms-page-detail .cms-content-shell video,
.cms-page-detail .cms-content-shell table {
    max-width: 100% !important;
    height: auto;
}

.cms-page-detail .cms-content-shell table {
    width: 100%;
    display: block;
    overflow-x: auto;
}

.cms-page-detail .cms-content-shell blockquote {
    margin: 1rem 0;
    padding: 0.7rem 0.95rem;
    border-left: 3px solid #8ea6bc;
    background: #f3f8fd;
    color: #2f4860;
}

@media (max-width: 767.98px) {
    .cms-page-detail .cms-content-shell {
        border-radius: 12px;
        padding: 0.85rem;
        line-height: 1.7;
    }
}

/* 21) CMS TOC + footer social icon reliability */
.cms-page-detail .cms-toc {
    max-width: min(1080px, 96vw);
    margin: 0 auto 0.85rem;
    border: 1px solid #dde7f1;
    border-radius: 14px;
    background: #f7fbff;
    padding: 0.78rem 0.9rem;
}

.cms-page-detail .cms-toc-title {
    margin: 0 0 0.45rem;
    font-size: 0.96rem;
    color: #1f3549;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.cms-page-detail .cms-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.28rem;
}

.cms-page-detail .cms-toc-list li a {
    color: #2a4258;
    text-decoration: none;
    font-size: 0.86rem;
    line-height: 1.4;
}

.cms-page-detail .cms-toc-list li.is-sub {
    padding-left: 0.75rem;
}

.cms-page-detail .cms-toc-list li a:hover {
    color: #11283e;
    text-decoration: underline;
}

.footer .btn.btn-social {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

.footer .btn.btn-social .bi,
.footer .btn.btn-social .fa,
.footer .btn.btn-social .fab {
    font-size: 0.98rem;
    line-height: 1;
    color: #f0f6fc;
}

.footer .btn.btn-social:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.55);
}

/* 22) Premium loader + back-to-top refresh */
#spinner {
    background: radial-gradient(circle at 20% 20%, #f7fbff 0%, #ecf3fa 45%, #e2ebf5 100%) !important;
}

#spinner .spinner-border {
    width: 132px !important;
    height: 132px !important;
    border: 2px solid rgba(31, 51, 72, 0.18) !important;
    border-top-color: #1f3348 !important;
    border-right-color: #2d4863 !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);
    position: relative;
    animation: spin 0.9s linear infinite;
}

#spinner .spinner-border::after {
    content: 'ALYA';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #1f3348;
    animation: alyaPulse 1.35s ease-in-out infinite;
}

#spinner .spinner-border .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.back-to-top {
    right: 22px !important;
    bottom: 22px !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    background: linear-gradient(180deg, rgba(27, 44, 61, 0.94) 0%, rgba(18, 31, 44, 0.96) 100%) !important;
    color: #f4f8fc !important;
    box-shadow: 0 12px 24px rgba(10, 18, 29, 0.26);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.back-to-top i {
    font-size: 1rem;
    line-height: 1;
}

.back-to-top:hover,
.back-to-top:focus {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(43, 67, 91, 0.96) 0%, rgba(24, 40, 56, 0.98) 100%) !important;
    color: #ffffff !important;
}

@media (max-width: 767.98px) {
    #spinner .spinner-border {
        width: 108px !important;
        height: 108px !important;
    }

    #spinner .spinner-border::after {
        font-size: 1rem;
        letter-spacing: 0.14em;
    }

    .back-to-top {
        right: 14px !important;
        bottom: 14px !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
    }
}

@keyframes alyaPulse {
    0% {
        opacity: 0.7;
        transform: scale(0.98);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* 23) Category infinite scroll loader */
.category-infinite-loader {
    margin: 0.8rem auto 0;
    width: fit-content;
    padding: 0.45rem 0.8rem;
    border: 1px solid #d8e3ef;
    border-radius: 999px;
    background: #f4f8fc;
    color: #2a4258;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.category-infinite-loader::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 0.45rem;
    vertical-align: -1px;
    border: 2px solid rgba(42, 66, 88, 0.28);
    border-top-color: #2a4258;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.category-infinite-sentinel {
    width: 100%;
    height: 2px;
}

/* 24) Swatch request page + slider CTA */
.slider-swatch-cta {
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.72) !important;
    color: #ffffff !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.slider-swatch-cta:hover,
.slider-swatch-cta:focus {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
}

.swatch-request-page .swatch-request-card {
    border: 1px solid #dbe6f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
    padding: clamp(1rem, 1.5vw, 1.65rem);
}

.swatch-request-page .swatch-request-title {
    font-size: clamp(1.35rem, 1.1rem + 0.9vw, 2rem);
    color: #1b2f44;
    margin-bottom: 0.35rem;
}

.swatch-request-page .swatch-request-subtitle {
    color: #5f7387;
    margin-bottom: 1rem;
}

.swatch-request-page .swatch-request-form .form-control {
    min-height: 44px;
    border-radius: 11px;
    border: 1px solid #d6e2ee;
}

.swatch-request-page .swatch-request-form textarea.form-control {
    min-height: 118px;
}

.swatch-request-page .swatch-request-form .form-control:focus {
    border-color: #90a8bd;
    box-shadow: 0 0 0 0.16rem rgba(107, 137, 163, 0.16);
}

.swatch-request-page .swatch-submit-btn {
    border-radius: 11px;
    padding: 0.68rem 1.05rem;
    border: 0 !important;
    background: #1e344a !important;
}

.swatch-request-page .swatch-submit-btn:hover {
    background: #13293d !important;
}

.swatch-request-page .swatch-suggest {
    position: relative;
    margin-top: 0.35rem;
    border: 1px solid #dce7f1;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.13);
    max-height: 300px;
    overflow-y: auto;
}

.swatch-request-page .swatch-suggest-list {
    margin: 0;
    padding: 0.35rem;
    list-style: none;
}

.swatch-request-page .swatch-suggest-list li + li {
    border-top: 1px solid #eef3f8;
}

.swatch-request-page .swatch-suggest-item {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
    padding: 0.46rem;
    border-radius: 8px;
    color: #24384d;
}

.swatch-request-page .swatch-suggest-item:hover {
    background: #f2f7fc;
}

.swatch-request-page .swatch-suggest-item img,
.swatch-request-page .swatch-suggest-dot {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 44px;
}

.swatch-request-page .swatch-suggest-dot {
    display: inline-block;
    background: linear-gradient(180deg, #dce7f1 0%, #c9d7e4 100%);
}

.swatch-request-page .swatch-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.swatch-request-page .swatch-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid #d6e2ee;
    border-radius: 999px;
    padding: 0.28rem 0.56rem;
    background: #f5f9fd;
}

.swatch-request-page .swatch-chip a {
    color: #224057;
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 600;
}

.swatch-request-page .swatch-chip-remove {
    border: 0;
    background: #dde8f3;
    color: #29435a;
    width: 22px;
    height: 22px;
    line-height: 22px;
    border-radius: 999px;
    padding: 0;
}

.swatch-request-page .swatch-empty {
    font-size: 0.83rem;
    color: #71869b;
}

@media (max-width: 991.98px) {
    .slider-swatch-cta {
        margin-top: 0.55rem;
        margin-left: 0 !important;
        display: inline-block;
    }
}

/* 25) Homepage swatch CTA band */
.home-swatch-cta {
    padding: clamp(14px, 2vw, 26px) 0;
}

.home-swatch-cta .home-swatch-cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #dce7f1;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    padding: clamp(0.95rem, 2vw, 1.4rem);
}

.home-swatch-cta .home-swatch-cta-kicker {
    margin: 0 0 0.2rem;
    color: #5c748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    font-weight: 700;
}

.home-swatch-cta .home-swatch-cta-content h2 {
    margin: 0 0 0.35rem;
    color: #1b3044;
    font-size: clamp(1.2rem, 1rem + 0.9vw, 1.8rem);
}

.home-swatch-cta .home-swatch-cta-content p {
    margin: 0;
    color: #4f657a;
    font-size: clamp(0.85rem, 0.8rem + 0.18vw, 0.95rem);
}

.home-swatch-cta .home-swatch-cta-btn {
    border-radius: 12px;
    padding: 0.72rem 1rem;
    white-space: nowrap;
    border: 0;
    background: #1d3348 !important;
}

.home-swatch-cta .home-swatch-cta-btn:hover {
    background: #13283c !important;
}

/* Swatch page extra info blocks */
.swatch-request-page .swatch-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.swatch-request-page .swatch-info-item {
    display: flex;
    gap: 0.55rem;
    border: 1px solid #dbe7f1;
    border-radius: 12px;
    background: #f7fbff;
    padding: 0.7rem;
}

.swatch-request-page .swatch-info-item > .bi {
    color: #29435a;
    font-size: 1rem;
    margin-top: 0.1rem;
}

.swatch-request-page .swatch-info-item h3 {
    margin: 0 0 0.2rem;
    font-size: 0.86rem;
    color: #1d3449;
}

.swatch-request-page .swatch-info-item p {
    margin: 0;
    font-size: 0.78rem;
    color: #5f7388;
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .home-swatch-cta .home-swatch-cta-inner {
        grid-template-columns: 1fr;
    }

    .home-swatch-cta .home-swatch-cta-actions {
        width: 100%;
    }

    .home-swatch-cta .home-swatch-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .swatch-request-page .swatch-info-grid {
        grid-template-columns: 1fr;
    }
}

/* 26) Mobile navbar polish (home + detail) */
@media (max-width: 991.98px) {
    .navbar.navbar-light .navbar-collapse {
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 0 0 14px 14px;
        overflow: hidden;
    }

    body.homepage .navbar.navbar-light .navbar-collapse.show,
    body.homepage .navbar.navbar-light .navbar-collapse.collapsing,
    body.detailbody .navbar.navbar-light .navbar-collapse.show,
    body.detailbody .navbar.navbar-light .navbar-collapse.collapsing {
        background: linear-gradient(180deg, rgba(8, 14, 20, 0.97) 0%, rgba(12, 20, 30, 0.95) 100%) !important;
        box-shadow: 0 16px 28px rgba(8, 12, 16, 0.32);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .navbar.navbar-light .navbar-nav {
        gap: 0.25rem;
        padding: 0.75rem 0.9rem !important;
    }

    .navbar-light .navbar-nav .nav-link {
        border-radius: 10px;
    }

    body.homepage .navbar.navbar-light.menu-open,
    body.homepage .navbar.navbar-light.menu-open .container-mobil {
        background: rgba(8, 14, 20, 0.9) !important;
    }

    body.detailbody .navbar.navbar-light.menu-open,
    body.detailbody .navbar.navbar-light.menu-open .container-mobil {
        background: rgba(9, 16, 24, 0.95) !important;
    }

    body.homepage .navbar.navbar-light.menu-open .mobilsearch,
    body.detailbody .navbar.navbar-light.menu-open .mobilsearch {
        display: none !important;
    }

    body.homepage .navbar.navbar-light .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.45);
    }

    body.homepage .navbar.navbar-light .navbar-toggler-icon {
        filter: invert(1) brightness(1.8);
    }

    body.detailbody .navbar.navbar-light .navbar-toggler {
        border-color: rgba(22, 38, 54, 0.35);
        background: rgba(255, 255, 255, 0.86);
    }

    body.detailbody .navbar.navbar-light .navbar-toggler-icon {
        filter: none !important;
    }

    body.detailbody .navbar.navbar-light .mobilsearch i {
        color: #132638 !important;
    }

    /* mobile tree/dropdown menu readability */
    .navbar.navbar-light .navbar-collapse .nav-item.dropdown > .dropdown-menu {
        position: static !important;
        float: none !important;
        transform: none !important;
        width: 100%;
        margin: 0.35rem 0 0.55rem !important;
        padding: 0.35rem;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.06) !important;
        box-shadow: none !important;
    }

    .navbar.navbar-light .navbar-collapse .dropdown-item {
        border-radius: 8px;
        padding: 0.55rem 0.75rem;
        font-size: 0.84rem;
    }

    .navbar.navbar-light .navbar-collapse .dropdown-item:hover,
    .navbar.navbar-light .navbar-collapse .dropdown-item:focus {
        background: rgba(255, 255, 255, 0.14) !important;
    }

    .navbar.navbar-light .navbar-collapse .nav-item.dropdown > .nav-link.dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .navbar.navbar-light .navbar-collapse .nav-item.dropdown.show > .nav-link.dropdown-toggle {
        background: rgba(255, 255, 255, 0.14) !important;
    }

    .navbar.navbar-light .navbar-collapse .nav-item.dropdown > .nav-link.dropdown-toggle::after {
        transition: transform 0.2s ease;
    }

    .navbar.navbar-light .navbar-collapse .nav-item.dropdown.show > .nav-link.dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* 27) Logo polish */
.navbar .desclogo .descimglogo,
.navbar .mobilelogo .mobimglogo {
    filter: drop-shadow(0 8px 14px rgba(10, 18, 28, 0.2));
    transition: filter 0.2s ease;
}

.navbar .desclogo:hover .descimglogo,
.navbar .mobilelogo:hover .mobimglogo {
    filter: drop-shadow(0 10px 18px rgba(10, 18, 28, 0.26));
}

/* 28) Header stability on narrow screens (logo + language + search + toggler) */
@media (max-width: 991.98px) {
    .navbar.navbar-light .container-fluid.container-mobil {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 0.4rem;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }

    .navbar.navbar-light .mobilelogo {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: auto;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    .navbar.navbar-light .mobilelogo .mobimglogo {
        max-width: clamp(115px, 34vw, 178px);
        width: 100%;
        height: auto;
    }

    .navbar.navbar-light #mobillanguage,
    .navbar.navbar-light .mobilsearch,
    .navbar.navbar-light .navbar-toggler {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: auto !important;
        margin: 0 !important;
    }

    .navbar.navbar-light #mobillanguage {
        display: flex !important;
        align-items: center;
    }

    .navbar.navbar-light #mobillanguage .dropdown,
    .navbar.navbar-light #mobillanguage .btn,
    .navbar.navbar-light #mobillanguage .selectpicker {
        margin: 0 !important;
    }

    .navbar.navbar-light .mobilsearch {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px !important;
        height: 36px;
        border-radius: 10px;
    }

    .navbar.navbar-light .mobilsearch i {
        font-size: 1.1rem !important;
        line-height: 1;
    }

    .navbar.navbar-light .navbar-toggler {
        width: 40px;
        height: 36px;
        padding: 0.3rem 0.45rem !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .navbar.navbar-light .container-fluid.container-mobil {
        gap: 0.25rem;
    }

    .navbar.navbar-light .mobilelogo .mobimglogo {
        max-width: clamp(96px, 32vw, 135px);
    }

    .navbar.navbar-light #mobillanguage .fi {
        transform: scale(0.92);
    }
}

/* 29) Top menu density tuning for medium screens */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .navbar.navbar-light .navbar-nav {
        gap: 0 !important;
        flex-wrap: nowrap !important;
    }

    .navbar-light .navbar-nav .nav-link {
        margin-right: 0.2rem !important;
        padding-left: 0.32rem !important;
        padding-right: 0.32rem !important;
        font-size: clamp(0.67rem, 0.48rem + 0.32vw, 0.9rem) !important;
        letter-spacing: 0.005em !important;
    }

    #decklanguage {
        margin-left: 0.22rem !important;
        margin-right: 0.12rem !important;
    }

    .descsearch {
        margin-left: 0.1rem !important;
    }
}

/* 30) Detail page top logo centered */
body.detailbody .detailtopmenu {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

body.detailbody .detailtopmenu > .desclogo {
    position: relative !important;
    left: auto;
    top: auto;
    transform: none;
    z-index: 1;
    margin: 0.35rem auto 0.2rem !important;
    display: flex !important;
    justify-content: center;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.detailbody .detailtopmenu > .desclogo .descimglogo {
    max-width: clamp(170px, 18vw, 260px);
    width: 100%;
    height: auto;
}

@media (max-width: 991.98px) {
    .navbar.navbar-light .container-fluid.container-mobil {
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }

    body.detailbody .detailtopmenu > .desclogo { display: none !important; }
}

/* 31) Premium loader */
#spinner {
    background:
        radial-gradient(circle at 20% 20%, rgba(130, 155, 180, 0.22), transparent 48%),
        radial-gradient(circle at 80% 75%, rgba(18, 36, 54, 0.12), transparent 52%),
        linear-gradient(160deg, #f7fafd 0%, #eef3f8 100%) !important;
}

#spinner .spinner-border {
    width: 7.4rem !important;
    height: 7.4rem !important;
    border: 0 !important;
    background: transparent !important;
    position: relative;
    border-radius: 50%;
    animation: alyaLoaderPulse 1.7s ease-in-out infinite;
}

#spinner .spinner-border::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(18, 36, 54, 0.08),
        rgba(31, 55, 78, 0.92),
        rgba(148, 133, 98, 0.7),
        rgba(18, 36, 54, 0.08)
    );
    -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%);
    mask: radial-gradient(circle, transparent 58%, #000 59%);
    animation: alyaLoaderSpin 1.15s linear infinite;
}

#spinner .spinner-border::after {
    content: "ALYA";
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.18em;
    font-size: 0.9rem;
    font-weight: 700;
    color: #203548;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f2f6fb 72%);
    box-shadow:
        inset 0 0 0 1px rgba(31, 55, 78, 0.14),
        0 10px 24px rgba(16, 32, 46, 0.16);
}

@keyframes alyaLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes alyaLoaderPulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 8px 20px rgba(12, 24, 36, 0.14));
    }
    50% {
        transform: scale(1.04);
        filter: drop-shadow(0 14px 28px rgba(12, 24, 36, 0.2));
    }
}

/* 32) Home product slider stabilization */
.home-product-slider {
    padding-top: clamp(1.8rem, 1.2rem + 1vw, 2.8rem);
    padding-bottom: clamp(1.6rem, 1.1rem + 1vw, 2.6rem);
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7fc 100%);
    border-top: 1px solid #e4edf6;
    border-bottom: 1px solid #e4edf6;
}

.home-product-slider .home-product-slider-head {
    margin-bottom: clamp(1rem, 0.85rem + 0.6vw, 1.65rem);
}

.home-product-slider .home-product-slider-head h2 {
    color: #1a3044;
    font-size: clamp(1.15rem, 0.95rem + 0.9vw, 1.8rem);
}

.home-product-slider .home-product-slider-subtitle {
    margin: 0.45rem auto 0;
    max-width: 760px;
    color: #587088;
    font-size: 0.9rem;
    line-height: 1.5;
}

.home-product-slider .testimonial-carousel {
    padding: 0.25rem 0.2rem 0.35rem;
}

.home-product-slider .home-product-slider-shell {
    position: relative;
    padding: 0 34px;
}

.home-product-slider .home-product-slider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 28px) / 3);
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0.15rem 0.1rem 0.35rem;
    scrollbar-width: none;
}

.home-product-slider .home-product-slider-track::-webkit-scrollbar {
    display: none;
}

.home-product-slider .home-product-slide {
    scroll-snap-align: start;
    min-width: 0;
    display: flex;
}

.home-product-slider .testimonial-item {
    border: 1px solid #e3ebf4;
    border-radius: 16px;
    background: #ffffff;
    padding: 0.55rem 0.55rem 0.6rem;
    box-shadow: 0 14px 28px rgba(15, 24, 40, 0.08);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    width:100%;
}

.home-product-slider .testimonial-item:hover {
    transform: translateY(-3px);
    border-color: #ccdceb;
    box-shadow: 0 18px 30px rgba(14, 25, 38, 0.12);
}

.home-product-slider .testimonial-item a:first-child {
    width: 100%;
    border-radius: 12px;
    background: #f7fbff;
    border: 1px solid #e5eef7;
}

.home-product-slider .testimonial-item img {
    object-fit: contain;
    border: 0 !important;
    margin-bottom: 0 !important;
    background: #f7fbff;
    aspect-ratio: 1 / 1;
}

.home-product-slider .testimonial-item h5 {
    margin-bottom: 0 !important;
    min-height: 1.35em;
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: center;
}

.home-product-slider .testimonial-item h5 a {
    display: block;
    width: 100%;
    white-space: normal;
    overflow: hidden;
    text-overflow: unset;
    text-align: center;
    color: #13283c !important;
    font-weight: 600;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-product-slider .home-product-card-body {
    padding-top: 0.42rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.home-product-slider .home-product-card-desc {
    font-size: 0.81rem;
    line-height: 1.45;
    color: #5a6f84;
    min-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home-product-slider .home-product-card-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid #d7e3ef;
    background: #f9fcff;
    color: #1d3449 !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.home-product-slider .home-product-card-desc,
.home-product-slider .home-product-card-link {
    display: none !important;
}

.home-product-slider .home-product-card-link:hover {
    background: #1d3348;
    border-color: #1d3348;
    color: #ffffff !important;
}

.home-product-slider .home-product-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d6e2ee;
    background: #ffffff;
    color: #1f3448;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.home-product-slider .home-product-slider-arrow.prev {
    left: 0;
}

.home-product-slider .home-product-slider-arrow.next {
    right: 0;
}

.home-product-slider .home-product-slider-arrow:hover {
    background: #1f3448;
    border-color: #1f3448;
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .home-product-slider {
        padding-top: 1.3rem;
        padding-bottom: 1.5rem;
    }

    .home-product-slider .home-product-slider-subtitle {
        font-size: 0.82rem;
        max-width: 96%;
    }

    .home-product-slider .testimonial-item {
        border-radius: 13px;
        padding: 0.6rem;
    }

    .home-product-slider .testimonial-item h5 {
        font-size: 0.82rem;
    }

    .home-product-slider .home-product-slider-shell {
        padding: 0;
    }

    .home-product-slider .home-product-slider-track {
        grid-auto-columns: 100%;
        gap: 12px;
    }

    .home-product-slider .home-product-slider-arrow {
        display: none;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .home-product-slider .home-product-slider-shell {
        padding: 0 30px;
    }

    .home-product-slider .home-product-slider-track {
        grid-auto-columns: calc((100% - 14px) / 2);
        gap: 14px;
    }
}

/* 33) Search pages modernization */
.search-page-modern .search-product-form {
    margin: 0 auto 1rem;
}

.search-page-modern .search-product-form .search-product-form-row {
    grid-template-columns: 1fr 240px 58px;
}

.search-page-modern .search-product-action .btn {
    background: #1f3348 !important;
    border-color: #1f3348 !important;
    color: #ffffff !important;
}

.search-page-modern .search-product-action .btn i {
    color: #ffffff !important;
}

.search-page-modern .search-product-action .btn:hover {
    background: #13283c !important;
    border-color: #13283c !important;
}

.search-page-modern .search-product-grid {
    row-gap: 1rem;
}

.search-page-modern .badge-results {
    background: #1f3348;
    color: #fff;
    border-radius: 999px;
    padding: 0.36rem 0.62rem;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
}

.search-page-modern .nav-pagination .page-link {
    border-radius: 10px !important;
    margin: 0 0.15rem;
    border-color: #d8e3ee;
    color: #21384d;
}

.search-page-modern .nav-pagination .active .page-link {
    background: #1f3348;
    border-color: #1f3348;
    color: #fff;
}

.search-news-page-modern .search-news-title {
    margin-bottom: 0.85rem;
    color: #233b50 !important;
    font-weight: 600;
}

.search-news-page-modern .search-news-grid {
    row-gap: 1rem;
    margin-top: 0.35rem;
}

.search-news-page-modern .search-news-card {
    border: 1px solid #e3ebf4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.search-news-page-modern .search-news-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.search-news-page-modern .search-news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-news-page-modern .search-news-card-body {
    padding: 0.8rem 0.85rem 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.search-news-page-modern .search-news-card-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    color: #1a3045;
    min-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-news-page-modern .search-news-card-text {
    margin: 0;
    color: #5b7288;
    font-size: 0.84rem;
    line-height: 1.48;
    min-height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-news-page-modern .search-news-card-link {
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1d3348 !important;
}

.search-news-page-modern .search-news-card-link:hover {
    color: #112436 !important;
}

@media (max-width: 991.98px) {
    .search-page-modern .search-product-form .search-product-form-row {
        grid-template-columns: 1fr;
    }

    .search-page-modern .search-product-action .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .search-page-modern .search-product-grid > [class*="col-"] {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .search-news-page-modern .search-news-card {
        border-radius: 12px;
    }
}
