/* style/resources-b66-club-apk-safety.css */

/* Base styles for the page content */
.page-resources-b66-club-apk-safety {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

.page-resources-b66-club-apk-safety__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-resources-b66-club-apk-safety__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: rgba(38, 169, 224, 0.1); /* Light transparent blue background */
    overflow: hidden;
}

.page-resources-b66-club-apk-safety__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Make background image subtle */
}

.page-resources-b66-club-apk-safety__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
    border-radius: 10px;
}

.page-resources-b66-club-apk-safety__hero-title {
    font-size: 3.2em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources-b66-club-apk-safety__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* Buttons */
.page-resources-b66-club-apk-safety__btn-primary,
.page-resources-b66-club-apk-safety__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-resources-b66-club-apk-safety__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin-right: 15px;
}

.page-resources-b66-club-apk-safety__btn-primary:hover {
    background-color: #1e87c2;
    border-color: #1e87c2;
}

.page-resources-b66-club-apk-safety__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources-b66-club-apk-safety__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Section common styles */
.page-resources-b66-club-apk-safety__section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for sections */
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-resources-b66-club-apk-safety__section:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.02); /* Alternate background for visual separation */
}

.page-resources-b66-club-apk-safety__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-resources-b66-club-apk-safety__text-block {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 20px;
    text-align: justify;
}

.page-resources-b66-club-apk-safety__image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.page-resources-b66-club-apk-safety__video-section {
    position: relative;
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.08);
}

.page-resources-b66-club-apk-safety__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-resources-b66-club-apk-safety__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-resources-b66-club-apk-safety__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    display: block;
}

.page-resources-b66-club-apk-safety__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Allows click to pass through to the video-link */
}

.page-resources-b66-club-apk-safety__video-link:hover .page-resources-b66-club-apk-safety__video-overlay {
    opacity: 0.8;
}

.page-resources-b66-club-apk-safety__video-play-icon {
    font-size: 4em;
    color: #ffffff;
    background: rgba(38, 169, 224, 0.7);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-resources-b66-club-apk-safety__video-caption {
    text-align: center;
    font-style: italic;
    color: #cccccc;
    margin-top: 15px;
}

/* FAQ Section */
.page-resources-b66-club-apk-safety__faq-section {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-resources-b66-club-apk-safety__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources-b66-club-apk-safety__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-resources-b66-club-apk-safety__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(38, 169, 224, 0.2); /* Slightly transparent primary color */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-b66-club-apk-safety__faq-question:hover {
    background-color: rgba(38, 169, 224, 0.3);
}

.page-resources-b66-club-apk-safety__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em;
}

.page-resources-b66-club-apk-safety__faq-toggle {
    font-size: 1.5em;
    color: #ffffff;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-resources-b66-club-apk-safety__faq-item.active .page-resources-b66-club-apk-safety__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-b66-club-apk-safety__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #e0e0e0;
}

.page-resources-b66-club-apk-safety__faq-item.active .page-resources-b66-club-apk-safety__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px !important; /* Apply padding when active */
}

.page-resources-b66-club-apk-safety__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
}

/* CTA Bottom Section */
.page-resources-b66-club-apk-safety__cta-bottom {
    text-align: center;
    padding-bottom: 80px;
    background-color: transparent;
}

.page-resources-b66-club-apk-safety__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-resources-b66-club-apk-safety__hero-title {
        font-size: 2.8em;
    }

    .page-resources-b66-club-apk-safety__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-b66-club-apk-safety {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources-b66-club-apk-safety__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        min-height: 450px;
    }

    .page-resources-b66-club-apk-safety__hero-title {
        font-size: 2em;
    }

    .page-resources-b66-club-apk-safety__hero-description {
        font-size: 1em;
    }

    .page-resources-b66-club-apk-safety__section {
        padding: 40px 0;
        margin-bottom: 15px;
    }

    .page-resources-b66-club-apk-safety__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources-b66-club-apk-safety__text-block {
        font-size: 1em;
    }

    .page-resources-b66-club-apk-safety__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .page-resources-b66-club-apk-safety__btn-primary,
    .page-resources-b66-club-apk-safety__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        margin: 0 !important; /* Remove margin-right for stacking */
    }

    /* Images responsiveness */
    .page-resources-b66-club-apk-safety img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    .page-resources-b66-club-apk-safety__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Video responsiveness */
    .page-resources-b66-club-apk-safety__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    
    .page-resources-b66-club-apk-safety video,
    .page-resources-b66-club-apk-safety__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-b66-club-apk-safety__video-section,
    .page-resources-b66-club-apk-safety__video-container,
    .page-resources-b66-club-apk-safety__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-resources-b66-club-apk-safety__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
    }
}