.page-index-brand-story {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Light background, so dark text */
    background-color: #FFFFFF; /* Matches body background */
}

/* Fixed header offset */
.page-index-brand-story__hero-section {
    padding-top: var(--header-offset, 120px);
}

.page-index-brand-story__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text for contrast */
    overflow: hidden;
    padding: 20px;
}

.page-index-brand-story__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.page-index-brand-story__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-index-brand-story__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-brand-story__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-index-brand-story__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-index-brand-story__btn-primary,
.page-index-brand-story__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-index-brand-story__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
    border: 2px solid #C30808;
}

.page-index-brand-story__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-index-brand-story__btn-secondary {
    background-color: #FFFFFF; /* Auxiliary color */
    color: #017439; /* Brand primary color for text */
    border: 2px solid #017439;
}

.page-index-brand-story__btn-secondary:hover {
    background-color: #e0e0e0;
    color: #017439;
}

.page-index-brand-story__video-section {
    background-color: #FFFFFF; /* Light background */
    padding: 60px 20px;
    text-align: center;
}

.page-index-brand-story__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 30px auto 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
}

.page-index-brand-story__video-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-index-brand-story__video {
    width: 100%;
    height: auto;
    display: block;
}

.page-index-brand-story__content-section {
    padding: 60px 20px;
}

.page-index-brand-story__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-index-brand-story__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

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

.page-index-brand-story__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: inherit;
}

.page-index-brand-story__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

.page-index-brand-story__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: inherit;
}

.page-index-brand-story__text-block {
    margin-bottom: 20px;
    font-size: 1em;
    color: inherit;
}

.page-index-brand-story__text-block a {
    color: #017439; /* Link color for light background */
    text-decoration: underline;
}

.page-index-brand-story__dark-bg .page-index-brand-story__text-block a {
    color: #FFFF00; /* Link color for dark background */
}

.page-index-brand-story__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: inherit;
}

.page-index-brand-story__list li {
    margin-bottom: 10px;
    color: inherit;
}

.page-index-brand-story__list li a {
    color: #017439; /* Link color for light background */
    text-decoration: underline;
}

.page-index-brand-story__dark-bg .page-index-brand-story__list li a {
    color: #FFFF00; /* Link color for dark background */
}

.page-index-brand-story__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-brand-story__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-index-brand-story__cta-section .page-index-brand-story__section-description a {
    color: #FFFF00; /* Link color for dark background */
    text-decoration: underline;
}

.page-index-brand-story__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-index-brand-story__faq-section {
    padding: 60px 20px;
    background-color: #f5f5f5; /* Light grey background for FAQ */
    color: #333333;
}

.page-index-brand-story__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-index-brand-story__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-index-brand-story__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    color: #333333;
    transition: background-color 0.3s ease;
    list-style: none;
}

.page-index-brand-story__faq-question::-webkit-details-marker {
    display: none;
}

.page-index-brand-story__faq-question:hover {
    background-color: #e9e9e9;
}

.page-index-brand-story__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-index-brand-story__faq-item[open] .page-index-brand-story__faq-toggle {
    content: "−";
}

.page-index-brand-story__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
}

.page-index-brand-story__faq-answer p {
    margin-bottom: 10px;
}

.page-index-brand-story__faq-answer a {
    color: #017439;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-index-brand-story__hero-title {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .page-index-brand-story__hero-title {
        font-size: 2.5em;
    }
    .page-index-brand-story__hero-description {
        font-size: 1em;
    }
    .page-index-brand-story__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-index-brand-story__btn-primary,
    .page-index-brand-story__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-index-brand-story__section-title {
        font-size: 2em;
    }
    .page-index-brand-story__sub-title {
        font-size: 1.5em;
    }
    .page-index-brand-story__content-section,
    .page-index-brand-story__video-section,
    .page-index-brand-story__cta-section,
    .page-index-brand-story__faq-section {
        padding: 40px 15px;
    }
    .page-index-brand-story__container {
        padding: 0; /* Handled by section padding */
    }

    /* Mobile responsive images */
    .page-index-brand-story img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile responsive video */
    .page-index-brand-story video,
    .page-index-brand-story__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-index-brand-story__video-section,
    .page-index-brand-story__video-container,
    .page-index-brand-story__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    /* Fixed header offset for video section if it's the first element */
    .page-index-brand-story__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* General container for content sections to prevent overflow */
    .page-index-brand-story__section,
    .page-index-brand-story__card,
    .page-index-brand-story__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-index-brand-story__hero-title {
        font-size: 2em;
    }
    .page-index-brand-story__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
}