/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f8f8f8; /* Light background for the page content */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-resources__section-title {
    font-size: 36px;
    color: #1E90FF; /* Auxiliary color for main titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-resources__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700; /* Gold accent */
    border-radius: 2px;
}

.page-resources__section-description {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
    font-size: 18px;
    color: #555555;
}

/* Hero Section */
.page-resources__hero-section {
    padding: 80px 20px 60px 20px;
    background: linear-gradient(135deg, #1E90FF, #0056b3); /* Blue gradient background */
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 215, 0, 0.1); /* Gold sparkle effect */
    border-radius: 50%;
    animation: sparkle 10s infinite linear;
}

.page-resources__hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 215, 0, 0.15); /* Gold sparkle effect */
    border-radius: 50%;
    animation: sparkle 12s infinite reverse linear;
}

@keyframes sparkle {
    0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    50% { transform: translate(100px, 50px) scale(1.2); opacity: 0.6; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
}


.page-resources__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for H1 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #1E90FF; /* Blue text for gold background */
}

.page-resources__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__btn-secondary {
    background-color: #1E90FF; /* Blue */
    color: #ffffff; /* White text for blue background */
    border: 2px solid #FFD700; /* Gold border */
}

.page-resources__btn-secondary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 20px;
    background-color: #ffffff;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #FFD700; /* Gold when active */
    transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.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.3s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9f9f9;
    border-top: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

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

.page-resources__faq-answer p {
    margin: 0;
    color: #555555;
    font-size: 16px;
}

/* Brand Section */
.page-resources__brand-section {
    padding: 80px 20px;
    background-color: #1E90FF; /* Blue background */
    color: #ffffff;
}

.page-resources__brand-section .page-resources__section-title {
    color: #FFD700; /* Gold title on blue background */
}

.page-resources__brand-section .page-resources__section-title::after {
    background-color: #ffffff; /* White line for contrast */
}

.page-resources__brand-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__brand-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__brand-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources__brand-item h3 {
    font-size: 24px;
    color: #FFD700; /* Gold for brand item titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__brand-item p {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 10px;
}


/* Blog Section */
.page-resources__blog-section {
    padding: 60px 20px;
    background-color: #f8f8f8;
}

.page-resources__blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__blog-item {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-resources__blog-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-resources__blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__blog-item-title {
    font-size: 20px;
    font-weight: bold;
    color: #1E90FF; /* Blue for blog titles */
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-resources__blog-item-excerpt {
    font-size: 15px;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows excerpt to take available space */
}

.page-resources__blog-item-date {
    font-size: 14px;
    color: #888888;
    text-align: right;
    display: block;
}

.page-resources__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* Global image styles (must meet min size, no small icons) */
.page-resources img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space nicely */
}

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

    .page-resources__section-title {
        font-size: 32px;
    }

    .page-resources__brand-content,
    .page-resources__blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}