/* style/resources.css */

:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1A1A1A; /* Dark Grey */
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-dark: #121212;
    --card-background: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.15);
}

.page-resources {
    color: var(--text-color-light); /* Light text for dark body background */
    background-color: var(--background-dark);
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
    padding-top: 120px; /* Desktop: Adjust for fixed header */
}

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

.page-resources__section {
    padding: 60px 0;
    position: relative;
}

.page-resources__section--overview {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.page-resources__section--getting-started {
    background-color: #1a1a1a;
}

.page-resources__section--betting-types {
    background-color: var(--background-dark);
}

.page-resources__section--promotions {
    background-color: var(--secondary-color);
}

.page-resources__section--support {
    background-color: #1a1a1a;
}

.page-resources__section--faq {
    background-color: var(--background-dark);
}

.page-resources__hero-section {
    background: linear-gradient(135deg, #1A1A1A, #0a0a0a);
    padding: 80px 0;
    text-align: center;
    color: var(--text-color-light);
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.page-resources__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-resources__cta-button:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.page-resources__cta-button--secondary {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.page-resources__cta-button--secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    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: var(--primary-color);
    border-radius: 2px;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: -20px auto 50px;
    color: rgba(255, 255, 255, 0.8);
}

.page-resources__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-resources__content-grid--reverse {
    flex-direction: row-reverse;
}

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

.page-resources__content-text p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.page-resources__image-wrapper {
    flex: 1;
    text-align: center;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources__link-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__link-button:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

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

.page-resources__step-item {
    background: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-resources__step-item:hover {
    transform: translateY(-5px);
}

.page-resources__step-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

.page-resources__step-item p {
    color: rgba(255, 255, 255, 0.7);
}

.page-resources__link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources__link:hover {
    color: #ffd94f;
    text-decoration: underline;
}

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

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

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

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

.page-resources__card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    padding: 20px 20px 10px;
}

.page-resources__card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-resources__card-text {
    padding: 0 20px 20px;
    color: rgba(255, 255, 255, 0.7);
}

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

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

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

.page-resources__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-resources__promo-title {
    font-size: 1.4em;
    color: var(--primary-color);
    padding: 20px 20px 10px;
}

.page-resources__promo-text {
    padding: 0 20px 20px;
    color: rgba(255, 255, 255, 0.7);
}

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

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--card-background);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    position: relative;
}

.page-resources__faq-question:hover {
    background: rgba(255, 255, 255, 0.12);
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color-light);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources__faq-toggle {
    font-size: 24px;
    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; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: var(--primary-color);
    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.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid var(--border-color);
}

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

.page-resources__faq-answer p {
    margin: 0;
    padding: 0;
}

.page-resources__link--download {
    margin-top: 15px;
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__link--download:hover {
    background-color: darken(var(--primary-color), 10%);
}

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

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

    .page-resources__section-title {
        font-size: 2em;
    }

    .page-resources__content-grid {
        flex-direction: column;
    }

    .page-resources__content-grid--reverse {
        flex-direction: column;
    }

    .page-resources__image-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        padding-top: 100px !important; /* Mobile: Adjust for fixed header */
        font-size: 15px;
    }

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

    .page-resources__hero-section {
        padding: 60px 0;
    }

    .page-resources__hero-title {
        font-size: 2.2em;
    }

    .page-resources__hero-description {
        font-size: 1em;
    }

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

    .page-resources__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 25px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources__section {
        padding: 40px 0;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

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

    .page-resources__steps-grid,
    .page-resources__cards-grid,
    .page-resources__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__step-item,
    .page-resources__card,
    .page-resources__promo-card {
        padding: 20px;
    }

    .page-resources__step-icon {
        width: 60px;
        height: 60px;
    }

    .page-resources__step-title {
        font-size: 1.3em;
    }

    .page-resources__card-title,
    .page-resources__promo-title {
        font-size: 1.2em;
    }
    
    .page-resources img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__content-grid,
    .page-resources__content-text,
    .page-resources__image-wrapper,
    .page-resources__steps-grid,
    .page-resources__promo-grid,
    .page-resources__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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