/* style/resources-online-gambling-safety-guide.css */

/* Base styles for the page content */
.page-resources-online-gambling-safety-guide {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: var(--primary-color, #0A2239); /* Ensure dark background */
}

/* Section base styles */
.page-resources-online-gambling-safety-guide__section {
    padding: 60px 20px;
    text-align: center;
}

.page-resources-online-gambling-safety-guide__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.page-resources-online-gambling-safety-guide__hero-section {
    position: relative;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #0A2239, #1a3c5d); /* Dark blue gradient */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources-online-gambling-safety-guide__hero-content {
    max-width: 800px;
    margin-bottom: 40px;
    z-index: 1;
}

.page-resources-online-gambling-safety-guide__hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for title for contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources-online-gambling-safety-guide__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-resources-online-gambling-safety-guide__hero-image {
    width: 100%;
    max-width: 1200px; /* Limit image width */
    margin-top: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.page-resources-online-gambling-safety-guide__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* General Section Titles */
.page-resources-online-gambling-safety-guide__section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #FFD700; /* Gold for main titles */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-resources-online-gambling-safety-guide__text-block {
    font-size: 17px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit from section for dark/light bg */
}

/* Background color variants */
.page-resources-online-gambling-safety-guide__dark-bg {
    background-color: #0A2239;
    color: #f0f0f0;
}

.page-resources-online-gambling-safety-guide__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-resources-online-gambling-safety-guide__light-bg .page-resources-online-gambling-safety-guide__section-title {
    color: #0A2239; /* Dark blue for titles on light background */
}

.page-resources-online-gambling-safety-guide__list {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-resources-online-gambling-safety-guide__list-item {
    font-size: 17px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.page-resources-online-gambling-safety-guide__list-item::before {
    content: '✓';
    color: #FFD700;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Grid layout for cards */
.page-resources-online-gambling-safety-guide__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-resources-online-gambling-safety-guide__grid--2-col {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-resources-online-gambling-safety-guide__grid--3-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources-online-gambling-safety-guide__card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: inherit; /* Inherit from section for dark/light bg */
}

.page-resources-online-gambling-safety-guide__light-bg .page-resources-online-gambling-safety-guide__card {
    background-color: #f9f9f9; /* Light background for card on light section */
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-resources-online-gambling-safety-guide__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-resources-online-gambling-safety-guide__card-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD700; /* Gold for card titles on dark background */
}

.page-resources-online-gambling-safety-guide__light-bg .page-resources-online-gambling-safety-guide__card-title {
    color: #0A2239; /* Dark blue for card titles on light background */
}

.page-resources-online-gambling-safety-guide__card-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
}

.page-resources-online-gambling-safety-guide__image-full-width {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-resources-online-gambling-safety-guide__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-resources-online-gambling-safety-guide__btn-primary,
.page-resources-online-gambling-safety-guide__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-resources-online-gambling-safety-guide__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #0A2239; /* Dark blue text */
    border: 2px solid #FFD700;
}

.page-resources-online-gambling-safety-guide__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}

.page-resources-online-gambling-safety-guide__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-resources-online-gambling-safety-guide__dark-bg .page-resources-online-gambling-safety-guide__btn-secondary {
    color: #FFD700;
    border-color: #FFD700;
}

.page-resources-online-gambling-safety-guide__light-bg .page-resources-online-gambling-safety-guide__btn-secondary {
    color: #0A2239; /* Dark blue text on light background */
    border-color: #0A2239;
}

.page-resources-online-gambling-safety-guide__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A2239;
    transform: translateY(-2px);
}

/* FAQ Section */
.page-resources-online-gambling-safety-guide__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

/* FAQ item styles as provided in the prompt */
.page-resources-online-gambling-safety-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources-online-gambling-safety-guide__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;
  color: #333333; /* Default for light background */
}

.page-resources-online-gambling-safety-guide__faq-item.active .page-resources-online-gambling-safety-guide__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

.page-resources-online-gambling-safety-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-online-gambling-safety-guide__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-online-gambling-safety-guide__faq-question:active {
  background: #eeeeee;
}

.page-resources-online-gambling-safety-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #0A2239; /* Dark blue for FAQ question titles */
}

.page-resources-online-gambling-safety-guide__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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-online-gambling-safety-guide__faq-item.active .page-resources-online-gambling-safety-guide__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Visual cue for expanded */
}

/* Conclusion Section */
.page-resources-online-gambling-safety-guide__conclusion {
    padding-bottom: 80px;
}

/* Responsive design for images and buttons */
.page-resources-online-gambling-safety-guide img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
    .page-resources-online-gambling-safety-guide__hero-title {
        font-size: 40px;
    }
    .page-resources-online-gambling-safety-guide__section-title {
        font-size: 30px;
    }
    .page-resources-online-gambling-safety-guide__btn-primary,
    .page-resources-online-gambling-safety-guide__btn-secondary {
        font-size: 16px;
        padding: 12px 25px;
    }
}

@media (max-width: 768px) {
    .page-resources-online-gambling-safety-guide {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources-online-gambling-safety-guide__section {
        padding: 40px 15px;
    }
    .page-resources-online-gambling-safety-guide__container {
        padding: 0 10px;
    }

    .page-resources-online-gambling-safety-guide__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-resources-online-gambling-safety-guide__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-resources-online-gambling-safety-guide__hero-content {
        margin-bottom: 30px;
    }
    .page-resources-online-gambling-safety-guide__hero-section {
        padding-bottom: 40px;
    }

    .page-resources-online-gambling-safety-guide__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-resources-online-gambling-safety-guide__text-block {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-resources-online-gambling-safety-guide__list-item {
        font-size: 15px;
    }

    .page-resources-online-gambling-safety-guide__grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }
    .page-resources-online-gambling-safety-guide__grid--2-col,
    .page-resources-online-gambling-safety-guide__grid--3-col {
        grid-template-columns: 1fr;
    }
    .page-resources-online-gambling-safety-guide__card {
        padding: 20px;
    }
    .page-resources-online-gambling-safety-guide__card-title {
        font-size: 20px;
    }

    /* Mobile image responsiveness */
    .page-resources-online-gambling-safety-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-online-gambling-safety-guide__section,
    .page-resources-online-gambling-safety-guide__card,
    .page-resources-online-gambling-safety-guide__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile button responsiveness */
    .page-resources-online-gambling-safety-guide__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-resources-online-gambling-safety-guide__btn-primary,
    .page-resources-online-gambling-safety-guide__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile */
    .page-resources-online-gambling-safety-guide__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources-online-gambling-safety-guide__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-resources-online-gambling-safety-guide__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-resources-online-gambling-safety-guide__faq-answer {
        padding: 0 15px;
    }
    .page-resources-online-gambling-safety-guide__faq-item.active .page-resources-online-gambling-safety-guide__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure link colors on dark background are visible */
.page-resources-online-gambling-safety-guide__dark-bg a {
    color: #FFD700; /* Gold links on dark background */
    text-decoration: underline;
}
.page-resources-online-gambling-safety-guide__dark-bg a:hover {
    color: #e6c200;
}

/* Ensure link colors on light background are visible */
.page-resources-online-gambling-safety-guide__light-bg a {
    color: #0A2239; /* Dark blue links on light background */
    text-decoration: underline;
}
.page-resources-online-gambling-safety-guide__light-bg a:hover {
    color: #1a3c5d;
}

/* Specific FAQ link color for readability */
.page-resources-online-gambling-safety-guide__faq-answer a {
    color: #0A2239; /* Dark blue links in FAQ answer (which has light background) */
}
.page-resources-online-gambling-safety-guide__faq-answer a:hover {
    color: #1a3c5d;
}