/* style/resources.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #000080; /* Dark Blue */
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #000000; /* Body background from shared.css */
    --card-background: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
}

.page-resources {
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--background-dark);
    padding-top: 100px; /* Adjust for fixed header on desktop */
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: 80px; /* Adjust for fixed header on mobile */
        font-size: 16px;
        line-height: 1.6;
    }
}

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

.page-resources__section-title {
    font-size: 3em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .page-resources__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
    color: var(--text-light);
    padding-top: 120px; /* Ensure content clears fixed header */
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px;
        padding-top: 100px; /* Adjust for fixed header on mobile */
    }
}

.page-resources__main-title {
    font-size: 3.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .page-resources__main-title {
        font-size: 2.5em;
    }
}

.page-resources__description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .page-resources__description {
        font-size: 1em;
        margin-bottom: 30px;
    }
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.1em;
    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;
    text-align: center;
    max-width: 100%; /* Responsive */
    box-sizing: border-box; /* Responsive */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

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

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

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

@media (max-width: 768px) {
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__cta-button {
        width: 100%;
        padding: 12px 25px;
        font-size: 1em;
    }
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 80px 20px;
    background-color: var(--background-dark);
}

@media (max-width: 768px) {
    .page-resources__faq-section {
        padding: 50px 15px;
    }
}

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--secondary-color);
    color: var(--text-light);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    border-radius: 8px;
}

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

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--primary-color);
}

.page-resources__faq-toggle {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    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: 30px;
    height: 30px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
    color: var(--text-light);
}

.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: var(--text-light);
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 8px 8px;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

.page-resources__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .page-resources__faq-question {
        padding: 15px 20px;
        flex-wrap: wrap;
    }
    .page-resources__faq-question h3 {
        font-size: 1em;
        width: calc(100% - 40px);
    }
    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 1.8em;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px !important;
    }
}

/* Brand Section */
.page-resources__brand-section {
    padding: 80px 20px;
    background-color: var(--secondary-color);
    color: var(--text-light);
}

@media (max-width: 768px) {
    .page-resources__brand-section {
        padding: 50px 15px;
    }
}

.page-resources__brand-intro-text {
    font-size: 1.2em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .page-resources__brand-intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
}

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

.page-resources__brand-item {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 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.4);
}

.page-resources__brand-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__brand-item-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__brand-item p {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .page-resources__brand-item {
        padding: 20px;
    }
    .page-resources__brand-image {
        max-width: 200px;
    }
    .page-resources__brand-item-title {
        font-size: 1.3em;
    }
}

/* Blog Section */
.page-resources__blog-section {
    padding: 80px 20px;
    background-color: var(--background-dark);
}

@media (max-width: 768px) {
    .page-resources__blog-section {
        padding: 50px 15px;
    }
}

.page-resources__blog-intro-text {
    font-size: 1.2em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    line-height: 1.7;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .page-resources__blog-intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
}

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

.page-resources__blog-item {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-resources__blog-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.page-resources__blog-item-content {
    padding: 25px;
}

.page-resources__blog-item-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.4;
}

.page-resources__blog-item-excerpt {
    font-size: 0.95em;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-resources__blog-item-date {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    display: block;
    text-align: right;
}

.page-resources__blog-cta {
    margin-top: 50px;
}

@media (max-width: 768px) {
    .page-resources__blog-item-image {
        height: 180px;
    }
    .page-resources__blog-item-content {
        padding: 20px;
    }
    .page-resources__blog-item-title {
        font-size: 1.2em;
    }
    .page-resources__blog-item-excerpt {
        font-size: 0.9em;
    }
    .page-resources__blog-item-date {
        font-size: 0.8em;
    }
}

/* Responsive images */
.page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__container,
    .page-resources__hero-section,
    .page-resources__faq-section,
    .page-resources__brand-section,
    .page-resources__blog-section,
    .page-resources__brand-item,
    .page-resources__blog-item,
    .page-resources__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    .page-resources__cta-button {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}