.page-resources-safe-bai-b52-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

.page-resources-safe-bai-b52-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-resources-safe-bai-b52-guide__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-resources-safe-bai-b52-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-resources-safe-bai-b52-guide__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: -1;
}

.page-resources-safe-bai-b52-guide__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.page-resources-safe-bai-b52-guide__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-resources-safe-bai-b52-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources-safe-bai-b52-guide__hero-cta-button {
    display: inline-block;
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-safe-bai-b52-guide__hero-cta-button:hover {
    background-color: #1a8cc4; /* Slightly darker shade */
}

/* General Section Styling */
.page-resources-safe-bai-b52-guide__section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for sections */
    margin-bottom: 30px;
}

.page-resources-safe-bai-b52-guide__section:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-safe-bai-b52-guide__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources-safe-bai-b52-guide__subsection-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources-safe-bai-b52-guide__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-resources-safe-bai-b52-guide__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-resources-safe-bai-b52-guide__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-resources-safe-bai-b52-guide__list-item strong {
    color: #26A9E0;
}

.page-resources-safe-bai-b52-guide a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-safe-bai-b52-guide a:hover {
    color: #1a8cc4;
    text-decoration: underline;
}

/* Image Styling */
.page-resources-safe-bai-b52-guide__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-resources-safe-bai-b52-guide__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensures block behavior for max-width */
    margin: 0 auto; /* Center images */
}

/* Card Grid */
.page-resources-safe-bai-b52-guide__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources-safe-bai-b52-guide__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #ffffff; /* Light text */
}

.page-resources-safe-bai-b52-guide__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-safe-bai-b52-guide__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensures block behavior for max-width */
    margin-left: auto;
    margin-right: auto;
}

.page-resources-safe-bai-b52-guide__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-safe-bai-b52-guide__card-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allows text to take available space */
}

/* CTA Buttons */
.page-resources-safe-bai-b52-guide__cta-container {
    text-align: center;
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.page-resources-safe-bai-b52-guide__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

.page-resources-safe-bai-b52-guide__cta-button--primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid transparent;
}

.page-resources-safe-bai-b52-guide__cta-button--primary:hover {
    background-color: #1a8cc4;
}

.page-resources-safe-bai-b52-guide__cta-button--secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources-safe-bai-b52-guide__cta-button--secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* FAQ Section */
.page-resources-safe-bai-b52-guide__faq-section {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 60px 0;
}

.page-resources-safe-bai-b52-guide__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-safe-bai-b52-guide__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources-safe-bai-b52-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #26A9E0; /* Primary brand color for question */
    transition: background-color 0.3s ease;
}

.page-resources-safe-bai-b52-guide__faq-question:hover {
    background-color: #1a8cc4;
}

.page-resources-safe-bai-b52-guide__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-resources-safe-bai-b52-guide__faq-item.active .page-resources-safe-bai-b52-guide__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to form a minus */
}

.page-resources-safe-bai-b52-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
    color: #f0f0f0;
}

.page-resources-safe-bai-b52-guide__faq-item.active .page-resources-safe-bai-b52-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to reveal content */
    padding: 15px 25px !important; /* Padding when active, important for override */
}

.page-resources-safe-bai-b52-guide__faq-answer p {
    margin-bottom: 10px;
    font-size: 1em;
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-safe-bai-b52-guide__hero-title {
        font-size: 3em;
    }
    .page-resources-safe-bai-b52-guide__section-title {
        font-size: 2em;
    }
    .page-resources-safe-bai-b52-guide__subsection-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-resources-safe-bai-b52-guide {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-safe-bai-b52-guide__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies */
    }

    .page-resources-safe-bai-b52-guide__hero-title {
        font-size: 2.5em;
    }

    .page-resources-safe-bai-b52-guide__hero-description {
        font-size: 1em;
    }

    .page-resources-safe-bai-b52-guide__section {
        padding: 40px 0;
    }

    .page-resources-safe-bai-b52-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources-safe-bai-b52-guide__subsection-title {
        font-size: 1.4em;
    }

    .page-resources-safe-bai-b52-guide__text-block,
    .page-resources-safe-bai-b52-guide__list-item,
    .page-resources-safe-bai-b52-guide__card-text {
        font-size: 0.95em;
    }

    .page-resources-safe-bai-b52-guide__card-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    .page-resources-safe-bai-b52-guide__card {
        padding: 20px;
    }

    .page-resources-safe-bai-b52-guide__cta-container {
        flex-direction: column; /* Stack buttons */
        gap: 15px;
    }

    .page-resources-safe-bai-b52-guide__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto; /* Center buttons */
    }

    .page-resources-safe-bai-b52-guide__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-resources-safe-bai-b52-guide__faq-answer {
        padding: 0 20px;
    }

    .page-resources-safe-bai-b52-guide__faq-item.active .page-resources-safe-bai-b52-guide__faq-answer {
        padding: 15px 20px !important;
    }

    /* Mobile image responsive adaptations */
    .page-resources-safe-bai-b52-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-safe-bai-b52-guide__section,
    .page-resources-safe-bai-b52-guide__card,
    .page-resources-safe-bai-b52-guide__container,
    .page-resources-safe-bai-b52-guide__image-wrapper,
    .page-resources-safe-bai-b52-guide__cta-container,
    .page-resources-safe-bai-b52-guide__faq-list,
    .page-resources-safe-bai-b52-guide__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    /* Remove horizontal padding for hero section to allow image to span full width */
    .page-resources-safe-bai-b52-guide__hero-section.page-resources-safe-bai-b52-guide__section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-resources-safe-bai-b52-guide__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}