/* style/responsible-gambling.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #FFD700;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --card-bg-color: #ffffff;
    --border-color: #e0e0e0;
    --light-grey-bg: #f1f3f5;
}

.page-responsible-gambling {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-color-dark-bg); /* Default text color for dark body bg */
    background-color: #0a0a0a; /* Inherited from body, for context */
}

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

/* Padding top for fixed header */
.page-responsible-gambling__hero-banner {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    padding-bottom: 60px;
}

.page-responsible-gambling__introduction-section,
.page-responsible-gambling__tools-section,
.page-responsible-gambling__resources-section,
.page-responsible-gambling__blog-section {
    padding: 60px 0;
    background-color: var(--light-grey-bg);
}

.page-responsible-gambling__signs-section,
.page-responsible-gambling__support-section,
.page-responsible-gambling__faq-section {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-responsible-gambling__main-title {
    font-size: 48px;
    color: var(--text-color-dark-bg);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-responsible-gambling__subtitle {
    font-size: 20px;
    color: var(--text-color-dark-bg);
    text-align: center;
    margin-bottom: 40px;
}

.page-responsible-gambling__subtitle a {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-responsible-gambling__subtitle a:hover {
    color: #FFC107;
}

.page-responsible-gambling__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color-light-bg);
}

.page-responsible-gambling__dark-section .page-responsible-gambling__section-title {
    color: var(--text-color-dark-bg);
}

.page-responsible-gambling__card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
    color: var(--text-color-light-bg);
}

.page-responsible-gambling__dark-section.page-responsible-gambling__card {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-responsible-gambling__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-responsible-gambling__text-block a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__text-block a {
    color: var(--secondary-color);
}

.page-responsible-gambling__text-block a:hover {
    text-decoration: underline;
}

.page-responsible-gambling__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-responsible-gambling__list-item {
    margin-bottom: 10px;
    font-size: 17px;
}

.page-responsible-gambling__list-item strong {
    font-weight: bold;
}

.page-responsible-gambling__list-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__list-item a {
    color: var(--secondary-color);
}

.page-responsible-gambling__list-item a:hover {
    text-decoration: underline;
}

.page-responsible-gambling__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.page-responsible-gambling__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

.page-responsible-gambling__cta-button:hover {
    background: #FFC107;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-responsible-gambling__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-responsible-gambling__faq-item.active .page-responsible-gambling__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-light-bg);
}

.page-responsible-gambling__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;
  color: var(--text-color-light-bg);
}

.page-responsible-gambling__dark-section .page-responsible-gambling__faq-question {
    background: #1a3a70; /* Darker shade for contrast */
    border-color: #2b5090;
    color: var(--text-color-dark-bg);
}

.page-responsible-gambling__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__faq-question:hover {
    background: #2b5090;
    border-color: #3c64a0;
}

.page-responsible-gambling__faq-question:active {
  background: #eeeeee;
}

.page-responsible-gambling__dark-section .page-responsible-gambling__faq-question:active {
    background: #3c64a0;
}

.page-responsible-gambling__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-responsible-gambling__faq-question h3 a {
    color: inherit; /* Ensure link color matches h3 */
    text-decoration: none;
}

.page-responsible-gambling__faq-question h3 a:hover {
    text-decoration: underline;
}

.page-responsible-gambling__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-responsible-gambling__dark-section .page-responsible-gambling__faq-toggle {
    color: var(--secondary-color);
}

.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
  color: #333;
}

.page-responsible-gambling__dark-section.page-responsible-gambling__faq-item.active .page-responsible-gambling__faq-toggle {
    color: var(--secondary-color);
}

.page-responsible-gambling__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

.page-responsible-gambling__faq-answer p a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.page-responsible-gambling__faq-answer p a:hover {
    text-decoration: underline;
}

/* Blog Section */
.page-responsible-gambling__blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-responsible-gambling__blog-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text-color-light-bg);
}

.page-responsible-gambling__blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-responsible-gambling__blog-title {
    font-size: 22px;
    font-weight: bold;
    margin: 20px 20px 10px 20px;
    line-height: 1.4;
}

.page-responsible-gambling__blog-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-responsible-gambling__blog-title a:hover {
    text-decoration: underline;
}

.page-responsible-gambling__blog-excerpt {
    font-size: 16px;
    margin: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-responsible-gambling__blog-excerpt a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.page-responsible-gambling__blog-excerpt a:hover {
    text-decoration: underline;
}

.page-responsible-gambling__read-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    text-decoration: none;
    border-radius: 5px;
    margin: 0 20px 20px 20px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-responsible-gambling__read-more:hover {
    background-color: #081d4e;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-responsible-gambling__main-title {
        font-size: 38px;
    }

    .page-responsible-gambling__section-title {
        font-size: 30px;
    }

    .page-responsible-gambling__card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-responsible-gambling__hero-banner {
        padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 40px;
    }

    .page-responsible-gambling__introduction-section,
    .page-responsible-gambling__signs-section,
    .page-responsible-gambling__tools-section,
    .page-responsible-gambling__support-section,
    .page-responsible-gambling__resources-section,
    .page-responsible-gambling__faq-section,
    .page-responsible-gambling__blog-section {
        padding: 40px 0;
    }

    .page-responsible-gambling__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-responsible-gambling__subtitle {
        font-size: 18px;
    }

    .page-responsible-gambling__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .page-responsible-gambling__card {
        padding: 25px;
        margin-bottom: 20px;
    }

    .page-responsible-gambling__text-block,
    .page-responsible-gambling__list-item,
    .page-responsible-gambling__faq-answer p,
    .page-responsible-gambling__blog-excerpt {
        font-size: 16px;
    }

    .page-responsible-gambling__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }

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

    .page-responsible-gambling__blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-responsible-gambling__blog-image {
        height: 180px;
    }

    .page-responsible-gambling__blog-title {
        font-size: 20px;
        margin: 15px;
    }

    .page-responsible-gambling__blog-excerpt {
        margin: 0 15px 15px 15px;
    }

    .page-responsible-gambling__read-more {
        margin: 0 15px 15px 15px;
    }

    .page-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-responsible-gambling__main-title {
        font-size: 28px;
    }

    .page-responsible-gambling__subtitle {
        font-size: 16px;
    }

    .page-responsible-gambling__section-title {
        font-size: 22px;
    }

    .page-responsible-gambling__card {
        padding: 20px;
    }

    .page-responsible-gambling__text-block,
    .page-responsible-gambling__list-item,
    .page-responsible-gambling__faq-answer p,
    .page-responsible-gambling__blog-excerpt {
        font-size: 15px;
    }

    .page-responsible-gambling__blog-title {
        font-size: 18px;
    }
}