/* style/resources.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --button-login-color: #EA7C07;
    --background-light: #FFFFFF;
    --background-dark: #000000;
}

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

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    overflow: hidden;
    padding-bottom: 60px;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color-light);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color-light);
}

.page-resources__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* General Section Styling */
.page-resources__section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-color-dark);
}

.page-resources__section:nth-of-type(even) {
    background-color: #f9f9f9;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.page-resources__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
}

.page-resources__btn-primary:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-resources__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: flex-start;
}

.page-resources__cta-buttons--center {
    justify-content: center;
}

/* Card Styling */
.page-resources__advantages-grid,
.page-resources__strategy-grid,
.page-resources__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__advantage-card,
.page-resources__strategy-card,
.page-resources__news-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__advantage-card:hover,
.page-resources__strategy-card:hover,
.page-resources__news-card:hover {
    transform: translateY(-10px);
}

.page-resources__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin: 20px 15px 10px;
    color: var(--primary-color);
}

.page-resources__card-link {
    text-decoration: none;
    color: inherit;
}

.page-resources__card-link:hover {
    text-decoration: underline;
}

.page-resources__card-description {
    font-size: 0.95em;
    color: #666;
    padding: 0 15px 20px;
    flex-grow: 1;
}

/* Security Guide Section */
.page-resources__security-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.page-resources__security-text {
    flex: 1;
}

.page-resources__security-text h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-resources__security-text ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    padding-left: 0;
}

.page-resources__security-text li {
    margin-bottom: 10px;
    color: var(--text-color-dark);
}

.page-resources__security-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__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__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f5f5f5;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #e0e0e0;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(0deg); /* No rotation for '-' */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-color-dark);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 20px 25px;
}

.page-resources__faq-answer p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }

    .page-resources__hero-description {
        font-size: 1.1em;
    }

    .page-resources__section-title {
        font-size: 2em;
    }

    .page-resources__security-content {
        flex-direction: column;
        text-align: center;
    }

    .page-resources__security-image {
        max-width: 80%;
        margin-top: 30px;
    }

    .page-resources__security-text ul {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 500px;
        padding-bottom: 40px;
    }

    .page-resources__hero-title {
        font-size: 2.2em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-resources__section {
        padding: 60px 0;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }

    .page-resources__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-resources__advantages-grid,
    .page-resources__strategy-grid,
    .page-resources__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__security-image {
        max-width: 100%;
    }

    .page-resources__security-text ul {
        margin-left: 15px;
        padding-left: 0;
    }

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

    .page-resources__faq-answer {
        padding: 0 20px;
    }

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image responsiveness */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__hero-image-wrapper,
    .page-resources__advantage-card,
    .page-resources__strategy-card,
    .page-resources__news-card,
    .page-resources__security-content,
    .page-resources__security-text,
    .page-resources__security-image,
    .page-resources__faq-list,
    .page-resources__faq-item,
    .page-resources__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

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

    .page-resources__section-title {
        font-size: 1.5em;
    }

    .page-resources__card-title {
        font-size: 1.2em;
    }

    .page-resources__faq-question {
        font-size: 1em;
    }
}