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

/* Base styling for the page content, ensuring top padding for fixed header */
.page-resources-security-guide {
    padding-top: var(--header-offset, 120px); /* Default for desktop, adjusted by JS */
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #FFFFFF; /* Page background, consistent with body */
}

/* Hero Section */
.page-resources-security-guide__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    background-color: #000000; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark hero background */
}

.page-resources-security-guide__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-resources-security-guide__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FCBC45; /* Login button color for emphasis */
    font-weight: bold;
    line-height: 1.2;
}

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

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

.page-resources-security-guide__button {
    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;
    cursor: pointer;
    border: none;
}

.page-resources-security-guide__button--register {
    background-color: #FFFFFF; /* Register button color */
    color: #000000;
}

.page-resources-security-guide__button--register:hover {
    background-color: #F0F0F0;
    color: #000000;
}

.page-resources-security-guide__button--login {
    background-color: #FCBC45; /* Login button color */
    color: #000000;
}

.page-resources-security-guide__button--login:hover {
    background-color: #E0A83A;
    color: #000000;
}

.page-resources-security-guide__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.3; /* Subtle background image */
}

.page-resources-security-guide__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content Area */
.page-resources-security-guide__content-area {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 40px;
}

/* Sidebar Navigation */
.page-resources-security-guide__sidebar-nav {
    flex: 0 0 250px;
    padding: 20px;
    background-color: #F8F8F8;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    align-self: flex-start; /* Stick to top */
    position: sticky;
    top: calc(var(--header-offset, 120px) + 20px); /* Adjust for header and some spacing */
    max-height: calc(100vh - var(--header-offset, 120px) - 40px); /* Limit height for scrolling */
    overflow-y: auto;
}

.page-resources-security-guide__sidebar-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #000000;
}

.page-resources-security-guide__sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-resources-security-guide__sidebar-list li {
    margin-bottom: 10px;
}

.page-resources-security-guide__sidebar-list a {
    text-decoration: none;
    color: #333333;
    font-size: 1.1em;
    display: block;
    padding: 8px 10px;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.page-resources-security-guide__sidebar-list a:hover,
.page-resources-security-guide__sidebar-list a.active {
    background-color: #FCBC45;
    color: #000000;
}

/* Article Content */
.page-resources-security-guide__article-content {
    flex: 1;
    max-width: 800px; /* Content width control */
    margin: 0 auto; /* Center content within its flex area */
}

.page-resources-security-guide__article-heading {
    font-size: 2em;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid #FCBC45;
    padding-bottom: 10px;
}

.page-resources-security-guide__article-paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: #333333;
}

.page-resources-security-guide__image-wrapper {
    margin: 30px 0;
    text-align: center;
}

.page-resources-security-guide__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

/* FAQ Section */
.page-resources-security-guide__faq-item {
    background-color: #F8F8F8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.page-resources-security-guide__faq-question {
    font-size: 1.2em;
    color: #000000;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-resources-security-guide__faq-answer {
    font-size: 1em;
    color: #555555;
    margin-bottom: 0;
}

/* Back to Resources Link */
.page-resources-security-guide__return-link {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.page-resources-security-guide__button--back {
    background-color: #000000;
    color: #FFFFFF;
    padding: 12px 25px;
}

.page-resources-security-guide__button--back:hover {
    background-color: #333333;
    color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources-security-guide__hero-title {
        font-size: 2.5em;
    }
    .page-resources-security-guide__content-area {
        flex-direction: column;
        gap: 20px;
    }
    .page-resources-security-guide__sidebar-nav {
        position: static; /* Remove sticky behavior on smaller screens */
        max-height: none;
        width: 100%;
    }
    .page-resources-security-guide__article-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-resources-security-guide {
        padding-top: var(--header-offset, 80px); /* Adjust padding for mobile header */
    }
    .page-resources-security-guide__hero-section {
        padding: 60px 15px;
    }
    .page-resources-security-guide__hero-title {
        font-size: 2em;
    }
    .page-resources-security-guide__hero-description {
        font-size: 1em;
    }
    .page-resources-security-guide__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources-security-guide__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-resources-security-guide__article-heading {
        font-size: 1.6em;
    }
    .page-resources-security-guide__article-paragraph {
        font-size: 1em;
    }
    /* Enforce max-width for images in content area on mobile */
    .page-resources-security-guide__image-wrapper img,
    .page-resources-security-guide__article-content img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Maintain min size */
        min-height: 200px; /* Maintain min size */
    }
}

@media (max-width: 480px) {
    .page-resources-security-guide__hero-title {
        font-size: 1.8em;
    }
    .page-resources-security-guide__hero-description {
        font-size: 0.95em;
    }
    .page-resources-security-guide__button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources-security-guide__sidebar-title {
        font-size: 1.3em;
    }
    .page-resources-security-guide__sidebar-list a {
        font-size: 1em;
    }
    .page-resources-security-guide__article-heading {
        font-size: 1.4em;
    }
    .page-resources-security-guide__faq-question {
        font-size: 1.1em;
    }
}