/* style/resources.css */

.page-resources {
    color: #f0f0f0; /* Light text for dark body background */
    background-color: #000; /* Assuming body background is black */
}

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

/* Hero Section */
.page-resources__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset here if body doesn't have it */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Brand colors for hero background */
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

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

/* General Section Styling */
.page-resources__section {
    padding: 80px 0;
    background-color: #000;
    color: #f0f0f0;
}

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

.page-resources__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
}

.page-resources__section-description {
    font-size: 16px;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 50px auto;
    text-align: center;
    color: #cccccc;
}

/* Grid Layouts */
.page-resources__grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources__grid-2-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

/* Card Styling */
.page-resources__card, .page-resources__promo-card, .page-resources__info-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #f0f0f0;
}

.page-resources__card:hover, .page-resources__promo-card:hover, .page-resources__info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image, .page-resources__promo-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent card images */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-resources__card-image img, .page-resources__promo-image img, .page-resources__info-icon img, .page-resources__news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-resources__card-title, .page-resources__promo-title, .page-resources__info-title {
    font-size: 22px;
    font-weight: 600;
    color: #FFD700;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-resources__card p, .page-resources__promo-content p, .page-resources__info-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #cccccc;
    flex-grow: 1;
}

.page-resources__card-link, .page-resources__info-link {
    display: inline-block;
    margin-top: 15px;
    color: #FFD700;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-resources__card-link:hover, .page-resources__info-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Promotion Specifics */
.page-resources__promo-card {
    flex-direction: row;
    align-items: center;
    padding: 20px;
}

.page-resources__promo-image {
    flex-shrink: 0;
    width: 180px;
    height: 150px;
    margin-right: 25px;
    margin-bottom: 0;
}

.page-resources__promo-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-resources__promo-content .page-resources__btn-primary {
    align-self: flex-start;
    margin-top: 15px;
}

/* News Updates */
.page-resources__news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.page-resources__news-item {
    display: flex;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.page-resources__news-image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    overflow: hidden;
}

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

.page-resources__news-title {
    font-size: 24px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-resources__news-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__news-title a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.page-resources__news-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #cccccc;
    margin-bottom: 15px;
}

.page-resources__news-date {
    font-size: 14px;
    color: #8B0000;
    font-weight: 500;
}

/* Security & Support */
.page-resources__info-card {
    text-align: center;
    padding: 30px;
}

.page-resources__info-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-resources__info-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

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

.page-resources__faq-question:hover {
    background: #e6c200;
    border-color: #6a0000;
}

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

.page-resources__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #8B0000;
    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: #000000;
    transform: rotate(45deg);
}

.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;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 8px 8px;
    color: #cccccc;
}

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

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

.page-resources__faq-answer a {
    color: #FFD700;
    text-decoration: none;
}

.page-resources__faq-answer a:hover {
    text-decoration: underline;
}

/* Download App Section */
.page-resources__download-app {
    background-color: #000;
    padding: 80px 0;
    text-align: center;
}

.page-resources__download-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-resources__download-content {
    flex: 1;
    text-align: left;
}

.page-resources__download-content .page-resources__section-title {
    text-align: left;
}

.page-resources__download-content .page-resources__section-description {
    text-align: left;
    margin-bottom: 30px;
    max-width: none;
}

.page-resources__download-buttons {
    display: flex;
    gap: 20px;
}

.page-resources__download-image {
    flex-shrink: 0;
    width: 400px;
    height: 300px;
    overflow: hidden;
}

.page-resources__download-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Buttons */
.page-resources__btn-primary, .page-resources__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    word-wrap: normal;
    box-sizing: border-box;
    max-width: 100%;
}

.page-resources__btn-primary {
    background-color: #FFD700;
    color: #000000;
    border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #000000;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #000000;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 42px;
    }
    .page-resources__section-title {
        font-size: 32px;
    }
    .page-resources__grid-3-col, .page-resources__grid-2-col {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    .page-resources__promo-card {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__promo-image {
        margin: 0 auto 20px auto;
    }
    .page-resources__promo-content .page-resources__btn-primary {
        align-self: center;
    }
    .page-resources__news-image {
        width: 250px;
        height: 180px;
    }
    .page-resources__news-title {
        font-size: 20px;
    }
    .page-resources__download-flex {
        flex-direction: column;
        text-align: center;
    }
    .page-resources__download-content {
        text-align: center;
    }
    .page-resources__download-content .page-resources__section-title,
    .page-resources__download-content .page-resources__section-description {
        text-align: center;
    }
    .page-resources__download-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }
    .page-resources__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    .page-resources__hero-cta {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-resources__btn-primary, .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-resources__section {
        padding: 50px 0;
    }
    .page-resources__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-resources__section-description {
        font-size: 15px;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__grid-3-col, .page-resources__grid-2-col {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-resources__card, .page-resources__promo-card, .page-resources__info-card {
        padding: 20px;
    }
    .page-resources__card-image, .page-resources__promo-image {
        height: 180px;
        margin-bottom: 15px;
    }
    .page-resources__card-title, .page-resources__promo-title, .page-resources__info-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    .page-resources__card p, .page-resources__promo-content p, .page-resources__info-card p {
        font-size: 14px;
    }
    .page-resources__promo-image {
        width: 150px;
        height: 120px;
    }

    .page-resources__news-item {
        flex-direction: column;
    }
    .page-resources__news-image {
        width: 100%;
        height: 200px;
    }
    .page-resources__news-content {
        padding: 20px;
    }
    .page-resources__news-title {
        font-size: 18px;
    }
    .page-resources__news-content p {
        font-size: 14px;
    }

    .page-resources__info-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    .page-resources__info-icon img {
        width: 60%;
        height: 60%;
    }

    .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;
    }

    .page-resources__download-flex {
        gap: 30px;
    }
    .page-resources__download-image {
        width: 100%;
        height: 250px;
    }
    .page-resources__download-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__cta-buttons,
    .page-resources__download-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__cta-buttons {
        flex-wrap: wrap !important;
        gap: 15px;
    }
}