/* Base Styles for Resources Page */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: var(--dark-bg-1);
}

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

.page-resources__section {
    padding: 60px 0;
    background-color: var(--dark-bg-1);
}

.page-resources__section:nth-of-type(even) {
    background-color: #1a1a1a; /* Slightly different dark background for contrast */
}

.page-resources__main-title,
.page-resources__section-title {
    color: #FFD700; /* Gold for main titles */
    text-align: center;
    margin-bottom: 20px;
    font-size: 38px;
    font-weight: bold;
}

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

.page-resources h3 {
    color: #FFD700;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-resources p {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 15px;
}

/* Hero Intro Section */
.page-resources__hero-intro-section {
    padding-top: 0; /* Assuming shared.css handles body padding-top for header offset */
    padding-bottom: 80px;
    background: linear-gradient(135deg, #8B0000, #4a0000);
    color: #ffffff;
    text-align: center;
}

.page-resources__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFD700; /* Gold color for H1 */
}

.page-resources__intro-description {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Gold button */
    color: #4a0000; /* Dark text on gold */
    border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
    background-color: #ffd000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

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

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #4a0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

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

.page-resources__btn-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Platform Advantages Section */
.page-resources__platform-advantages {
    background-color: #1a1a1a;
}

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

.page-resources__advantage-card {
    background-color: #2a0000; /* Darker red background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #4a0000;
}

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

.page-resources__advantage-card img {
    width: 100%;
    
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 8px;
}

.page-resources__advantage-card h3 {
    color: #FFD700;
    font-size: 22px;
    margin-bottom: 15px;
}

.page-resources__advantage-card p {
    color: #f0f0f0;
    font-size: 15px;
}

/* Betting Guide Section */
.page-resources__betting-guide {
    background-color: var(--dark-bg-1);
}

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

.page-resources__guide-card {
    background-color: #2a0000;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #4a0000;
}

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

.page-resources__guide-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-resources__guide-card-content {
    padding: 25px;
}

.page-resources__guide-card h3 {
    color: #FFD700;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 0 25px;
}

.page-resources__guide-card p {
    color: #f0f0f0;
    font-size: 15px;
    padding: 0 25px;
    margin-bottom: 20px;
}

.page-resources__guide-card .page-resources__btn-link {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

/* Responsible Gambling Section */
.page-resources__responsible-gambling {
    background-color: #1a1a1a;
}

.page-resources__responsible-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 40px;
}

.page-resources__text-block h3 {
    color: #FFD700;
    font-size: 22px;
    margin-bottom: 10px;
}

.page-resources__text-block p {
    color: #f0f0f0;
    font-size: 16px;
    margin-bottom: 20px;
}

.page-resources__image-block img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: var(--dark-bg-1);
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a0000; /* Darker red for FAQ item background */
  border: 1px solid #4a0000;
}

.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;
  padding: 0 20px;
  opacity: 0;
  color: #f0f0f0;
  background-color: #1a1a1a; /* Slightly lighter dark background for answer */
  border-top: 1px solid #4a0000;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Ensure content fits */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: #8B0000; /* Primary color for question background */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff; /* White text for question */
}

.page-resources__faq-item.active .page-resources__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-resources__faq-question:hover {
  background-color: #a00000; /* Slightly lighter red on hover */
}

.page-resources__faq-question:active {
  background-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: #ffffff;
}

.page-resources__faq-toggle {
  font-size: 28px;
  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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

/* Latest News Section */
.page-resources__latest-news {
    background-color: #1a1a1a;
}

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

.page-resources__news-card {
    background-color: #2a0000;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #4a0000;
}

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

.page-resources__news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-resources__news-card-content {
    padding: 25px;
}

.page-resources__news-card h3 {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 0 25px;
}

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

.page-resources__news-card h3 a:hover {
    color: #ffffff;
}

.page-resources__news-card p {
    color: #f0f0f0;
    font-size: 15px;
    padding: 0 25px;
    margin-bottom: 20px;
}

.page-resources__news-card .page-resources__btn-link {
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.page-resources__cta-section {
    text-align: center;
    margin-top: 50px;
}

/* Universal Image and Button Responsive Styles */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-resources__section,
.page-resources__card,
.page-resources__container,
.page-resources__cta-buttons,
.page-resources__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-resources__cta-button,
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources a[class*="button"],
.page-resources a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 42px;
    }

    .page-resources__section-title {
        font-size: 32px;
    }

    .page-resources__intro-description {
        font-size: 18px;
    }

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

    .page-resources__responsible-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-resources__image-block img {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* HERO Intro Section */
    .page-resources__hero-intro-section {
        padding-top: 0 !important; /* Ensure no double padding if body handles offset */
        padding-bottom: 50px;
    }

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

    .page-resources__intro-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

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

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Section Styles */
    .page-resources__section {
        padding: 40px 0;
    }

    .page-resources__container {
        padding: 15px;
    }

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

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

    .page-resources h3 {
        font-size: 20px;
        margin-top: 25px;
    }

    .page-resources p {
        font-size: 15px;
    }

    /* Platform Advantages Grid */
    .page-resources__advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__advantage-card {
        padding: 25px;
    }

    /* Betting Guide Cards */
    .page-resources__guide-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__guide-card img {
        
    }

    .page-resources__guide-card h3,
    .page-resources__guide-card p {
        padding: 0 15px;
    }

    /* Responsible Gambling Content */
    .page-resources__responsible-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__image-block img {
        max-width: 100%;
    }

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

    .page-resources__faq-question {
        padding: 15px;
    }

    .page-resources__faq-question h3 {
        font-size: 16px;
    }

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

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

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

    .page-resources__news-card img {
        
    }

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

    .page-resources__cta-section {
        margin-top: 40px;
    }

    /* Universal Image Responsive */
    .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__btn-container {
        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;
    }
}