/* style/resources-security-privacy.css */
.page-resources-security-privacy {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

.page-resources-security-privacy__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources-security-privacy__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-resources-security-privacy__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.page-resources-security-privacy__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: #FFFFFF;
    background: rgba(1, 116, 57, 0.8); /* Primary brand color with transparency */
    border-radius: 10px;
}

.page-resources-security-privacy__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-security-privacy__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources-security-privacy__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-resources-security-privacy__section {
    padding: 60px 20px;
    text-align: center;
}

.page-resources-security-privacy__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-resources-security-privacy__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #017439; /* Primary brand color */
}

.page-resources-security-privacy__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #cccccc;
}

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

.page-resources-security-privacy__card {
    background: rgba(255, 255, 255, 0.1); /* Light transparent background for dark body */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources-security-privacy__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #017439; /* Primary brand color */
    text-align: center;
}

.page-resources-security-privacy__card-image {
    width: 100%;
    max-width: 400px; /* Example size for content images */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-resources-security-privacy__card-text {
    font-size: 1em;
    color: #e0e0e0;
}

.page-resources-security-privacy__dark-section {
    background-color: #017439; /* Primary brand color as background */
    color: #FFFFFF;
}

.page-resources-security-privacy__dark-section .page-resources-security-privacy__section-title {
    color: #FFFFFF;
}

.page-resources-security-privacy__dark-section .page-resources-security-privacy__section-description {
    color: #f0f0f0;
}

.page-resources-security-privacy__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}

.page-resources-security-privacy__content-block {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 25px;
    color: #FFFFFF;
}

.page-resources-security-privacy__content-subtitle {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-resources-security-privacy__content-block p {
    color: #e0e0e0;
}

.page-resources-security-privacy__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-resources-security-privacy__feature-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-resources-security-privacy__feature-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #017439; /* Primary brand color */
}

.page-resources-security-privacy__feature-item p {
    color: #cccccc;
}

.page-resources-security-privacy__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-security-privacy__tip-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources-security-privacy__tip-image {
    width: 200px; /* Minimum size requirement */
    height: 150px; /* Minimum size requirement */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-resources-security-privacy__tip-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439; /* Primary brand color */
}

.page-resources-security-privacy__tip-item p {
    color: #e0e0e0;
}

.page-resources-security-privacy__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-resources-security-privacy__faq-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #FFFFFF;
}

.page-resources-security-privacy__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background: #017439; /* Primary brand color */
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources-security-privacy__faq-question:hover {
    background: #005f2e;
}

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

.page-resources-security-privacy__faq-item.active .page-resources-security-privacy__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-security-privacy__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #e0e0e0;
}

.page-resources-security-privacy__faq-item.active .page-resources-security-privacy__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px;
}

.page-resources-security-privacy__faq-answer p {
    margin: 0;
}

.page-resources-security-privacy__cta-buttons {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-resources-security-privacy__btn-primary,
.page-resources-security-privacy__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    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;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-security-privacy__btn-primary {
    background: #C30808; /* Custom Register/Login button color */
    color: #FFFFFF; /* Ensures WCAG AA contrast on #C30808 */
    border: 2px solid #C30808;
}

.page-resources-security-privacy__btn-primary:hover {
    background: #a00606;
    border-color: #a00606;
}

.page-resources-security-privacy__btn-secondary {
    background: transparent;
    color: #017439; /* Primary brand color */
    border: 2px solid #017439;
}

.page-resources-security-privacy__btn-secondary:hover {
    background: #017439;
    color: #FFFFFF;
}

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

    .page-resources-security-privacy__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-security-privacy__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources-security-privacy__hero-title {
        font-size: 2.2em;
    }

    .page-resources-security-privacy__hero-description {
        font-size: 1em;
    }

    .page-resources-security-privacy__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-security-privacy__btn-primary,
    .page-resources-security-privacy__btn-secondary {
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-security-privacy__section {
        padding: 40px 15px;
    }

    .page-resources-security-privacy__section-title {
        font-size: 1.8em;
    }

    .page-resources-security-privacy__section-description {
        font-size: 0.95em;
    }

    .page-resources-security-privacy__grid,
    .page-resources-security-privacy__content-grid,
    .page-resources-security-privacy__features-grid,
    .page-resources-security-privacy__tips-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-resources-security-privacy__card,
    .page-resources-security-privacy__content-block,
    .page-resources-security-privacy__feature-item,
    .page-resources-security-privacy__tip-item {
        padding: 20px;
    }

    .page-resources-security-privacy__card-image,
    .page-resources-security-privacy__tip-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources-security-privacy__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-resources-security-privacy__faq-answer {
        padding: 10px 20px;
    }

    .page-resources-security-privacy__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources-security-privacy img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-security-privacy__section,
    .page-resources-security-privacy__card,
    .page-resources-security-privacy__container,
    .page-resources-security-privacy__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    .page-resources-security-privacy__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-resources-security-privacy__hero-title {
        font-size: 1.8em;
    }

    .page-resources-security-privacy__section-title {
        font-size: 1.5em;
    }

    .page-resources-security-privacy__card-title,
    .page-resources-security-privacy__content-subtitle,
    .page-resources-security-privacy__feature-title,
    .page-resources-security-privacy__tip-title {
        font-size: 1.3em;
    }
}