/* style/resources.css */

/* General Styles for .page-resources */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* body handles the main background */
}

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

.page-resources__section-title {
    font-size: 38px;
    font-weight: bold;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

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

.page-resources__sub-title {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700; /* Gold for sub-titles */
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.page-resources__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #0d0d0d; /* Dark text for gold background */
    border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

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

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #0d0d0d;
    transform: translateY(-2px);
}

.page-resources__btn-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    width: fit-content; /* Adjust width to content */
    min-width: 200px; /* Minimum width for buttons */
}

/* Dark background sections */
.page-resources__dark-section {
    background-color: #8B0000; /* Dark red background */
    padding: 60px 0;
}

.page-resources__dark-section .page-resources__section-title {
    color: #FFD700; /* Gold title on dark red */
}

.page-resources__dark-section .page-resources__section-description,
.page-resources__dark-section p,
.page-resources__dark-section li {
    color: #ffffff; /* White text on dark red */
}

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

/* Intro Section */
.page-resources__intro-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.9), rgba(40, 40, 40, 0.9));
}

.page-resources__main-title {
    font-size: 48px;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources__description {
    font-size: 20px;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

.page-resources__banner-image {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Guides Section */
.page-resources__guides-section {
    padding: 60px 0;
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark red */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-resources__card-image {
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-resources__card-title {
    font-size: 22px;
    font-weight: bold;
    color: #FFD700; /* Gold title */
    margin-bottom: 10px;
}

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

.page-resources__card-title a:hover {
    color: #e6c200;
}

.page-resources__card-text {
    font-size: 15px;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__card-link {
    display: inline-block;
    background-color: #FFD700;
    color: #0d0d0d;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push to bottom */
}

.page-resources__card-link:hover {
    background-color: #e6c200;
}

/* Tips Section */
.page-resources__tips-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

.page-resources__tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources__tip-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-resources__tip-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.12);
}

.page-resources__tip-title {
    font-size: 20px;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-resources__tip-text {
    font-size: 16px;
    color: #e0e0e0;
}

/* Responsible Gambling Section */
.page-resources__responsible-section {
    padding: 60px 0;
}

.page-resources__responsible-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

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

.page-resources__responsible-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-resources__responsible-text li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #ffffff;
}

.page-resources__responsible-text strong {
    color: #FFD700;
}

.page-resources__responsible-image {
    flex: 1;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* News Section */
.page-resources__news-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

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

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

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

.page-resources__news-image {
    width: 100%;
    height: 200px; /* Fixed height for news images */
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__news-card h3,
.page-resources__news-card p,
.page-resources__news-card a {
    padding: 0 20px;
}

.page-resources__news-title {
    font-size: 20px;
    font-weight: bold;
    color: #FFD700;
    margin-top: 20px;
    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: #e6c200;
}

.page-resources__news-excerpt {
    font-size: 15px;
    color: #e0e0e0;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-resources__news-link {
    display: inline-block;
    background-color: #FFD700;
    color: #0d0d0d;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
    margin-top: auto;
    margin-bottom: 20px;
    align-self: flex-start;
    margin-left: 20px;
}

.page-resources__news-link:hover {
    background-color: #e6c200;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 0;
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for items */
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.1); /* Slightly lighter background for question */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.page-resources__faq-toggle {
    font-size: 28px; /* Larger for better visibility on dark background */
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold 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 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Larger touch target */
    height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #ffffff; /* White when active */
    transform: rotate(45deg); /* 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.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: #f0f0f0; /* Light text for answer */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0 0 5px 5px;
}

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

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

    .page-resources__main-title {
        font-size: 40px;
    }

    .page-resources__description {
        font-size: 18px;
    }

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

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }

    .page-resources__responsible-content {
        flex-direction: column;
    }

    .page-resources__responsible-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    /* Intro Section */
    .page-resources__intro-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .page-resources__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-resources__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-resources__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-resources__description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Buttons and Button Containers */
    .page-resources__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !important;
        overflow: hidden !important;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important;
        font-size: 15px !important;
    }
    
    .page-resources__btn-center {
        min-width: unset;
        width: 100%;
    }

    /* General Images and Containers */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__container,
    .page-resources__card,
    .page-resources__section,
    .page-resources__box {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Guides Section */
    .page-resources__guide-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__card {
        padding: 20px;
    }

    .page-resources__card-title {
        font-size: 18px;
    }

    .page-resources__card-text {
        font-size: 14px;
    }

    /* Tips Section */
    .page-resources__tips-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__tip-item {
        padding: 20px;
    }

    .page-resources__tip-title {
        font-size: 18px;
    }

    .page-resources__tip-text {
        font-size: 14px;
    }

    /* Responsible Gambling Section */
    .page-resources__responsible-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-resources__responsible-image {
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* News Section */
    .page-resources__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__news-card {
        padding-bottom: 10px;
    }

    .page-resources__news-image {
        height: 180px;
    }

    .page-resources__news-title {
        font-size: 18px;
    }

    .page-resources__news-excerpt {
        font-size: 14px;
    }

    .page-resources__news-link {
        margin-bottom: 15px;
    }

    /* FAQ Section */
    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-resources__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }

    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }

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

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