/* style/resources.css */

/* Global Page Styles */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #0a0a0a;
}

/* Fixed Header Spacing */
.page-resources__intro-section {
    padding-top: 120px; /* Desktop: Adjust for fixed header */
}

/* Shared Container Styles */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Headings */
.page-resources__heading-primary {
    font-size: 3.2em;
    color: #E3B23C;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.page-resources__heading-secondary {
    font-size: 2.5em;
    color: #E3B23C;
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources__card-title, 
.page-resources__feature-title, 
.page-resources__text-title, 
.page-resources__promo-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.4;
}

/* Text Styles */
.page-resources__text, 
.page-resources__card-description, 
.page-resources__feature-description, 
.page-resources__promo-description, 
.page-resources__list-item {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    text-align: center;
}

.page-resources__text {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__highlight {
    color: #E3B23C;
    font-weight: bold;
}

/* Sections */
.page-resources__intro-section,
.page-resources__guides-section,
.page-resources__reputable-platforms-section,
.page-resources__responsible-gambling-section,
.page-resources__latest-news-section,
.page-resources__promotions-section,
.page-resources__faq-section {
    padding: 60px 0;
    background-color: #0d0d0d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-card,
.page-resources__btn-promo {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-resources__btn-primary {
    background: linear-gradient(135deg, #E3B23C, #FFD700);
    color: #0A2463;
}

.page-resources__btn-primary:hover {
    background: linear-gradient(135deg, #FFD700, #E3B23C);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__btn-secondary {
    background: linear-gradient(135deg, #0A2463, #1A3A70);
    color: #ffffff;
    border: 2px solid #E3B23C;
}

.page-resources__btn-secondary:hover {
    background: linear-gradient(135deg, #1A3A70, #0A2463);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border-color: #ffffff;
}

.page-resources__btn-card,
.page-resources__btn-promo {
    background: linear-gradient(135deg, #E3B23C, #FFD700);
    color: #0A2463;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 15px;
}

.page-resources__btn-card:hover,
.page-resources__btn-promo:hover {
    background: linear-gradient(135deg, #FFD700, #E3B23C);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

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

.page-resources__center-button {
    text-align: center;
    margin-top: 40px;
}

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

/* Cards */
.page-resources__card,
.page-resources__promo-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-resources__card-image,
.page-resources__promo-image {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-resources__card-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-link:hover {
    color: #E3B23C;
    text-decoration: underline;
}

/* Feature List */
.page-resources__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Image Text Block */
.page-resources__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-resources__image-wrapper {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-resources__block-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.page-resources__text-content {
    flex: 2;
    min-width: 300px;
    text-align: left;
}

.page-resources__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.page-resources__list-item {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: left;
}

.page-resources__list-item::before {
    content: '✓';
    color: #E3B23C;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
}

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

.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 15px;
    opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 0 5px 5px;
    color: #f0f0f0;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #ffffff;
}

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

.page-resources__faq-question:active {
    background: rgba(255, 255, 255, 0.15);
}

.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: #E3B23C;
}

.page-resources__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #E3B23C;
    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: 28px;
    height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__heading-primary {
        font-size: 2.8em;
    }
    .page-resources__heading-secondary {
        font-size: 2.2em;
    }
    .page-resources__text,
    .page-resources__card-description,
    .page-resources__feature-description,
    .page-resources__promo-description,
    .page-resources__list-item {
        font-size: 1em;
    }
    .page-resources__card-image,
    .page-resources__promo-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-resources__intro-section {
        padding-top: 100px !important;
    }
    .page-resources__container {
        padding: 30px 15px;
    }
    .page-resources__heading-primary {
        font-size: 2.2em;
        margin-bottom: 20px;
    }
    .page-resources__heading-secondary {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources__card-title,
    .page-resources__feature-title,
    .page-resources__text-title,
    .page-resources__promo-title {
        font-size: 1.2em;
    }
    .page-resources__text,
    .page-resources__card-description,
    .page-resources__feature-description,
    .page-resources__promo-description,
    .page-resources__list-item {
        font-size: 0.95em;
        text-align: left;
    }
    .page-resources__button-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100%;
        padding: 12px 20px;
    }
    .page-resources__grid,
    .page-resources__promo-grid,
    .page-resources__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-resources__card,
    .page-resources__promo-card,
    .page-resources__feature-item {
        padding: 20px;
    }
    .page-resources__card-image,
    .page-resources__promo-image {
        height: 160px;
    }
    .page-resources__image-text-block {
        flex-direction: column;
        gap: 20px;
    }
    .page-resources__image-wrapper,
    .page-resources__text-content {
        min-width: unset;
        width: 100%;
        text-align: center;
    }
    .page-resources__text-content {
        text-align: left;
    }
    .page-resources__list {
        margin-left: 0;
        text-align: left;
    }
    .page-resources__list-item {
        padding-left: 20px;
        text-align: left;
    }
    .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;
    }

    .page-resources img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__intro-section,
    .page-resources__guides-section,
    .page-resources__reputable-platforms-section,
    .page-resources__responsible-gambling-section,
    .page-resources__latest-news-section,
    .page-resources__promotions-section,
    .page-resources__faq-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}

.page-resources img {
    filter: none !important;
}

.page-resources__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-resources__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}