/* style/index-m88-brand-story.css */

:root {
    --page-primary-color: #0A1931;
    --page-secondary-color: #FFD700;
    --page-text-light: #F8F8F8;
    --page-text-dark: #333333;
    --page-background-dark: #0A1931;
    --page-background-light: #FFFFFF;
    --page-accent-color: #FFD700;
    --page-button-bg: #FFD700;
    --page-button-text: #0A1931;
}

.page-index-m88-brand-story {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-text-light);
    background-color: var(--page-background-dark);
}

.page-index-m88-brand-story__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-index-m88-brand-story__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--page-primary-color) 0%, #1A3B66 100%); /* Slightly lighter blue for gradient */
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

.page-index-m88-brand-story__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-index-m88-brand-story__hero-title {
    font-size: 3.2em;
    color: var(--page-secondary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.page-index-m88-brand-story__hero-subtitle {
    font-size: 1.3em;
    color: var(--page-text-light);
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-index-m88-brand-story__cta-button {
    display: inline-block;
    background-color: var(--page-button-bg);
    color: var(--page-button-text);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-m88-brand-story__cta-button:hover {
    background-color: #E6B800; /* Slightly darker gold */
    transform: translateY(-3px);
}

.page-index-m88-brand-story__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    overflow: hidden;
}

.page-index-m88-brand-story__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) brightness(50%);
}

/* General Section Styling */
.page-index-m88-brand-story__section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-index-m88-brand-story__section:last-of-type {
    border-bottom: none;
}

.page-index-m88-brand-story__section-title {
    font-size: 2.5em;
    color: var(--page-secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-index-m88-brand-story__paragraph {
    font-size: 1.1em;
    color: var(--page-text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

.page-index-m88-brand-story__image-inline {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-index-m88-brand-story__image-inline:hover {
    transform: scale(1.02);
}

/* Origin Section */
.page-index-m88-brand-story__origin {
    background-color: var(--page-primary-color);
}

/* Milestones Section */
.page-index-m88-brand-story__milestones {
    background-color: #0F2340; /* Slightly different dark blue */
}

.page-index-m88-brand-story__timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
    padding: 20px 0;
}

.page-index-m88-brand-story__timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

.page-index-m88-brand-story__timeline-item {
    position: relative;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.page-index-m88-brand-story__timeline-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-index-m88-brand-story__timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background-color: var(--page-secondary-color);
    border-radius: 50%;
    border: 2px solid var(--page-primary-color);
    z-index: 2;
}

.page-index-m88-brand-story__timeline-year {
    font-size: 1.8em;
    color: var(--page-secondary-color);
    margin-bottom: 10px;
    text-align: center;
}

.page-index-m88-brand-story__timeline-description {
    font-size: 1em;
    color: var(--page-text-light);
    text-align: justify;
}

/* Values Section */
.page-index-m88-brand-story__values {
    background-color: var(--page-primary-color);
}

.page-index-m88-brand-story__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-index-m88-brand-story__list li {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 5px solid var(--page-secondary-color);
    font-size: 1.1em;
    color: var(--page-text-light);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index-m88-brand-story__list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.page-index-m88-brand-story__list strong {
    color: var(--page-secondary-color);
}

/* Future Section */
.page-index-m88-brand-story__future {
    background-color: #0F2340;
    text-align: center;
}

.page-index-m88-brand-story__cta-button--bottom {
    margin-top: 40px;
}

/* Related Links Section */
.page-index-m88-brand-story__related {
    background-color: var(--page-primary-color);
    padding-bottom: 80px;
}

.page-index-m88-brand-story__related-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-index-m88-brand-story__related-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--page-secondary-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid var(--page-secondary-color);
}

.page-index-m88-brand-story__related-link:hover {
    background-color: var(--page-secondary-color);
    color: var(--page-primary-color);
}

/* Responsive Design */
@media (min-width: 768px) {
    .page-index-m88-brand-story__hero {
        flex-direction: row;
        text-align: left;
        padding: 100px 40px;
    }

    .page-index-m88-brand-story__hero-content {
        flex: 1;
        padding-right: 40px;
    }

    .page-index-m88-brand-story__hero-image-wrapper {
        flex: 1;
        position: static;
        opacity: 1;
        filter: none;
        height: auto;
        width: auto;
        max-width: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .page-index-m88-brand-story__hero-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-height: 350px;
    }

    .page-index-m88-brand-story__timeline {
        grid-template-columns: 1fr 1fr;
        gap: 60px 80px;
    }

    .page-index-m88-brand-story__timeline::before {
        left: calc(50% - 40px);
    }

    .page-index-m88-brand-story__timeline-item {
        padding-left: 40px;
        text-align: left;
    }

    .page-index-m88-brand-story__timeline-item:nth-child(odd) {
        grid-column: 1 / 2;
        justify-self: end;
        padding-right: 40px;
        padding-left: 20px;
    }

    .page-index-m88-brand-story__timeline-item:nth-child(even) {
        grid-column: 2 / 3;
        justify-self: start;
        padding-left: 40px;
        padding-right: 20px;
    }

    .page-index-m88-brand-story__timeline-item::before {
        left: auto;
        right: -40px;
        transform: translateY(-50%);
    }

    .page-index-m88-brand-story__timeline-item:nth-child(even)::before {
        left: -40px;
        right: auto;
    }

    .page-index-m88-brand-story__timeline-year {
        text-align: left;
    }
}

@media (max-width: 767px) {
    .page-index-m88-brand-story__hero-title {
        font-size: 2.2em;
    }
    .page-index-m88-brand-story__hero-subtitle {
        font-size: 1em;
    }
    .page-index-m88-brand-story__section-title {
        font-size: 1.8em;
    }
    .page-index-m88-brand-story__paragraph, .page-index-m88-brand-story__list li {
        font-size: 0.95em;
    }

    .page-index-m88-brand-story__timeline::before {
        left: 20px;
        transform: translateX(0);
    }
    .page-index-m88-brand-story__timeline-item {
        margin-left: 40px;
    }
    .page-index-m88-brand-story__timeline-item::before {
        left: -28px;
        top: 25px;
        transform: translate(0, -50%);
    }
}

@media (min-width: 1024px) {
    .page-index-m88-brand-story__hero-title {
        font-size: 3.8em;
    }
    .page-index-m88-brand-story__section-title {
        font-size: 3em;
    }
}