/* style/resources-security-guide.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-resources-security-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text on dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-resources-security-guide__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0; /* Brand primary color for hero background */
    color: #ffffff;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-resources-security-guide__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-resources-security-guide__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General Content Section */
.page-resources-security-guide__content-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for main content blocks */
    color: #333333; /* Dark text on light background */
}

.page-resources-security-guide__section-title {
    font-size: 2.2em;
    color: #26A9E0; /* Brand primary color for titles */
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-security-guide__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-resources-security-guide__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #333333;
}

.page-resources-security-guide__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-resources-security-guide__list-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    color: #333333;
}

.page-resources-security-guide__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #26A9E0;
}

/* Feature Grid / Cards */
.page-resources-security-guide__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-resources-security-guide__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text on white card background */
}

.page-resources-security-guide__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-security-guide__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-resources-security-guide__card-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-resources-security-guide__card-description {
    font-size: 1em;
    color: #555555;
}

/* Call to Action Buttons */
.page-resources-security-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources-security-guide__cta-buttons--bottom {
    margin-top: 60px;
}

.page-resources-security-guide__btn-primary,
.page-resources-security-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-resources-security-guide__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-resources-security-guide__btn-primary:hover {
    background-color: #1a8ccb;
    border-color: #1a8ccb;
    transform: translateY(-2px);
}

.page-resources-security-guide__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources-security-guide__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a8ccb;
    border-color: #1a8ccb;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-resources-security-guide__faq-list {
    margin-top: 40px;
    margin-bottom: 60px;
    border-top: 1px solid #e0e0e0;
}

.page-resources-security-guide__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-resources-security-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-resources-security-guide__faq-question:hover {
    background-color: #f9f9f9;
}

.page-resources-security-guide__faq-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

.page-resources-security-guide__faq-toggle {
    font-size: 1.8em;
    color: #26A9E0;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

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

.page-resources-security-guide__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px; /* Initial padding is 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-resources-security-guide__faq-item.active .page-resources-security-guide__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px; /* Padding when active */
}

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

@media (max-width: 768px) {
    .page-resources-security-guide {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources-security-guide__container {
        padding: 0 15px;
    }
    .page-resources-security-guide__hero-section {
        padding: 60px 0;
    }
    .page-resources-security-guide__hero-title {
        font-size: 2.2em;
    }
    .page-resources-security-guide__hero-description {
        font-size: 1em;
    }
    .page-resources-security-guide__section-title {
        font-size: 1.8em;
    }
    .page-resources-security-guide__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-resources-security-guide__card {
        padding: 20px;
    }
    .page-resources-security-guide__card-title {
        font-size: 1.3em;
    }
    .page-resources-security-guide__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-security-guide__btn-primary,
    .page-resources-security-guide__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Mobile image responsiveness */
    .page-resources-security-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources-security-guide__hero-image {
        min-width: unset; /* Override min-width for mobile */
        min-height: unset; /* Override min-height for mobile */
    }
    .page-resources-security-guide__card-image {
        min-width: unset; /* Override min-width for mobile */
        min-height: unset; /* Override min-height for mobile */
    }
    
    /* Ensure containers do not overflow */
    .page-resources-security-guide__section,
    .page-resources-security-guide__card,
    .page-resources-security-guide__container,
    .page-resources-security-guide__cta-buttons,
    .page-resources-security-guide__faq-list,
    .page-resources-security-guide__faq-item,
    .page-resources-security-guide__faq-question,
    .page-resources-security-guide__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-resources-security-guide__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Adjust hero padding for mobile header */
    }
}

/* Dark background sections for contrast testing - not used in this specific page, but good for reference */
.page-resources-security-guide__dark-bg {
    background-color: #26A9E0; /* Example dark background */
    color: #ffffff; /* White text on dark background */
}

.page-resources-security-guide__light-bg {
    background-color: #ffffff; /* Example light background */
    color: #333333; /* Dark text on light background */
}

/* Ensure no filter is applied to images */
.page-resources-security-guide img {
    filter: none !important;
}