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

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --background-light: #FFFFFF;
    --background-dark: #26A9E0;
    --button-login: #EA7C07;
    --button-login-hover: #D06A06; /* Darker shade for hover */
    --button-text-dark: #000000;
}

.page-resources-security-guarantees {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.page-resources-security-guarantees__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: var(--header-offset, 120px) 20px 60px;
    text-align: center;
    overflow: hidden;
    background-color: var(--background-dark);
    color: var(--text-light);
}

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

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

.page-resources-security-guarantees__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-resources-security-guarantees__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

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

.page-resources-security-guarantees__btn-primary,
.page-resources-security-guarantees__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;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-resources-security-guarantees__btn-primary {
    background-color: var(--button-login);
    color: var(--text-light);
    border: 2px solid var(--button-login);
}

.page-resources-security-guarantees__btn-primary:hover {
    background-color: var(--button-login-hover);
    border-color: var(--button-login-hover);
}

.page-resources-security-guarantees__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-resources-security-guarantees__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-resources-security-guarantees__section {
    padding: 60px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-resources-security-guarantees__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-resources-security-guarantees__light-bg {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-resources-security-guarantees__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-resources-security-guarantees__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-resources-security-guarantees__dark-bg .page-resources-security-guarantees__section-title {
    color: var(--secondary-color);
}

.page-resources-security-guarantees__text-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-resources-security-guarantees__text-block p {
    flex: 1;
    min-width: 300px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-resources-security-guarantees__image {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-resources-security-guarantees__image--left {
    order: -1;
}

.page-resources-security-guarantees__faq-section {
    padding: 80px 0;
}

.page-resources-security-guarantees__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources-security-guarantees__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-resources-security-guarantees__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1em;
}

.page-resources-security-guarantees__faq-question:hover {
    background-color: #f0f0f0;
}

.page-resources-security-guarantees__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: inherit; /* Inherit color from parent for contrast */
}

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

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

.page-resources-security-guarantees__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

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

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

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

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

    .page-resources-security-guarantees__image {
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-resources-security-guarantees__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    }

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

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

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

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

    .page-resources-security-guarantees__section {
        padding: 40px 0;
    }

    .page-resources-security-guarantees__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources-security-guarantees__text-block {
        flex-direction: column;
        gap: 20px;
    }

    .page-resources-security-guarantees__text-block p {
        min-width: unset;
        font-size: 1em;
    }

    .page-resources-security-guarantees__image {
        min-width: 200px !important; /* Smallest allowed size */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        order: unset;
    }

    .page-resources-security-guarantees__image--left {
        order: unset;
    }

    .page-resources-security-guarantees__content-area,
    .page-resources-security-guarantees__faq-list {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-security-guarantees__faq-question {
        padding: 15px;
        font-size: 1em;
    }

    .page-resources-security-guarantees__faq-question h3 {
        font-size: 1em;
    }

    .page-resources-security-guarantees__faq-answer {
        padding: 0 15px;
    }

    .page-resources-security-guarantees__faq-item.active .page-resources-security-guarantees__faq-answer {
        padding: 15px !important;
    }
}

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

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