/* --------------------------------------------------------------------------
   Brand primary (Mercy Pharm)
   -------------------------------------------------------------------------- */
:root {
    --mp-primary: #d40600;
    --mp-primary-hover: #b30500;
    --mp-primary-rgb: 212, 6, 0;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    border-color: var(--mp-primary-hover) !important;
    background-color: var(--mp-primary-hover) !important;
}

/* --------------------------------------------------------------------------
   Categories banner grid (demo14 layout — demo1 / rtl do not include these)
   -------------------------------------------------------------------------- */

.row.grid.banner-grid {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 31rem);
    margin: -1rem;
    flex-wrap: unset;
}

.row.grid.banner-grid > * {
    max-width: none;
    flex: none;
    width: auto;
    padding: 1rem;
}

.row.grid.banner-grid .grid-space {
    display: none !important;
}

.banner-grid .banner,
.banner-grid .banner figure,
.banner-grid .banner-media,
.banner-grid .banner img {
    height: 100%;
}

.banner-grid .banner img {
    object-fit: cover;
    width: 100%;
}

/* Full-banner click + hover animation */
.banner-grid .banner.banner-clickable {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.banner-grid .banner.banner-clickable:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

.banner-grid .banner.banner-clickable::before {
    content: none;
}

.banner-grid--readable .banner.overlay-dark figure::after,
.banner-grid--readable .banner.overlay-light figure::after {
    content: none !important;
    display: none !important;
}

.banner-grid--readable .banner-media {
    position: relative;
    overflow: hidden;
}

.banner-grid--readable .banner-grid__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.22) 45%,
        rgba(0, 0, 0, 0.55) 100%
    );
    transition: background-color 0.35s ease;
}

[dir="ltr"] .banner-grid--readable .grid-item1 .banner-grid__overlay,
[dir="ltr"] .banner-grid--readable .grid-item3 .banner-grid__overlay,
[dir="ltr"] .banner-grid--readable .grid-item4 .banner-grid__overlay {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.15) 45%, transparent 75%);
}

[dir="rtl"] .banner-grid--readable .grid-item1 .banner-grid__overlay,
[dir="rtl"] .banner-grid--readable .grid-item3 .banner-grid__overlay,
[dir="rtl"] .banner-grid--readable .grid-item4 .banner-grid__overlay {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(270deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.15) 45%, transparent 75%);
}

.banner-grid--readable .grid-item2 .banner-grid__overlay {
    background-color: rgba(0, 0, 0, 0.34);
    background-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.38) 50%,
        rgba(0, 0, 0, 0.58) 100%
    );
}

.banner-grid--readable .banner.banner-clickable:hover .banner-grid__overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

.banner-grid--readable .banner.banner-clickable:hover .banner-grid__overlay {
    background-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.12) 0%,
        rgba(0, 0, 0, 0.3) 45%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

[dir="ltr"] .banner-grid--readable .grid-item1.banner-clickable:hover .banner-grid__overlay,
[dir="ltr"] .banner-grid--readable .grid-item3.banner-clickable:hover .banner-grid__overlay,
[dir="ltr"] .banner-grid--readable .grid-item4.banner-clickable:hover .banner-grid__overlay {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.65) 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 48%, transparent 78%);
}

[dir="rtl"] .banner-grid--readable .grid-item1.banner-clickable:hover .banner-grid__overlay,
[dir="rtl"] .banner-grid--readable .grid-item3.banner-clickable:hover .banner-grid__overlay,
[dir="rtl"] .banner-grid--readable .grid-item4.banner-clickable:hover .banner-grid__overlay {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.65) 100%),
        linear-gradient(270deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 48%, transparent 78%);
}

.banner-grid--readable .grid-item2.banner-clickable:hover .banner-grid__overlay {
    background-color: rgba(0, 0, 0, 0.44);
    background-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.18) 0%,
        rgba(0, 0, 0, 0.45) 55%,
        rgba(0, 0, 0, 0.68) 100%
    );
}

.banner-grid--readable .banner-content .banner-title,
.banner-grid--readable .banner-content .banner-subtitle,
.banner-grid--readable .banner-content .btn-white {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.banner-grid .banner.banner-clickable .banner-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.banner-grid .banner.banner-clickable .banner-stretched-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.banner-grid .banner.banner-clickable .banner-media {
    position: relative;
    z-index: 0;
}

.banner-grid .banner.banner-clickable .banner-media img {
    transition: transform 0.55s ease;
}

.banner-grid .banner.banner-clickable:hover .banner-media img {
    transform: scale(1.07);
}

.banner-grid .banner.banner-clickable .banner-content {
    z-index: 3;
    pointer-events: none;
    transition: transform 0.35s ease;
}

.banner-grid .banner.banner-clickable:hover .banner-content {
    transform: translateY(-6px);
}

.banner-grid .banner.banner-clickable .banner-content .btn {
    transition: opacity 0.35s ease;
}

.banner-grid .banner.banner-clickable .btn-icon-right i {
    display: inline-block;
    transition: transform 0.35s ease;
}

.banner-grid .banner.banner-clickable:hover .btn-icon-right i {
    transform: translateX(0.4rem);
}

[dir="rtl"] .banner-grid .banner.banner-clickable:hover .btn-icon-right i {
    transform: translateX(-0.4rem);
}

.banner-grid .height-x1 {
    height: 31rem;
    min-height: 31rem;
}

.banner-grid .height-x2 {
    height: 62rem;
    min-height: 62rem;
}

.banner-grid .grid-item1 {
    grid-column: 1 / span 8;
    grid-row: 1;
}

.banner-grid .grid-item3 {
    grid-column: 9 / span 4;
    grid-row: 1 / span 2;
}

.banner-grid .grid-item4 {
    grid-column: 1 / span 4;
    grid-row: 2;
}

.banner-grid .grid-item2 {
    grid-column: 5 / span 4;
    grid-row: 2;
}

/* Banner content typography & positioning (from demo14) */

.banner-grid .grid-item1 .banner-content {
    inset-inline-start: 6.8%;
    padding: 0.2rem 0 0;
    background: transparent;
}

.banner-grid .grid-item1 .banner-subtitle {
    color: rgba(238, 238, 238, 0.6);
    font-size: 1.8em;
    font-weight: 500;
    margin-bottom: 0.6rem;
}

.banner-grid .grid-item1 .banner-title {
    font-size: 3.4em;
    margin-bottom: 0.4rem;
}

.banner-grid .grid-item1 .banner-price-info {
    font-size: 2.6em;
    margin-bottom: 3.1rem;
}

.banner-grid .grid-item1 i {
    margin-inline-start: 0.3rem;
    font-size: 1.3em;
    vertical-align: -0.15em;
}

.banner-grid .grid-item2 .banner-content {
    width: 100%;
    padding: 0 2rem;
    background: transparent;
}

.banner-grid .grid-item2 .banner-subtitle {
    font-size: 1.8em;
    margin-bottom: 0.9rem;
}

.banner-grid .grid-item2 .banner-title {
    font-size: 4.5em;
}

.banner-grid .grid-item2 p {
    font-size: 1.6em;
    color: #ccc;
    margin-bottom: 2.7rem;
}

.banner-grid .grid-item2 .btn {
    padding: 1.3rem 2.7rem;
}

.banner-grid .grid-item3 .banner-content {
    inset-inline-start: 8.7%;
    bottom: 5.2%;
    background: transparent;
}

.banner-grid .grid-item3 .banner-subtitle {
    font-size: 1.8em;
    margin-bottom: 0.3rem;
}

.banner-grid .grid-item3 .banner-title {
    font-size: 3.4em;
}

.banner-grid .grid-item3 .banner-price-info {
    font-size: 2.6em;
    margin-bottom: 3.1rem;
}

.banner-grid .grid-item3 i {
    margin-inline-start: 0.3rem;
    font-size: 1.8rem;
}

.banner-grid .grid-item4 .banner-content {
    inset-inline-start: 8.8%;
    top: 11.7%;
    background: transparent;
}

.banner-grid .grid-item4 .banner-subtitle {
    font-size: 1.6em;
    margin-bottom: 0.1rem;
}

.banner-grid .grid-item4 .banner-title {
    font-size: 2.6em;
    margin-bottom: 1.9rem;
}

.banner-grid .grid-item4 i {
    margin-inline-start: 0.3rem;
    font-size: 1.8rem;
}

/* Tablet */

@media (max-width: 991px) and (min-width: 768px) {
    .row.grid.banner-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 25rem);
    }

    .banner-grid .grid-item1 {
        grid-column: 1 / span 4;
        grid-row: 1;
    }

    .banner-grid .grid-item3 {
        grid-column: 5 / span 2;
        grid-row: 1 / span 2;
    }

    .banner-grid .grid-item4 {
        grid-column: 1 / span 2;
        grid-row: 2;
    }

    .banner-grid .grid-item2 {
        grid-column: 3 / span 2;
        grid-row: 2;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .row.grid.banner-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .banner-grid .grid-item1,
    .banner-grid .grid-item2,
    .banner-grid .grid-item3,
    .banner-grid .grid-item4 {
        grid-column: 1;
        grid-row: auto;
    }

    .banner-grid .height-x1,
    .banner-grid .height-x2 {
        height: 25rem;
        min-height: 25rem;
    }

    .banner-grid .grid-item3 .banner-content {
        bottom: 10%;
    }
}

@media (max-width: 479px) {
    .banner-grid .banner {
        font-size: 0.8rem;
    }
}

/* --------------------------------------------------------------------------
   Vendor cards slider (demo7 — demo1 / rtl do not include these)
   -------------------------------------------------------------------------- */

.vendor-wrapper {
    margin-top: 2.5rem;
    margin-bottom: 4.9rem;
}

.shadow-swiper {
    margin: -20px;
    padding: 20px;
}

.vendor-wrapper .swiper-slide {
    height: auto;
}

.vendor-widget {
    margin-bottom: 2rem;
}

.vendor-widget .vendor-name {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 0.5rem;
    overflow: hidden;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    text-transform: capitalize;
    vertical-align: middle;
    white-space: nowrap;
}

.vendor-widget .vendor-name a {
    color: inherit;
}

.vendor-widget .vendor-name:hover {
    color: #ed711b;
}

.vendor-banner {
    min-height: 16.5rem;
}

.vendor-banner a {
    display: block;
}

.vendor-banner a,
.vendor-banner img {
    height: 250px;
    min-height: inherit;
    width: 100%;
}

.vendor-banner img {
    display: block;
    object-fit: cover;
}

.vendor-details {
    display: flex;
    align-items: center;
    padding: 1.8rem 0;
}

.visit-vendor-btn {
    display: block;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #ed711b;
}

.visit-vendor-btn:hover {
    color: #ed711b;
}

.vendor-products {
    margin-inline: -2.5px;
}

.vendor-products > * {
    padding-inline: 2.5px;
}

.vendor-products .product-media {
    height: 100%;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background-color: #f4f4f4;
    transition: border-color 0.3s;
}

.vendor-products .product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-widget-banner {
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.07);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.vendor-widget-banner.border-no {
    border: none !important;
}

.vendor-widget-banner .product-media {
    border: none;
}

.vendor-widget-banner .vendor-details {
    display: block;
    margin-top: -5.5rem;
    padding: 0 2rem 1.8rem;
    text-align: center;
}

.vendor-widget-banner .vendor-logo {
    position: relative;
    flex: none;
    max-width: 9rem;
    margin: 0 auto 1.8rem;
    border-radius: 50%;
    background-color: #ed711b;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.vendor-widget-banner .vendor-logo img {
    border-radius: 50%;
    transition: transform 0.3s;
    width: 90px;
    height: 90px;
}

.vendor-widget-banner .vendor-name {
    margin-bottom: 1.1rem;
    font-size: 1.8rem;
    letter-spacing: 0;
    text-transform: capitalize;
}

.vendor-widget-banner .ratings-container {
    justify-content: center;
    margin-bottom: 0.7rem;
}

.vendor-widget-banner .ratings-container .ratings-full {
    margin: 0;
    margin-inline-end: 0.5rem;
    margin-bottom: 0.2rem;
}

.vendor-widget-banner .rating-reviews {
    font-size: 1.3rem;
}

.vendor-widget-banner .vendor-product-count {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 1.4rem;
}

.vendor-widget-banner:hover {
    border-color: transparent;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.08);
}

.vendor-widget-banner:hover .vendor-logo img {
    transform: translateY(-1rem);
}

.vendor-products.row.cols-3 {
    display: flex;
    flex-wrap: wrap;
    margin-inline: -2.5px;
}

.vendor-products.row.cols-3 > .vendor-product {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding-inline: 2.5px;
}

@media (max-width: 575px) {
    .shadow-swiper {
        margin: -15px;
        padding: 15px;
    }
}

/* --------------------------------------------------------------------------
   Products grid section (demo5 — demo1 / rtl do not include these)
   -------------------------------------------------------------------------- */

.grey-section {
    background-color: #f8f8f8;
}

.grey-section .title-link-wrapper .title {
    padding: 0.5rem 0 0.8rem;
}

.grey-section .row.grid.grid-type {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    margin: -1rem;
    flex-wrap: unset;
}

.grey-section .row.grid.grid-type > * {
    max-width: none;
    flex: none;
    width: auto;
}

.grey-section .grid.grid-type .grid-item {
    padding: 1rem;
}

.grey-section .grid-type .product-single,
.grey-section .grid-type .product-widget {
    height: 100%;
    background-color: #fff;
}

.grey-section .grid-type .product-single {
    padding: 1rem;
}

.grey-section .grid-type .grid-item-single {
    grid-column: span 2;
    grid-row: span 2;
}

.grey-section .grid-type .grid-item-widget {
    grid-column: span 1;
    grid-row: span 1;
}

.grey-section .grid-type .product-widget {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.grey-section .grid-type .product-widget .product-media {
    flex: 0 0 14.8rem;
    max-width: 14.8rem;
    margin: 0;
    margin-inline-end: 1rem;
    padding: 0;
    background-color: #f4f4f4;
}

.grey-section .grid-type .product-widget .product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grey-section .grid-type .product-widget .product-details {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.grey-section .grid-type .product-widget .product-name {
    margin-bottom: 0.6rem;
    color: #333;
}

.grey-section .grid-type .product-widget .ratings-container {
    margin-bottom: 0.7rem;
}

.grey-section .grid-type .product-widget .product-price {
    font-size: 1.6rem;
}

.grey-section .grid-type .product-single .product-image {
    background-color: #f4f4f4;
}

.grey-section .grid-type .product-single .product-image img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.grey-section .grid-item-single .product-gallery,
.grey-section .grid-item-single .product-image,
.grey-section .grid-item-single img {
    min-height: inherit;
}

.grey-section .grid-item-single .product-title {
    font-size: 1.8rem;
}

.grey-section .grid-item-single .product-divider {
    margin: 1.2rem 0 2rem;
}

.grey-section .grid-item-single .product-price {
    font-size: 2.4rem;
}

.grey-section .grid-item-single .product-form label {
    flex: 0 0 3.8rem;
    max-width: 3.8rem;
    font-size: 1.3rem;
}

.grey-section .grid-item-single .product-size-swatch .size {
    color: #999;
}

.grey-section .grid-item-single .product-size-swatch .size:not(:last-child) {
    margin-inline-end: 0.5rem;
}

.grey-section .grid-item-single .product-form:not(.product-variation-form) {
    border-top: 1px solid #eee;
}

.grey-section .grid-item-single .product-qty-form {
    flex: 0 0 13.2rem;
    max-width: 13.2rem;
}

.grey-section .grid-item-single .product-single .btn-cart {
    flex: 1;
    min-width: 14rem;
}

@media (min-width: 768px) {
    .grey-section .grid-type .col-md-6:first-child {
        flex: 0 0 49.5%;
        max-width: 49.5%;
        min-height: 35rem;
    }

    .grey-section .grid-type .col-md-6:last-child {
        flex: 0 0 50.5%;
        max-width: 50.5%;
    }

    .grey-section .pr-md-4 {
        padding-inline-end: 2rem !important;
    }

    .grey-section .grid-item-single .product-details {
        max-height: 35rem;
        margin: 1rem 0;
        overflow: auto;
    }
}

@media (max-width: 1199px) {
    .grey-section .row.grid.grid-type {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .grey-section .row.grid.grid-type {
        grid-template-columns: repeat(2, 1fr);
    }

    .grey-section .grid-type .product-widget .product-media {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 479px) {
    .grey-section .grid-type .grid-item-widget {
        grid-column: span 2;
    }
}

/* Product page — Magnific Popup video player */
.mfp-video-popup .mfp-content {
    max-width: min(92vw, 960px);
    width: 100%;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    vertical-align: middle;
}

.mfp-video-popup .product-video-popup-content {
    line-height: 0;
}

.mfp-video-popup .product-video-popup-player,
.mfp-video-popup video {
    display: block;
    width: 100%;
    max-height: 80vh;
    background: #000;
}

.mfp-video-popup .mfp-close {
    top: 1.5rem;
    right: 1.5rem;
    left: auto;
    width: 4.4rem;
    height: 4.4rem;
    line-height: 4.4rem;
    color: #fff !important;
    opacity: 1;
    background: rgb(0 0 0 / 55%);
    border-radius: 50%;
    z-index: 10;
}

[dir="rtl"] .mfp-video-popup .mfp-close {
    right: auto;
    left: 1.5rem;
}

.mfp-video-popup.mfp-wrap {
    z-index: 10050;
}

/* Product page — video banner uses first video frame as poster (no separate banner image) */
.icon-accordion-section .banner-video.product-video .banner-media,
.product-tabs .banner-video.product-video .banner-media {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.icon-accordion-section .banner-video.product-video video.product-video-poster,
.product-tabs .banner-video.product-video video.product-video-poster {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    min-height: 20rem;
    max-height: 30rem;
    object-fit: cover;
    background-color: #1a1a1a;
    pointer-events: none;
}

.icon-accordion-section .banner-video.product-video .btn-play-video,
.product-tabs .banner-video.product-video .btn-play-video {
    z-index: 2;
}

/* About page — vision / mission / values (Wolmart side-by-side layout) */
.about-us .customer-service .row,
.about-us .boost-section .row {
    display: flex;
    flex-wrap: wrap;
}

.about-us .customer-service .col-md-6,
.about-us .boost-section .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

@media (max-width: 767px) {
    .about-us .customer-service .col-md-6,
    .about-us .boost-section .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.about-us .customer-service .title {
    font-size: 3.4rem;
}

.about-us .boost-section .title {
    font-size: 3rem;
    line-height: 1.25;
}

.about-us .about-section-content {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #666;
}

.about-us .about-section-content p:last-child {
    margin-bottom: 0;
}

.about-us .about-intro-content {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #444;
    max-width: 900px;
    margin: 0 auto;
}

.about-us .customer-service img,
.about-us .boost-section img {
    width: 100%;
    display: block;
    max-height: 400px;
}

/* Homepage — story video banner (fixed 250px height) */
.home-story-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.home-story-banner__link {
    display: block;
    position: relative;
    width: 100%;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
}

.home-story-banner__link,
.home-story-banner__media,
.home-story-banner__video {
    height: 500px;
    max-height: 500px;
    min-height: 500px;
}

.home-story-banner__media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #1a1a1a;
}

.home-story-banner__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 0;
    margin: 0;
    padding: 0;
}

.home-story-banner__video--mobile {
    display: none;
}

.home-story-banner__video--desktop {
    display: block;
}

@media (max-width: 767px) {
    .home-story-banner__video--mobile {
        display: block;
    }

    .home-story-banner__video--desktop {
        display: none;
    }

    .home-story-banner:has(.home-story-banner__video--mobile) .home-story-banner__video--desktop {
        display: none;
    }
}

.home-story-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.25) 45%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.home-story-banner__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.5rem 2rem;
    text-align: center;
    line-height: normal;
    pointer-events: none;
}

.home-story-banner__eyebrow {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    animation: home-story-fade-up 0.7s ease 0.1s both;
}

.home-story-banner__title {
    margin: 0;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
    animation: home-story-fade-up 0.7s ease 0.2s both;
}

.home-story-banner__divider {
    display: block;
    width: 4.5rem;
    height: 3px;
    margin: 0.35rem 0 0.15rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--mp-primary), transparent);
    animation: home-story-fade-up 0.7s ease 0.3s both;
}

.home-story-banner__paragraph {
    margin: 0;
    max-width: 42rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.65;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
    animation: home-story-fade-up 0.7s ease 0.35s both;
}

.home-story-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.5rem;
    padding: 0.55rem 1.35rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, gap 0.3s ease;
    animation: home-story-fade-up 0.7s ease 0.45s both;
}

.home-story-banner__cta i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.home-story-banner__link:hover .home-story-banner__overlay,
.home-story-banner__link:focus .home-story-banner__overlay {
    background: linear-gradient(
        115deg,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(var(--mp-primary-rgb), 0.35) 50%,
        rgba(0, 0, 0, 0.58) 100%
    );
}

.home-story-banner__link:hover .home-story-banner__title,
.home-story-banner__link:focus .home-story-banner__title {
    letter-spacing: 0.02em;
}

.home-story-banner__link:hover .home-story-banner__cta,
.home-story-banner__link:focus .home-story-banner__cta {
    background: rgba(var(--mp-primary-rgb), 0.88);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    gap: 0.9rem;
}

.home-story-banner__link:hover .home-story-banner__cta i,
.home-story-banner__link:focus .home-story-banner__cta i {
    transform: translateX(4px);
}

[dir="rtl"] .home-story-banner__link:hover .home-story-banner__cta i,
[dir="rtl"] .home-story-banner__link:focus .home-story-banner__cta i {
    transform: translateX(-4px) scaleX(-1);
}

@keyframes home-story-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .home-story-banner__content {
        padding: 1rem 1.25rem;
        gap: 0.45rem;
    }

    .home-story-banner__eyebrow {
        font-size: 0.85rem;
        letter-spacing: 0.18em;
    }

    .home-story-banner__title {
        font-size: clamp(1.75rem, 7vw, 2.4rem);
    }

    .home-story-banner__paragraph {
        font-size: 1.1rem;
        line-height: 1.5;
        max-width: 100%;
    }

    .home-story-banner__cta {
        font-size: 1.05rem;
        margin-top: 0.35rem;
    }
}

/* ===== Story page ===== */
.story-page-header {
    position: relative;
}

.story-page-header .page-title {
    font-size: clamp(2.75rem, 6vw, 4rem);
}

.story-page-header__eyebrow {
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    opacity: 0.9;
}

.story-intro {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
    background: #fff;
}

.story-intro__inner {
    max-width: 62rem;
    margin: 0 auto;
    text-align: center;
}

.story-intro__paragraph {
    font-size: clamp(1.55rem, 3.2vw, 1.95rem);
    line-height: 2;
    color: #3a3a3a;
    margin: 0 0 2.25rem;
    font-weight: 400;
    animation: story-fade-up 0.8s ease var(--story-delay, 0s) both;
}

.story-intro__paragraph:last-child {
    margin-bottom: 0;
}

.story-intro__divider {
    width: 4rem;
    height: 3px;
    margin: 3rem auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--mp-primary), transparent);
}

.story-timeline {
    padding: 3.5rem 0 6rem;
    background: #fff;
    --story-brand: var(--mp-primary);
    --story-muted: #9ca8b4;
    --story-border: #e8ecef;
}

.story-timeline__container {
    width: 100%;
    max-width: none;
    padding-left: clamp(1.25rem, 4vw, 3.5rem);
    padding-right: clamp(1.25rem, 4vw, 3.5rem);
}

/* Layout: image | copy | years */
.story-timeline__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(7rem, 10vw, 11rem);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.story-timeline__stage {
    grid-column: 1;
    position: relative;
    min-height: clamp(300px, 38vw, 440px);
}

.story-timeline__panel {
    display: grid;
    grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.story-timeline__nav {
    grid-column: 2;
    position: sticky;
    top: 6.5rem;
    align-self: start;
    padding-left: clamp(1.25rem, 2.5vw, 2.5rem);
    border-left: 1px solid var(--story-border);
}

.story-timeline__panel:not(.is-active) {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.story-timeline__panel.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    animation: story-panel-in 0.5s ease both;
}

.story-timeline__panel[hidden] {
    display: none !important;
}

.story-timeline__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: clamp(280px, 36vw, 420px);
    border-radius: 0;
    overflow: hidden;
    background: linear-gradient(145deg, #f8e8e8 0%, #f5f0f0 55%, #fafafa 100%);
    isolation: isolate;
}

.story-timeline__watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(var(--mp-primary-rgb), 0.08);
    z-index: 0;
    user-select: none;
    pointer-events: none;
}

.story-timeline__image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-timeline__helix {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    background-repeat: no-repeat;
    background-position: 72% 50%;
    background-size: 45% auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 400' fill='none'%3E%3Cpath d='M100 8 C140 56 60 104 100 152 C140 200 60 248 100 296 C140 344 60 392 100 392' stroke='%23d40600' stroke-opacity='0.12' stroke-width='2'/%3E%3Cpath d='M100 8 C60 56 140 104 100 152 C60 200 140 248 100 296 C60 344 140 392 100 392' stroke='%23d40600' stroke-opacity='0.08' stroke-width='2'/%3E%3C/svg%3E");
}

.story-timeline__copy {
    padding: clamp(1rem, 3vw, 2.5rem) 0;
    align-self: center;
}

.story-timeline__display-year {
    font-size: clamp(3.25rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 0.92;
    color: var(--story-brand);
    margin: 0 0 clamp(1.25rem, 2vw, 2rem);
    letter-spacing: -0.03em;
}

.story-timeline__bullet {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    max-width: 50rem;
}

.story-timeline__dot {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
    margin-top: 1rem;
    border-radius: 50%;
    background: var(--story-brand);
}

.story-timeline__text {
    font-size: clamp(1.55rem, 2.8vw, 1.85rem);
    line-height: 1.7;
    color: #4d5966;
    margin: 0;
    max-width: 50rem;
}

.story-timeline__years {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    max-height: min(75vh, 560px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.story-timeline__year-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 3.25rem;
    padding: 0.45rem 0.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--story-muted);
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.25s ease, font-weight 0.25s ease;
}

.story-timeline__year-line {
    display: block;
    width: 0;
    height: 5px;
    margin-bottom: 0.5rem;
    border-radius: 1px;
    background: var(--story-brand);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-timeline__year-btn.is-active,
.story-timeline__year-btn:hover {
    color: var(--story-brand);
}

.story-timeline__year-btn.is-active {
    font-weight: 700;
    font-size: clamp(1.75rem, 2.5vw, 2.15rem);
}

.story-timeline__year-btn.is-active .story-timeline__year-line {
    width: 3.5rem;
}

.story-timeline__mobile-select {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 18rem;
    margin-bottom: 1.5rem;
    border-color: var(--story-border);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--story-brand);
    border-radius: 6px;
}

@keyframes story-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes story-panel-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[dir="rtl"] .story-timeline__copy {
    text-align: right;
}

[dir="rtl"] .story-timeline__bullet {
    flex-direction: row-reverse;
}

[dir="rtl"] .story-timeline__text {
    text-align: right;
}

@media (max-width: 991px) {
    .story-timeline__layout {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .story-timeline__nav {
        display: none;
    }

    .story-timeline__nav[hidden] {
        display: none !important;
    }

    .story-timeline__stage {
        grid-column: 1;
        min-height: 0;
    }

    .story-timeline__panel {
        grid-template-columns: 1fr;
        row-gap: 1.5rem;
    }

    .story-timeline__panel:not(.is-active) {
        position: absolute;
    }

    .story-timeline__display-year {
        font-size: clamp(2.75rem, 14vw, 4.25rem);
    }

    .story-timeline__year-btn {
        font-size: 1.5rem;
    }

    .story-timeline__year-btn.is-active {
        font-size: 1.75rem;
    }

    .story-timeline__text {
        font-size: 1.55rem;
    }

    .story-timeline__media {
        max-height: 320px;
        margin: 0 auto;
        max-width: 400px;
    }
}

@media (max-width: 767px) {
    .story-intro {
        padding: 2.5rem 0 2rem;
    }

    .story-intro__paragraph {
        font-size: 1.55rem;
        margin-bottom: 1.5rem;
    }
}
