/* Brand Story Section */
.brand-story-section {
    width: 100%;
    color: rgb(var(--color-text));
    background: rgb(var(--color-background));
}

brand-story {
    display: block;
}

/* Header */
.brand-story-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-story-title {
    margin: 0 0 16px 0;
}

.brand-story-description {
    color: rgba(var(--color-text), 0.75);
    max-width: 80%;
    margin: 0 auto;
}

/* Card */
.brand-story-card {
    background: rgb(var(--color-button-background));
    border-radius: 24px;
    padding: 48px 100px;
    color: rgb(var(--color-button-text));
}

/* Journey Section */
.journey-section {
    margin-bottom: 30px;
}

.journey-title {
    text-align: center;
    margin: 0 0 32px 0;
}

/* Timeline */
.journey-timeline {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    position: absolute;
    left: 520px;
    top: 50px;
    z-index: 10;
}

.timeline-dot {
    width: 80px;
    height: 4px;
    background: rgba(var(--color-button-text), 0.3);
    border-radius: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.timeline-dot.active {
    background: rgb(var(--color-button-text));
}

/* Journey Slide */
.journey-slide {
    display: flex;
    align-items: center;
    gap: 40px;
}

.journey-image {
    flex: 0 0 480px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(var(--color-button-text), 0.1);
}

.journey-image img,
.journey-image svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.journey-content {
    flex: 1;
}

.journey-year {
    display: block;
    margin-bottom: 12px;
}

.journey-text {
    margin: 0;
    opacity: 0.9;
}

.journey-text-toggle {
    display: none;
    width: max-content;
    margin: 10px auto 0;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-bottom: 1px solid currentColor;
    font: inherit;
    line-height: 1.25;
    cursor: pointer;
}

.journey-text-toggle[hidden] {
    display: none !important;
}

.journey-text-toggle__less {
    display: none;
}

.journey-text-toggle[aria-expanded="true"] .journey-text-toggle__more {
    display: none;
}

.journey-text-toggle[aria-expanded="true"] .journey-text-toggle__less {
    display: inline;
}

.journey-text-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* Journey Nav */
.journey-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    position: absolute;
    left: 520px;
    bottom: 50px;
    z-index: 10;
}

.journey-prev,
.journey-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

/* Values Section */
.values-section {
    padding-top: 30px;
}

.values-title {
    text-align: center;
    margin: 0 0 32px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-item {
    text-align: center;
   
}

.value-name {
    margin: 0 0 12px 0;
}

.value-desc {
    margin: 0; 
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Swiper overrides */
.journey-swiper {
    overflow: hidden;
}

.journey-swiper .swiper-wrapper {
    /* Swiper autoHeight measures the active slide's intrinsic height. Stretching
       the slides to the wrapper's previous inline height makes expanded text
       overflow without giving Swiper a new height to measure. */
    align-items: flex-start;
}

.journey-swiper .swiper-slide {
    height: auto;
    align-self: flex-start;
}

/* Mobile */
@media (max-width: 768px) {
    .brand-story-header {
        margin-bottom: 24px;
    }

    .brand-story-description {
        max-width: 100%;
    }

    .brand-story-card {
        border-radius: 16px;
        padding:  0px;
    }

    .journey-section {
        margin-bottom: 0px;
        padding: 20px;
    }

    .journey-title {
        margin-bottom: 24px;
    } 
    .journey-swiper{ 
        padding-bottom: 100px; 
    }
    .journey-timeline {
        margin-bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 60px;
        top: unset;
        width: 80%;
        margin: auto;
    }

    .journey-slide {
        flex-direction: column;
        gap: 20px;
    }

    .journey-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .journey-content {
        text-align: center;
    }

    brand-story.is-text-clamp-ready .journey-text:not(.is-expanded) {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
    }

    .journey-text-toggle:not([hidden]) {
        display: inline-flex;
    }

    .journey-nav {
        margin-top: 24px;
        left: unset;
        right: 0px;
        bottom: 0px;
    }

    .values-section {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .value-item{
        text-align: left;
        background: rgba(var(--color-button-text), 0.12);
        padding: 10px 20px;
    }

    .values-title {
        margin-bottom: 24px;
    }

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

    .value-desc {
        max-width: 100%;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .brand-story-card {
        padding: 36px;
    }

    .journey-image {
        flex: 0 0 220px;
    }

    .values-grid {
        gap: 24px;
    }
}
