.page-about-history {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Inherited from shared.css body */
}

.page-about-history__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about-history__hero-section {
    position: relative;
    background-color: #0A1931;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px 80px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-about-history__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFD700;
    line-height: 1.2;
}

.page-about-history__description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-about-history__cta-button {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about-history__btn-primary {
    background-color: #FFD700;
    color: #0A1931;
    border: 2px solid #FFD700;
}

.page-about-history__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-about-history__btn-secondary {
    background-color: #0A1931;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-about-history__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A1931;
    transform: translateY(-2px);
}

.page-about-history__section {
    padding: 60px 0;
}

.page-about-history__dark-section {
    background-color: #0A1931;
    color: #ffffff;
}

.page-about-history__light-bg {
    background-color: #f0f0f0; /* Slightly off-white for contrast */
    color: #333333;
}

.page-about-history__section-title {
    font-size: 2em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
}

.page-about-history__light-bg .page-about-history__section-title {
    color: #0A1931;
}

.page-about-history__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about-history__grid-layout--reverse {
    grid-template-areas: "image text";
}

.page-about-history__grid-layout--reverse .page-about-history__text-block {
    grid-area: text;
}

.page-about-history__grid-layout--reverse .page-about-history__image-wrapper {
    grid-area: image;
}

.page-about-history__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-about-history__image-wrapper {
    text-align: center;
}

.page-about-history__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block;
    margin: 0 auto;
}

/* FAQ Section */
.page-about-history__faq-section {
    padding: 80px 0;
    background-color: #0A1931;
    color: #ffffff;
}

.page-about-history__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-about-history__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-about-history__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    color: #FFD700;
    transition: background-color 0.3s ease;
}

.page-about-history__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about-history__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-about-history__faq-item.active .page-about-history__faq-toggle {
    transform: rotate(45deg);
}

.page-about-history__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-about-history__faq-item.active .page-about-history__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 25px 25px;
}

.page-about-history__faq-answer p {
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-about-history__main-title {
        font-size: 2.2em;
    }
    .page-about-history__grid-layout {
        grid-template-columns: 1fr;
    }
    .page-about-history__grid-layout--reverse {
        grid-template-areas: unset;
    }
    .page-about-history__text-block, .page-about-history__image-wrapper {
        grid-area: unset;
    }
    .page-about-history__image {
        margin-bottom: 30px;
    }
    .page-about-history__grid-layout--reverse .page-about-history__image {
        order: -1; /* Image first on mobile for reverse layout */
    }
}

@media (max-width: 768px) {
    .page-about-history__hero-section {
        padding: 80px 15px 60px;
    }
    .page-about-history__main-title {
        font-size: 1.8em;
    }
    .page-about-history__description {
        font-size: 1em;
    }
    .page-about-history__section {
        padding: 40px 0;
    }
    .page-about-history__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about-history__text-block p {
        font-size: 0.95em;
    }
    
    /* Enforce image responsiveness */
    .page-about-history img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-about-history__section,
    .page-about-history__container,
    .page-about-history__image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
      overflow-x: hidden !important;
    }
    .page-about-history__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-about-history__faq-answer {
        padding: 0 20px;
    }
    .page-about-history__faq-item.active .page-about-history__faq-answer {
        padding: 10px 20px 20px;
    }
    /* Enforce button responsiveness */
    .page-about-history__cta-button,
    .page-about-history__btn-primary,
    .page-about-history__btn-secondary,
    .page-about-history a[class*="button"],
    .page-about-history a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
      margin-bottom: 10px; /* Add spacing between stacked buttons */
    }
    .page-about-history__cta-buttons,
    .page-about-history__button-group,
    .page-about-history__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px !important;
      padding-right: 15px !important;
      flex-wrap: wrap !important;
      gap: 10px;
      display: flex;
      flex-direction: column;
    }
}