/*** Mercovyn brand theme ***/
:root {
    --bs-primary: #15321A;
    --bs-secondary: #BA923B;
    --bs-dark: #15321A;
    --bs-primary-rgb: 21, 50, 26;
    --bs-secondary-rgb: 186, 146, 59;
    --mercovyn-primary-light: #2a5c34;
    --mercovyn-secondary-light: #d4ad5c;
    --mercovyn-tint: rgba(21, 50, 26, 0.08);
    --mercovyn-tint-strong: rgba(21, 50, 26, 0.12);
}

/*** Motion: visible until WOW loads (faster first paint) ***/
html.motion-off .wow,
.wow {
    visibility: visible;
}

/*** Page skeleton (initial load) ***/
#page-skeleton,
.page-skeleton {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .45s ease-out, visibility 0s linear .45s;
    overflow-y: auto;
}

#page-skeleton.show,
.page-skeleton.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .35s ease-out, visibility 0s linear 0s;
}

.page-skeleton__inner {
    min-height: 100%;
    padding-bottom: 2rem;
}

.page-skeleton__topbar {
    height: 45px;
    width: 100%;
}

.page-skeleton__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.page-skeleton__logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
}

.page-skeleton__nav-links {
    gap: 1.25rem;
    align-items: center;
}

.page-skeleton__nav-links span {
    display: block;
    width: 72px;
    height: 14px;
    border-radius: 999px;
}

.page-skeleton__nav-toggle {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-left: auto;
}

.page-skeleton__hero {
    height: min(42vh, 380px);
    margin: 1.25rem 1.5rem 0;
    border-radius: 12px;
}

.page-skeleton__content {
    margin-top: 2rem;
}

.page-skeleton__line {
    height: 18px;
    border-radius: 8px;
    margin-bottom: 1rem;
    max-width: 100%;
}

.page-skeleton__cards {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-skeleton__card {
    flex: 1 1 200px;
    height: 140px;
    border-radius: 12px;
    max-width: 100%;
}

.skeleton-shimmer {
    background: linear-gradient(
        90deg,
        #ececec 0%,
        #f5f5f5 40%,
        #ececec 80%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.15s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    #page-skeleton,
    #page-skeleton.show,
    .page-skeleton,
    .page-skeleton.show {
        display: none !important;
    }

    .skeleton-shimmer {
        animation: none;
        background: #ececec;
    }
}
/*** Page skeleton End ***/

/*** Language switcher (topbar) ***/
.language-switcher {
    display: inline-flex;
    align-items: center;
}

.language-switcher__list {
    gap: 0.35rem;
    margin-left: 0.25rem;
}

.language-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.language-switcher__btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff !important;
}

.language-switcher__btn.is-active {
    background: #fff;
    border-color: #fff;
    color: var(--bs-primary) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.language-switcher__btn.is-active:hover {
    color: var(--bs-primary) !important;
    background: #f0f5fb;
}

.language-switcher__flag {
    font-size: 1.05rem;
    line-height: 1;
}

.language-switcher__code {
    letter-spacing: 0.04em;
}

/*** Floating contact FAB ***/
.fab-contact {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1040;
    width: 56px;
    height: 56px;
}

.fab-contact__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 30, 55, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
    pointer-events: none;
    z-index: -1;
}

.fab-contact[data-open="true"] .fab-contact__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fab-contact__actions {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    bottom: 50%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.fab-contact__actions li {
    position: absolute;
    left: 0;
    top: 0;
}

.fab-contact__item {
    position: absolute;
    left: -24px;
    top: -24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translate(0, 0) scale(0.35) rotate(-18deg);
    transition:
        opacity 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
        transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
    transition-delay: calc((3 - var(--fab-i, 0)) * 0.04s);
    pointer-events: none;
}

.fab-contact__item--phone { background: linear-gradient(135deg, #15321A, var(--mercovyn-primary-light)); }
.fab-contact__item--email { background: linear-gradient(135deg, #BA923B, var(--mercovyn-secondary-light)); }
.fab-contact__item--whatsapp { background: linear-gradient(135deg, #128c7e, #25d366); }
.fab-contact__item--telegram { background: linear-gradient(135deg, #0088cc, #229ed9); }

.fab-contact[data-open="true"] .fab-contact__actions {
    pointer-events: auto;
}

.fab-contact[data-open="true"] .fab-contact__item {
    opacity: 1;
    transform: translate(var(--fab-tx, 0px), var(--fab-ty, 0px)) scale(1) rotate(0deg);
    pointer-events: auto;
    transition-delay: calc(var(--fab-i, 0) * 0.06s + 0.02s);
}

.fab-contact[data-open="true"] .fab-contact__item:hover {
    color: #fff;
    transform: translate(var(--fab-tx, 0px), var(--fab-ty, 0px)) scale(1.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* Ringing phone: vibration + short wiggle, pause, repeat */
@keyframes fab-phone-ring {
    0%, 48%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
    }
    4% {
        transform: translate3d(-1px, 0, 0) rotate(-8deg);
    }
    8% {
        transform: translate3d(2px, 0, 0) rotate(8deg);
        box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
    }
    12% {
        transform: translate3d(-2px, 1px, 0) rotate(-10deg);
    }
    16% {
        transform: translate3d(2px, -1px, 0) rotate(10deg);
    }
    20% {
        transform: translate3d(-1px, 0, 0) rotate(-6deg);
    }
    24% {
        transform: translate3d(1px, 0, 0) rotate(6deg);
    }
    28% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    34% {
        transform: rotate(-5deg);
    }
    38% {
        transform: rotate(5deg);
    }
    42% {
        transform: rotate(0deg);
    }
}

@keyframes fab-phone-ring-icon {
    0%, 48%, 100% {
        transform: scale(1);
    }
    8%, 16% {
        transform: scale(1.08);
    }
    12% {
        transform: scale(1.12);
    }
}

.fab-contact__toggle {
    width: 56px;
    height: 56px;
    padding: 0;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(145deg, #128c7e, #25d366) !important;
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
    animation: fab-phone-ring 2.4s ease-in-out infinite;
}

.fab-contact:not([data-open="true"]) .fab-contact__toggle .fab-contact__icon--open i {
    display: inline-block;
    animation: fab-phone-ring-icon 2.4s ease-in-out infinite;
}

.fab-contact__toggle:hover {
    color: #fff;
    background: linear-gradient(145deg, #0f7a6e, #20bd5a) !important;
}

.fab-contact[data-open="true"] .fab-contact__toggle {
    animation: none;
    transform: rotate(90deg) scale(1.05);
    background: linear-gradient(145deg, #0d6e63, #1fa855) !important;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
}

.fab-contact__icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.fab-contact__icon--open {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.fab-contact__icon--close {
    opacity: 0;
    transform: scale(0.5) rotate(-90deg);
}

.fab-contact[data-open="true"] .fab-contact__icon--open {
    opacity: 0;
    transform: scale(0.4) rotate(90deg);
}

.fab-contact[data-open="true"] .fab-contact__icon--close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

@media (max-width: 575.98px) {
    .fab-contact {
        right: 16px;
        bottom: max(20px, env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .fab-contact__item,
    .fab-contact__toggle,
    .fab-contact__icon,
    .fab-contact__backdrop {
        transition: none;
    }

    .fab-contact__toggle {
        animation: none;
    }
}
/*** Floating contact FAB end ***/

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

.btn.btn-primary {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
    font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 400;
    transition: 0.5s;
}

.btn.btn.btn-primary:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-secondary);
    border: 1px solid var(--bs-secondary);
}

.btn.btn-secondary {
    background: transparent;
    color: var(--bs-secondary);
    font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 400;
    border: none;
    transition: 0.5s;
}

.btn.btn-secondary:hover {
    color: var(--bs-primary) !important;
}


/*** Section Title Start ***/
.section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    bottom: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: -6px;
    margin-left: -100px;
    border: 1px solid var(--bs-secondary) !important;
}

.section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: -8px;
    margin-left: -50px;
    border: 1px solid var(--bs-primary) !important;
}

.sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--bs-primary);
}

.sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    bottom: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: -8px;
    margin-right: -100px;
    border: 1px solid var(--bs-secondary) !important;
}

.sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: -6px;
    margin-right: -50px;
    border: 1px solid var(--bs-primary) !important;
}


/*** Topbar Start ***/
.fixed-top .container {
    transition: 0.5s;
}

.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--bs-primary) !important;
}

.topbar a,
.topbar a i {
    transition: 0.5s;
}

.topbar a:hover,
.topbar a i:hover {
    color: var(--bs-secondary) !important;
}


@media (max-width: 768px) {
    .topbar {
        display: none;    
    }
}
/*** Topbar End ***/


/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: var(--bs-primary) !important;
    font-size: 17px;
    font-weight: 400;
    outline: none;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--bs-primary) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}

/* Header logo (navbar only — do not use .site-logo in footer) */
.navbar-light .navbar-brand .site-logo {
    display: block;
    width: 150px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    transition: width .35s ease;
}

.sticky-top .navbar-light .navbar-brand .site-logo {
    width: 130px;
}

.footer-top-logo {
    display: block;
    text-align: start;
    margin-bottom: 1.25rem;
    max-width: 300px;
}

.footer-top-logo .site-logo-footer {
    display: block;
    width: 300px;
    height: 300px;
    max-width: 100%;
    object-fit: contain;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-secondary);
}

.navbar .nav-item:hover .dropdown-menu {
    transform: rotateX(0deg);
    visibility: visible;
    background: var(--bs-light) !important;
    transition: .5s;
    opacity: 1;
}

@media (max-width: 991.98px) {
    .sticky-top {
        position: relative;
        background: var(--bs-white);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid var(--bs-primary) !important;
        color: var(--bs-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top .navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--bs-dark) !important;
    }

    .navbar-light .navbar-brand .site-logo {
        width: min(150px, 42vw);
        height: auto;
    }

    .footer-top-logo .site-logo-footer {
        width: min(300px, 70vw);
        height: min(300px, 70vw);
    }
}

@media (min-width: 991.98px) {
    .sticky-top .navbar-light {
        background: var(--bs-light) !important;
    }

    /*** Top and Bottom borders go out ***/
    .navbar-light .navbar-nav .nav-link:after,
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        top: 30px;
        bottom: 30px;
        left: 0px;
        width: 100%;
        height: 2px;
        background: var(--bs-primary);
        opacity: 0;
        transition: all 0.5s;
    }

    .navbar-light .navbar-nav .nav-link:before {
        bottom: auto;
    }

    .navbar-light .navbar-nav .nav-link:after {
        top: auto;
    }

    .navbar-light .navbar-nav .nav-link:hover:before,
    .navbar-light .navbar-nav .nav-link.active:before {
        top: 20px;
        opacity: 1;
    }

    .navbar-light .navbar-nav .nav-link:hover::after,
    .navbar-light .navbar-nav .nav-link.active::after {
        bottom: 20px;
        opacity: 1;
    }
}

#searchModal .modal-content {
    background: rgba(240, 245, 251, 0.5);
}
/*** Navbar End ***/


/*** Home hero — 800px, transparent navbar overlay ***/
.home-hero-shell {
    position: relative;
    min-height: 800px;
    overflow: hidden;
    background: linear-gradient(rgba(21, 50, 26, 0.82), rgba(21, 50, 26, 0.72)),
        url(../assets/images/other/hero-bg.webp) center center / cover no-repeat;
}

.home-hero-shell__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.home-hero-shell--video::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(rgba(21, 50, 26, 0.55), rgba(21, 50, 26, 0.45));
}

.home-hero-shell__body {
    position: relative;
    z-index: 2;
}

.hero-stats-bar {
    background: #fff;
    border-bottom: 1px solid rgba(21, 50, 26, 0.08);
}

.hero-stats-bar__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.hero-stats-bar__item {
    flex: 1 1 160px;
    max-width: 280px;
    text-align: center;
    padding: 0.75rem 1.25rem;
}

.hero-stats-bar__item + .hero-stats-bar__item {
    border-inline-start: 1px solid rgba(21, 50, 26, 0.12);
}

@media (max-width: 767.98px) {
    .hero-stats-bar__item {
        flex: 1 1 45%;
        max-width: none;
    }

    .hero-stats-bar__item:nth-child(odd) {
        border-inline-start: 0;
    }
}

.home-hero-shell .nav-bar--hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: transparent;
}

.home-hero-shell .nav-bar--hero-overlay .navbar {
    background: transparent !important;
    box-shadow: none !important;
}

.home-hero-shell .nav-bar--hero-overlay .navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.home-hero-shell .nav-bar--hero-overlay .navbar-light .navbar-nav .nav-link:hover,
.home-hero-shell .nav-bar--hero-overlay .navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}

.home-hero-shell .nav-bar--hero-overlay .navbar-toggler {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.home-hero-shell .nav-bar--hero-overlay.sticky-top {
    position: fixed;
    top: 0;
    background: #fff;
    box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.08) !important;
}

.home-hero-shell .nav-bar--hero-overlay.sticky-top .navbar {
    background: #fff !important;
}

.home-hero-shell .nav-bar--hero-overlay.sticky-top .navbar-light .navbar-nav .nav-link {
    color: var(--bs-primary) !important;
    text-shadow: none;
}

.home-hero-shell .nav-bar--hero-overlay.sticky-top .navbar-toggler {
    color: var(--bs-primary);
    border-color: rgba(21, 50, 26, 0.25);
}

.home-hero-shell__body {
    min-height: 800px;
    display: flex;
    align-items: center;
    padding-top: 7.5rem;
    padding-bottom: 2.5rem;
}

@media (max-width: 991.98px) {
    .home-hero-shell__body {
        padding-top: 9.5rem;
        min-height: 800px;
    }
}

.home-hero-shell .navbar-mobile-lang {
    position: relative;
    z-index: 2;
}

.home-hero-shell .btn-outline-primary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
}

.home-hero-shell .btn-outline-primary:hover {
    color: var(--bs-primary);
    background: #fff;
    border-color: #fff;
}

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    background: linear-gradient(rgba(21, 50, 26, 0.88), rgba(21, 50, 26, 0.78)), url(../assets/images/other/hero-bg.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: initial;
    background-size: cover;
    padding: 100px 0 60px 0;
}
/*** Single Page Hero Header End ***/


/*** Carousel Hero Header Start ***/
.carousel-header .carousel-control-prev .carousel-control-prev-icon,
.carousel-header .carousel-control-next .carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    margin-left: -60px;
    border-radius: 50%;
    background-size: 60% 60%;
    transition: 0.5s;
}

.carousel-header .carousel-control-next .carousel-control-next-icon {
    margin-left: 0;
    margin-right: -60px;
}

.carousel-header .carousel .carousel-indicators {
    padding-bottom: 0;
    transition: 0.5s;
}


.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li,
.carousel-header .carousel .carousel-indicators li {
    width: 8px;
    height: 8px;
    border: 8px solid var(--bs-primary);
    border-radius: 50%;
    margin-right: 30px;
    transition: 0.5s;
}

.carousel-header .carousel .carousel-indicators li.active {
    width: 8px;
    height: 8px;
    border: 8px solid var(--bs-secondary);
}

.carousel-header .carousel-inner .carousel-item {
    position: relative;
    min-height: 100vh 
}

.carousel-header .carousel-inner .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-header .carousel-inner .carousel-item .carousel-caption  {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 0.6));
    background-size: cover;
}


@media (max-width: 768px) {
    .carousel-header {
        height: 700px !important;
    }

    .carousel-header .carousel-control-prev .carousel-control-prev-icon,
    .carousel-header .carousel-control-next .carousel-control-next-icon {
        margin-top: 500px;
    }

    .carousel-header .carousel-control-prev .carousel-control-prev-icon {
        margin-left: 0px;
    }

    .carousel-header .carousel-control-next .carousel-control-next-icon {
        margin-right: 0px;
    }

    .carousel-header .carousel .carousel-indicators {
        padding: 0;
    }
}
/*** Carousel Hero Header End ***/


/*** Counter Facts Start ***/
.counter-facts {
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0.8)), url(../img/breadcrumb.png);
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
}

.counter-facts .counter {
    position: relative;
    text-align: center;
    width: 200px;
    min-height: 215px;
    padding: 10px 15px;
    margin: 0 auto;
    border-radius: 100px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.2);
    background: var(--bs-white);
}

.counter-facts .counter:before {
    content: "";
    position: absolute;
    height: 105px;
    width: 100%;
    left: 0;
    top: 0;
    border-radius: 10px 10px 0 0;
    background-color: var(--bs-primary);
    
}
.counter-facts .counter .counter-icon {
    position: relative;
    width: 120px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 10px 10px 0 0;
    transform: translateY(-20px);
    font-size: 50px;
    line-height: 90px;
    color: var(--bs-secondary);
    background: rgba(1, 143, 252, 0.5);
    clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.counter-facts .counter .counter-icon:before {
    content: "";
    position: absolute;
    width: 120px;
    height: 90px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px 10px 0 0;
    background: rgba(21, 50, 26, 0.5);
    z-index: -1;
    clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.counter-facts .counter:hover .counter-icon i {
    transform: rotate(360deg);
    transition: all 0.3s ease;
}
.counter-facts .counter h3 {
    color: var(--bs-primary);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}
.counter-facts .counter .counter-value {
    font-size: 30px;
    font-weight: 700;
    display: block;
    color: var(--bs-secondary);
}

@media screen and (max-width: 1200px) {
    .counter-facts .counter { margin-bottom: 40px; 
    }
}
/*** Counter Facts End ***/


/*** service Start ***/
.service .service-item {
    position: relative;
    overflow: hidden;
}

.service .service-item .service-inner .service-title {
    position: relative;
    margin-top: -30px;
    text-align: center;
    transition: 0.5s;
}

.service .service-item .service-inner .service-title .service-content {
    position: absolute;
    bottom: -100%; 
    left: 0;
    margin-left: 30px;
    margin-right: 30px;
    text-align: center;
    border-radius: 10px;
    background: var(--bs-primary);
    opacity: 0;
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-title .service-content {
    bottom: 0;
    opacity: 1;
}

.service .service-item .service-inner .service-title .service-content a h4 {
    border-bottom: 1px solid rgba(256, 256, 256, .1);
}

.service .service-item .service-inner .service-title .service-title-name {
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-title .service-title-name {
    opacity: 0;
}

.service .service-item .service-inner .service-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.service .service-item .service-inner .service-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .5);
    transition: 0.5s;
    opacity: 0;
}

.service .service-item:hover .service-inner .service-img::after {
    height: 100%;
    opacity: 1;
}

.service .service-item .service-inner .service-img img {
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-img img {
    transform: scale(1.3);
}
/*** Service End ***/


/*** Features Start ***/
.features .feature-item {
    position: relative;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.features .feature-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(21, 50, 26, 0.1);
    z-index: -1;
    transition: 0.5s;
}

.features .feature-item:hover::after {
    height: 100%;
}

.features .feature-item .feature-icon {
    width: 120px; 
    height: 120px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-light);
    transition: 0.5s;
}

.features .feature-item:hover .feature-icon {
    border-radius: 50%;
    background: var(--bs-white) !important;
}

.features .feature-item .feature-icon i {
    transition: 0.5s;
}

.features .feature-item:hover .feature-icon i {
    color: var(--bs-secondary) !important;
    transform: rotate(360deg);
    transition: all 0.5s ease;
}
/*** Features End ***/


/*** Country Start ***/
.country .country-item {
    position: relative;
}

.country .country-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    background: rgba(21, 50, 26, 0.7);
    border-radius: 10px;
    transition: 0.5s;
    z-index: 1;
}

.country .country-item:hover::after {
    height: 100%;
}

.country .country-item .country-flag {
    position: absolute;
    width: 90px; 
    height: 90px; 
    border-radius: 50%;
    top: -45px; 
    left: 50%; 
    transform: translateX(-50%);
    transition: 0.5s;
    z-index: 2;
}

.country .country-item .country-flag img {
    border: 5px solid var(--bs-white);
    transition: 0.5s;
}

.country .country-item:hover .country-flag img {
    border: 5px solid var(--bs-white);
    transform: rotate(360deg);
    transition: all 0.5s ease;
}

.country .country-item .country-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    opacity: 0;
    z-index: 3;
}

.country .country-item:hover .country-name {
    opacity: 1;
}

.country .country-item img {
    transition: 0.5s;
}

.country .country-item:hover img {
    transform: scale(1.2);
}

.country .country-item .country-name a.fs-4 {
    transition: 0.5s;
}

.country .country-item .country-name a.fs-4:hover {
    color: var(--bs-secondary) !important;
}
/*** Country End ***/


/*** testimonial Start ***/
.testimonial .owl-carousel.testimonial-carousel {
    position: relative;
}

.testimonial .owl-carousel.testimonial-carousel .testimonial-item .testimonial-content {
    position: relative;
    border-radius: 10px;
    background: var(--bs-light);
}

.testimonial .owl-carousel.testimonial-carousel .testimonial-item .testimonial-content::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 45px;
    bottom: -20px;
    left: 30px;
    transform: rotate(45deg);
    background: var(--bs-light);
    z-index: -1;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    font-size: 40px;
    color: var(--bs-primary);
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev {
    margin-right: 40px;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next {
    transition: 0.5s;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-secondary);
}
/*** testimonial end ***/


/*** training Start ***/
.training .training-item .training-inner {
    position: relative;
}

.training .training-item .training-inner .training-title-name {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    padding: 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    display: flex; 
    flex-direction: column;
    justify-content: end;
    text-align: center;
    transition: 0.5s;
}

.training .training-item {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.training .training-item:hover .training-inner .training-title-name {
    background: rgba(21, 50, 26, 0.5);
}

.training .training-item:hover .training-inner .training-title-name a {
    opacity: 0;
}

.training .training-item .training-inner img {
    transition: 0.5s;
}

.training .training-item:hover .training-inner img {
    transform: scale(1.3);
}

.training .training-item .training-content {
    position: absolute;
    width: 100%;
    bottom: -100%;
    left: 0;
    transition: 0.5s;
}

.training .training-item:hover .training-content {
    bottom: 0;
}  
/*** training End ***/


/*** Contact Start ***/
.contact .office .office-item {
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.2);
    background: var(--bs-light);
    transition: 0.5s;
}

.contact .office .office-item:hover {
    box-shadow: 20px 20px 20px rgba(21, 50, 26, 0.3);
}

.contact .office .office-item .office-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.contact .office .office-item .office-img img {
    transition: 0.5s;
}

.contact .office .office-item:hover .office-img img {
    transform: scale(1.3);
}

.contact .office .office-item .office-content a.text-secondary,
.contact .office .office-item .office-content a.text-muted {
    transition: 0.5s;
}

.contact .office .office-item .office-content a.text-muted:hover {
    color: var(--bs-secondary) !important;
}

.contact .office .office-item .office-content a.text-secondary:hover {
    color: var(--bs-primary) !important;
}
/*** Contact End ***/

/*** Product cards ***/
.products-section,
.products-archive {
    position: relative;
    background: linear-gradient(180deg, #f4f6f0 0%, #ffffff 55%);
    overflow: hidden;
}

/* Decorative product art — transparent PNG/WebP, no extra black fill */
.products-section::before,
.products-archive::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(240px, 32vw, 380px);
    background-image: url(../assets/images/other/products-bg.webp);
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: right center;
    pointer-events: none;
    z-index: 0;
}

.products-section > .container,
.products-archive > .container {
    position: relative;
    z-index: 1;
}

.custom-colors-section {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f4f6f0 55%, #f8f9fa 100%);
    overflow: hidden;
}

.custom-colors-section__hero {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.custom-colors-section__figure {
    margin: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 12px 40px rgba(21, 50, 26, 0.1);
    border: 1px solid rgba(21, 50, 26, 0.06);
}

.custom-colors-section__img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
}

.custom-colors-section__body {
    position: relative;
    z-index: 1;
    text-align: center;
}

.custom-colors-section__swatch {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--swatch, #ccc);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85), 0 2px 8px rgba(0, 0, 0, 0.12);
}

.custom-colors-section__palette-more {
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (min-width: 992px) {
    .custom-colors-section__hero {
        padding-left: 100px;
        padding-right: 100px;
    }
}

@media (max-width: 991.98px) {
    .custom-colors-section .btn {
        display: block;
        width: 100%;
        max-width: 20rem;
        margin-left: auto;
        margin-right: auto;
    }
}

.products-section .section-title,
.products-archive .section-title {
    margin-bottom: 2.5rem !important;
}

@media (max-width: 991.98px) {
    .products-section::before,
    .products-archive::before {
        height: clamp(180px, 42vw, 260px);
        background-size: auto 100%;
        background-position: 85% center;
    }
}

.product-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(21, 50, 26, 0.08);
    border: 1px solid rgba(21, 50, 26, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(186, 146, 59, 0.12);
}

.product-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bs-light);
}

.product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__media img {
    transform: scale(1.06);
}

.product-card__media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bs-primary), var(--mercovyn-primary-light));
    color: rgba(255, 255, 255, 0.85);
    font-size: 2.5rem;
}

.product-card__media-placeholder--lg {
    min-height: 360px;
}

.product-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--bs-secondary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    box-shadow: 0 4px 12px rgba(186, 146, 59, 0.35);
}

.product-card__body {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.product-card__title a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.product-card__title a:hover {
    color: var(--bs-secondary);
}

.product-card__summary {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.product-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-card__actions .btn-outline-primary {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.product-card__actions .btn-outline-primary:hover {
    background: var(--bs-primary);
    color: #fff;
}

.product-single__inquiry {
    background: linear-gradient(135deg, rgba(21, 50, 26, 0.06), rgba(186, 146, 59, 0.06));
    border: 1px solid rgba(21, 50, 26, 0.1);
}

/*** Product cards end ***/

/*** Footer Start ***/
.footer {
    background: var(--bs-primary);
}
.footer .footer-item a {
    line-height: 30px;
    color: var(--bs-white);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 30px;
}

.footer .footer-item a:hover {
    letter-spacing: 2px;
    color: var(--bs-secondary);
}

/*** Footer End ***/


/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-secondary) !important;
}
/*** copyright end ***/

/*** Responsive — global ***/
.language-switcher--navbar .language-switcher__btn {
    border-color: rgba(21, 50, 26, 0.22);
    background: rgba(21, 50, 26, 0.06);
    color: var(--bs-primary) !important;
}

.language-switcher--navbar .language-switcher__btn.is-active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff !important;
}

.language-switcher--navbar .language-switcher__btn.is-active:hover {
    color: #fff !important;
}

.language-switcher--mobile-header .language-switcher__btn {
    padding: 0.2rem 0.45rem;
    min-width: 2.35rem;
    border-color: rgba(21, 50, 26, 0.18);
    background: rgba(21, 50, 26, 0.05);
}

.language-switcher--mobile-header .language-switcher__code {
    font-size: 0.7rem;
}

.navbar-mobile-lang {
    border-color: rgba(21, 50, 26, 0.1) !important;
}

@media (max-width: 991.98px) {
    .nav-bar .navbar {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .navbar-collapse {
        max-height: calc(100vh - 5.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-bottom: 0.75rem;
    }

    .navbar-mobile-tools {
        border-color: rgba(21, 50, 26, 0.12) !important;
    }

    .bg-breadcrumb {
        padding: 3.5rem 0 2.25rem;
    }

    .bg-breadcrumb .display-3 {
        font-size: clamp(1.65rem, 6vw, 2.35rem);
        line-height: 1.2;
    }

    .hero-section .display-4 {
        font-size: clamp(1.6rem, 5.5vw, 2.25rem);
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-stats .col-6 > div {
        padding: 0.85rem !important;
    }

    .hero-stats h2 {
        font-size: 1.5rem;
    }

    .section-title .display-5 {
        font-size: clamp(1.45rem, 5vw, 2rem);
    }

    .section-title .sub-style::before,
    .section-title .sub-style::after,
    .sub-title::before,
    .sub-title::after {
        display: none;
    }

    .section-title {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .product-card__actions {
        flex-direction: column;
    }

    .product-card__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .product-card__body {
        padding: 1.15rem 1.15rem 1.35rem;
    }

    .product-single__content,
    .product-single__inquiry {
        margin-top: 1rem;
    }

    .container-fluid.bg-primary.px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .footer .row.g-5 > [class*="col-"] {
        text-align: center;
    }

    .footer-top-logo {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .footer .footer-item a,
    .footer .d-flex.flex-column {
        align-items: center;
    }

    .newsletter .input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter .input-group .form-control,
    .newsletter .input-group .btn {
        width: 100%;
        border-radius: 50rem !important;
    }

    .copyright .col-md-6 {
        margin-bottom: 0.35rem;
    }
}

@media (max-width: 575.98px) {
    html {
        font-size: 15px;
    }

    .display-6 {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .navbar-light .navbar-brand .site-logo {
        width: min(130px, 40vw);
    }

    .footer-top-logo .site-logo-footer {
        width: min(220px, 62vw);
        height: auto;
        aspect-ratio: 1;
    }

    .products-section::before,
    .products-archive::before {
        height: clamp(140px, 38vw, 200px);
        background-position: 92% center;
        opacity: 0.85;
    }

    .fab-contact__toggle {
        width: 52px;
        height: 52px;
    }

    .product-card:hover {
        transform: none;
    }

    .btn-lg.rounded-pill {
        font-size: 1rem;
        padding: 0.65rem 1.25rem !important;
    }

    .modal-body .input-group {
        width: 100% !important;
    }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        align-items: center;
    }
}

/*** RTL (Arabic) ***/
html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .navbar-nav {
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .section-title.text-start {
    text-align: right !important;
}

html[dir="rtl"] .language-switcher__list {
    flex-direction: row-reverse;
}

html[dir="rtl"] .fab-contact {
    left: 1rem;
    right: auto;
}

html[dir="rtl"] .btn .fa-arrow-right,
html[dir="rtl"] .btn .fa-arrow-left,
html[dir="rtl"] .btn .ms-2,
html[dir="rtl"] .btn .me-2 {
    transform: scaleX(-1);
}

html[dir="rtl"] .video-carousel {
    direction: ltr;
}

/*** Blog archive & single ***/
.blog-hero {
    position: relative;
}

.blog-hero--single .breadcrumb {
    font-size: 0.9rem;
}

.blog-archive {
    position: relative;
    background: linear-gradient(180deg, #f8faf8 0%, #fff 35%, #fff 100%);
}

.blog-archive::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(48vw, 520px);
    height: clamp(160px, 28vw, 280px);
    background: radial-gradient(ellipse at 80% 0%, rgba(186, 146, 59, 0.12), transparent 70%);
    pointer-events: none;
}

.blog-empty__icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bs-primary), var(--mercovyn-primary-light, #1e4d28));
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.75rem;
    box-shadow: 0 12px 32px rgba(21, 50, 26, 0.15);
}

.blog-card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(21, 50, 26, 0.08);
    border: 1px solid rgba(21, 50, 26, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(186, 146, 59, 0.14);
}

.blog-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bs-light);
}

.blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__media img {
    transform: scale(1.05);
}

.blog-card__media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bs-primary), #1e4d28);
    color: rgba(255, 255, 255, 0.85);
    font-size: 2.25rem;
}

.blog-card__cat {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
    background: rgba(21, 50, 26, 0.88);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    backdrop-filter: blur(4px);
}

html[dir="rtl"] .blog-card__cat {
    left: auto;
    right: 1rem;
}

.blog-card__body {
    padding: 1.35rem 1.5rem 1.65rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bs-secondary);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.blog-card__title {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.blog-card__title a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card__title a:hover {
    color: var(--bs-secondary);
}

.blog-card__excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.15rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__link {
    align-self: flex-start;
    margin-top: auto;
}

.blog-card--compact .blog-card__body {
    padding: 1rem 1.15rem 1.25rem;
}

.blog-card--compact .blog-card__media {
    aspect-ratio: 16 / 9;
}

.blog-card--compact .blog-card__title {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
}

.blog-single-page {
    background: linear-gradient(180deg, #f8faf8 0%, #fff 120px);
}

.blog-article {
    background: #fff;
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    box-shadow: 0 16px 48px rgba(21, 50, 26, 0.08);
    border: 1px solid rgba(21, 50, 26, 0.06);
}

.blog-article__meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.blog-article__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.8rem;
    border-radius: 2rem;
    background: rgba(186, 146, 59, 0.15);
    color: var(--bs-primary);
}

.blog-article__tag--outline {
    background: transparent;
    border: 1px solid rgba(21, 50, 26, 0.15);
}

.blog-article__figure {
    margin: 0 0 1.75rem;
    border-radius: 1rem;
    overflow: hidden;
}

.blog-article__cover {
    width: 100%;
    height: auto;
    display: block;
}

.blog-article__lead {
    font-size: 1.15rem;
    line-height: 1.65;
    color: #495057;
    border-inline-start: 4px solid var(--bs-secondary);
    padding-inline-start: 1.25rem;
    margin-bottom: 2rem;
}

.blog-body {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #343a40;
}

.blog-body h2,
.blog-body h3,
.blog-body h4 {
    color: var(--bs-primary);
    margin-top: 2rem;
    margin-bottom: 0.85rem;
}

.blog-body p {
    margin-bottom: 1.1rem;
}

.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.25rem 0;
}

.blog-body ul,
.blog-body ol {
    margin-bottom: 1.25rem;
    padding-inline-start: 1.35rem;
}

.blog-body blockquote {
    border-inline-start: 4px solid var(--bs-secondary);
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    background: rgba(21, 50, 26, 0.04);
    border-radius: 0 0.5rem 0.5rem 0;
}

.blog-body a {
    color: var(--bs-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-article__footer {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(21, 50, 26, 0.1);
}

.blog-article__footer-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .blog-article__footer-grid {
        grid-template-columns: 1fr auto;
        align-items: start;
    }
}

.blog-article__footer-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #868e96;
    margin-bottom: 0.5rem;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(21, 50, 26, 0.12);
    color: var(--bs-primary);
    background: #fff;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.blog-share-btn:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.blog-related__title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    color: var(--bs-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(186, 146, 59, 0.35);
}

/*** Home gallery ***/
.home-gallery-thumb {
    display: block;
    background: #fff;
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-gallery-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

.home-gallery-thumb__img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.home-gallery-section .section-title {
    margin-bottom: 1.5rem !important;
}

/*** Responsive end ***/