/* style/resources.css */

/* Base Styles for .page-resources */
.page-resources {
    color: #ffffff; /* Light text for dark body background */
    background-color: #000; /* Assuming body is #000, setting it explicitly for content area */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding-top: 0; /* shared already handles body padding-top */
    padding-bottom: 0;
    margin-top: 0;
    width: 100%;
    overflow: hidden;
}

.page-resources__hero-container {
    width: 100%;
    position: relative;
}

.page-resources__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* General Section Styling */
.page-resources__introduction-section,
.page-resources__guides-section,
.page-resources__news-updates-section,
.page-resources__faq-section,
.page-resources__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-resources__security-section {
    padding: 80px 0;
    text-align: center;
    background-color: #007bff; /* Primary brand color for dark section */
    color: #ffffff;
}

.page-resources__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffc107; /* Auxiliary color for titles */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-resources__introduction-section .page-resources__main-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffc107; /* Auxiliary color for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__section-description,
.page-resources__description {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0; /* Slightly off-white for readability on dark background */
}

/* Buttons */
.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-resources__btn-primary {
    background-color: #007bff; /* Main brand color */
    color: #ffffff;
    border: 2px solid #007bff;
}

.page-resources__btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-3px);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #ffc107; /* Auxiliary color for text */
    border: 2px solid #ffc107;
}

.page-resources__btn-secondary:hover {
    background-color: #ffc107;
    color: #000000; /* Dark text for light background */
    transform: translateY(-3px);
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards on dark body */
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in a row have same height */
    display: flex;
    flex-direction: column;
}

.page-resources__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.page-resources__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.page-resources__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card images */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__card-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffc107; /* Auxiliary color for card titles */
    padding: 20px 20px 10px;
    flex-grow: 1; /* Allow title to take available space */
}

.page-resources__card-text {
    font-size: 16px;
    color: #f0f0f0;
    padding: 0 20px 20px;
}

.page-resources__card--dark {
    background-color: rgba(0, 0, 0, 0.3); /* Darker background for cards in dark section */
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.page-resources__card--dark .page-resources__card-title {
    color: #ffffff; /* White title on dark cards */
}
.page-resources__card--dark .page-resources__card-text {
    color: #e0e0e0;
}


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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly visible card background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #007bff; /* Primary color for question background */
    border: 1px solid #0056b3;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #ffffff; /* White text for question */
}

.page-resources__faq-question:hover {
    background: #0056b3;
    border-color: #004085;
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #ffffff; /* White text for h3 in question */
}

.page-resources__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #ffffff; /* White color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect, or just change text */
    color: #ffc107; /* Auxiliary color when active */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    color: #f0f0f0; /* Light text for answer */
    background-color: rgba(0, 0, 0, 0.4); /* Darker background for answer */
    border-radius: 0 0 8px 8px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Use !important and large value for expansion */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-resources__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__section-title {
        font-size: 32px;
    }
    .page-resources__introduction-section .page-resources__main-title {
        font-size: 36px;
    }
    .page-resources__section-description,
    .page-resources__description {
        font-size: 17px;
    }
    .page-resources__cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .page-resources__card-image {
        height: 220px;
    }
    .page-resources__card-title {
        font-size: 22px;
    }
    .page-resources__card-text {
        font-size: 15px;
    }
    .page-resources__faq-question h3 {
        font-size: 17px;
    }
    .page-resources__faq-toggle {
        font-size: 26px;
        width: 30px;
        height: 30px;
    }
    .page-resources__faq-answer p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    /* General Mobile Adaptations */
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__introduction-section,
    .page-resources__guides-section,
    .page-resources__news-updates-section,
    .page-resources__faq-section,
    .page-resources__cta-section,
    .page-resources__security-section {
        padding: 60px 0;
    }

    /* Hero */
    .page-resources__hero-section {
        padding-top: 0 !important; /* Ensure no double padding on mobile if shared applies it */
    }

    /* Titles & Descriptions */
    .page-resources__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-resources__introduction-section .page-resources__main-title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .page-resources__section-description,
    .page-resources__description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Buttons */
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Cards */
    .page-resources__cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__card-image {
        height: 200px;
    }
    .page-resources__card-title {
        font-size: 20px;
        padding: 15px 15px 8px;
    }
    .page-resources__card-text {
        font-size: 14px;
        padding: 0 15px 15px;
    }

    /* FAQ */
    .page-resources__faq-list {
        margin-top: 30px;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
    }
    .page-resources__faq-question h3 {
        font-size: 16px;
    }
    .page-resources__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px !important;
    }
    .page-resources__faq-answer p {
        font-size: 14px;
    }
    
    /* Ensure images in content area are responsive */
    .page-resources img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    /* All containers with images should be constrained */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__cards-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-resources__container for sections */
    }
}

/* No logo-carousel on this page, so no specific logo-item override needed. */

/* Image color filter restriction */
.page-resources img {
    filter: none !important; /* Ensure no CSS filters are applied to images */
}