/* style/resources.css */

:root {
    --primary-color: #1A2B4C;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
}

.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.page-resources__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources__light-bg {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

.page-resources__section-title {
    font-size: 36px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section (dark-bg or light-bg) */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.page-resources__hero-section {
    position: relative;
    width: 100%;
    padding: 100px 0 60px 0; /* Adjusted padding to accommodate header offset */
    padding-top: var(--header-offset, 120px);
    text-align: center;
    overflow: hidden;
}

.page-resources__hero-section .page-resources__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.page-resources__main-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 20px;
    max-width: 800px;
    margin-bottom: 40px;
    color: var(--text-light);
}

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

.page-resources__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-resources__cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button--large {
    padding: 18px 50px;
    font-size: 20px;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.page-resources__intro-section, 
.page-resources__betting-guide-section, 
.page-resources__game-strategy-section, 
.page-resources__responsible-gaming-section, 
.page-resources__why-choose-section, 
.page-resources__faq-section,
.page-resources__final-cta-section {
    padding: 80px 0;
    overflow: hidden;
}

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

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

.page-resources__text-content {
    flex: 1;
}

.page-resources__text-content h3 {
    font-size: 28px;
    color: inherit;
    margin-bottom: 20px;
}

.page-resources__text-content p {
    margin-bottom: 15px;
    font-size: 16px;
}

.page-resources__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-resources__list {
    list-style: disc inside;
    margin: 20px 0;
    padding-left: 20px;
    font-size: 16px;
}

.page-resources__list li {
    margin-bottom: 10px;
    color: inherit;
}

.page-resources__button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-resources__button:hover {
    background-color: #e6c200;
    transform: translateY(-1px);
}

.page-resources__faq-intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 18px;
    color: var(--text-dark);
}

/* FAQ styles */
.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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: #ffffff;
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-resources__faq-question:hover {
  background: var(--bg-light);
  border-color: #d0d0d0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-resources__faq-question:active {
  background: #eeeeee;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.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: var(--primary-color);
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-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: 32px;
  height: 32px;
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
}

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

.page-resources__final-cta-section {
    text-align: center;
    padding-bottom: 100px;
}

.page-resources__final-cta-description {
    font-size: 20px;
    max-width: 900px;
    margin: 20px auto 40px auto;
    color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 40px;
    }
    .page-resources__hero-description {
        font-size: 18px;
    }
    .page-resources__section-title {
        font-size: 32px;
    }
    .page-resources__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-resources__content-wrapper--reverse {
        flex-direction: column;
    }
    .page-resources__text-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources__hero-section .page-resources__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-resources__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-resources__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-resources__cta-button, .page-resources__cta-button--large {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

    .page-resources__intro-section, 
    .page-resources__betting-guide-section, 
    .page-resources__game-strategy-section, 
    .page-resources__responsible-gaming-section, 
    .page-resources__why-choose-section, 
    .page-resources__faq-section,
    .page-resources__final-cta-section {
        padding: 60px 0;
    }
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__section-title {
        font-size: 28px;
        margin-bottom: 30px;
        padding-top: 40px;
    }
    .page-resources__text-content p, .page-resources__list li {
        font-size: 15px;
    }
    .page-resources__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources__button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 20px !important;
        font-size: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ mobile */
    .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;
    }
    .page-resources__faq-intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-resources__final-cta-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .page-resources__main-title {
        font-size: 28px;
    }
    .page-resources__section-title {
        font-size: 24px;
    }
    .page-resources__cta-button, .page-resources__cta-button--large {
        font-size: 15px !important;
        padding: 10px 15px !important;
    }
    .page-resources__faq-question h3 {
        font-size: 15px;
    }
}