/* style/resources-sunwin-safety-security.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-on-dark-bg: #FFFFFF;
    --text-on-light-bg: #333333;
    --register-button-bg: #C30808;
    --login-button-bg: #C30808;
    --login-register-font: #FFFF00;
    --body-bg: #121212; /* From shared.css */
}

.page-resources-sunwin-safety-security {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark-bg); /* Default text color for dark body background */
    background-color: var(--body-bg);
}

.page-resources-sunwin-safety-security__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-resources-sunwin-safety-security__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #004d2b);
    overflow: hidden;
}

.page-resources-sunwin-safety-security__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.page-resources-sunwin-safety-security__hero-title {
    font-size: 3.2em;
    color: var(--text-on-dark-bg);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-resources-sunwin-safety-security__hero-description {
    font-size: 1.2em;
    color: var(--text-on-dark-bg);
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-resources-sunwin-safety-security__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-resources-sunwin-safety-security__btn-primary,
.page-resources-sunwin-safety-security__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    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-sunwin-safety-security__btn-primary {
    background-color: var(--register-button-bg); /* Use custom color for register */
    color: var(--login-register-font); /* Use custom font color */
    border: 2px solid var(--register-button-bg);
}

.page-resources-sunwin-safety-security__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-resources-sunwin-safety-security__btn-secondary {
    background-color: transparent;
    color: var(--text-on-dark-bg);
    border: 2px solid var(--text-on-dark-bg);
}

.page-resources-sunwin-safety-security__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.page-resources-sunwin-safety-security__content-area {
    padding: 80px 0;
}

.page-resources-sunwin-safety-security__dark-bg {
    background-color: #202020; /* Slightly lighter than body for contrast */
    color: var(--text-on-dark-bg);
}

.page-resources-sunwin-safety-security__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
}

.page-resources-sunwin-safety-security__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: inherit;
}

.page-resources-sunwin-safety-security__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
    color: inherit;
}

.page-resources-sunwin-safety-security__section-description a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-resources-sunwin-safety-security__features-grid,
.page-resources-sunwin-safety-security__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-sunwin-safety-security__feature-card,
.page-resources-sunwin-safety-security__info-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-on-dark-bg);
}

.page-resources-sunwin-safety-security__light-bg .page-resources-sunwin-safety-security__feature-card,
.page-resources-sunwin-safety-security__light-bg .page-resources-sunwin-safety-security__info-card {
    background-color: #f8f8f8; /* Light gray on light bg */
    color: var(--text-on-light-bg);
}

.page-resources-sunwin-safety-security__feature-icon,
.page-resources-sunwin-safety-security__info-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.page-resources-sunwin-safety-security__feature-title,
.page-resources-sunwin-safety-security__info-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: inherit;
}

.page-resources-sunwin-safety-security__feature-text,
.page-resources-sunwin-safety-security__info-text {
    font-size: 1em;
    color: inherit;
}

.page-resources-sunwin-safety-security__video-section {
    position: relative;
    padding: 60px 0;
    background-color: #1a1a1a;
    text-align: center;
    color: var(--text-on-dark-bg);
}

.page-resources-sunwin-safety-security__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 40px auto 0;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources-sunwin-safety-security__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.page-resources-sunwin-safety-security__faq-section {
    padding: 80px 0;
}

.page-resources-sunwin-safety-security__faq-list {
    max-width: 900px;
    margin: 50px auto 0;
}

.page-resources-sunwin-safety-security__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources-sunwin-safety-security__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-on-dark-bg);
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-resources-sunwin-safety-security__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-sunwin-safety-security__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources-sunwin-safety-security__faq-item.active .page-resources-sunwin-safety-security__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-sunwin-safety-security__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    font-size: 1em;
    color: var(--text-on-dark-bg);
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-resources-sunwin-safety-security__faq-item.active .page-resources-sunwin-safety-security__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 20px;
}

.page-resources-sunwin-safety-security__faq-answer p {
    margin: 0;
    color: inherit;
}

.page-resources-sunwin-safety-security__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
}

.page-resources-sunwin-safety-security__cta-section .page-resources-sunwin-safety-security__btn-primary {
    background-color: var(--register-button-bg); /* Use custom color for register */
    color: var(--login-register-font); /* Use custom font color */
    border-color: var(--register-button-bg);
}

.page-resources-sunwin-safety-security__cta-section .page-resources-sunwin-safety-security__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-resources-sunwin-safety-security__cta-section .page-resources-sunwin-safety-security__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-resources-sunwin-safety-security__cta-section .page-resources-sunwin-safety-security__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* Text contrast fixes for light background sections */
.page-resources-sunwin-safety-security__text-contrast-fix {
    color: var(--text-on-light-bg) !important;
}

/* General image styling to prevent filter usage */
.page-resources-sunwin-safety-security img {
    filter: none; /* Ensure no CSS filters are applied */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-sunwin-safety-security__hero-title {
        font-size: 2.8em;
    }

    .page-resources-sunwin-safety-security__section-title {
        font-size: 2em;
    }
}

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

    .page-resources-sunwin-safety-security__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-sunwin-safety-security__hero-title {
        font-size: 2.2em;
    }

    .page-resources-sunwin-safety-security__hero-description {
        font-size: 1em;
    }

    .page-resources-sunwin-safety-security__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-sunwin-safety-security__btn-primary,
    .page-resources-sunwin-safety-security__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-sunwin-safety-security__content-area {
        padding: 40px 0;
    }

    .page-resources-sunwin-safety-security__container {
        padding: 0 15px;
    }

    .page-resources-sunwin-safety-security__section-title {
        font-size: 1.8em;
    }

    .page-resources-sunwin-safety-security__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-resources-sunwin-safety-security__features-grid,
    .page-resources-sunwin-safety-security__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-sunwin-safety-security__feature-card,
    .page-resources-sunwin-safety-security__info-card,
    .page-resources-sunwin-safety-security__faq-item {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto; /* Center cards */
        margin-right: auto; /* Center cards */
    }

    .page-resources-sunwin-safety-security img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-sunwin-safety-security__video-section {
        padding: 40px 0;
    }

    .page-resources-sunwin-safety-security__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-sunwin-safety-security__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-sunwin-safety-security__faq-section {
        padding: 40px 0;
    }

    .page-resources-sunwin-safety-security__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-resources-sunwin-safety-security__faq-answer {
        padding: 0 20px;
    }

    .page-resources-sunwin-safety-security__faq-item.active .page-resources-sunwin-safety-security__faq-answer {
        padding: 10px 20px 15px;
    }

    .page-resources-sunwin-safety-security__cta-section {
        padding: 40px 0;
    }
}