/* style/resources-tip88-safety-responsible-gambling.css */

:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-color-light: #f8f9fa;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
}

.page-resources-tip88-safety-responsible-gambling {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: var(--background-color-light); /* Default light background */
}

.page-resources-tip88-safety-responsible-gambling__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color-light);
    overflow: hidden;
}

.page-resources-tip88-safety-responsible-gambling__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.page-resources-tip88-safety-responsible-gambling__hero-image-wrapper {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-tip88-safety-responsible-gambling__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-resources-tip88-safety-responsible-gambling__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-resources-tip88-safety-responsible-gambling__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

.page-resources-tip88-safety-responsible-gambling__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-resources-tip88-safety-responsible-gambling__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-color-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-resources-tip88-safety-responsible-gambling__cta-button:hover {
    background: #ffdb80; /* Lighter secondary color */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-tip88-safety-responsible-gambling__cta-button--small {
    padding: 10px 25px;
    font-size: 1em;
    margin-top: 15px;
}

.page-resources-tip88-safety-responsible-gambling__section {
    padding: 60px 20px;
    text-align: center;
}

.page-resources-tip88-safety-responsible-gambling__section:nth-of-type(even) {
    background-color: var(--card-bg);
}

.page-resources-tip88-safety-responsible-gambling__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-resources-tip88-safety-responsible-gambling__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-resources-tip88-safety-responsible-gambling__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.page-resources-tip88-safety-responsible-gambling__sub-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-resources-tip88-safety-responsible-gambling__text-block {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: var(--text-color-dark);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-tip88-safety-responsible-gambling__feature-grid,
.page-resources-tip88-safety-responsible-gambling__security-grid,
.page-resources-tip88-safety-responsible-gambling__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources-tip88-safety-responsible-gambling__feature-card,
.page-resources-tip88-safety-responsible-gambling__security-item,
.page-resources-tip88-safety-responsible-gambling__tip-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-resources-tip88-safety-responsible-gambling__feature-card:hover,
.page-resources-tip88-safety-responsible-gambling__security-item:hover,
.page-resources-tip88-safety-responsible-gambling__tip-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-resources-tip88-safety-responsible-gambling__feature-image,
.page-resources-tip88-safety-responsible-gambling__security-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources-tip88-safety-responsible-gambling__feature-title,
.page-resources-tip88-safety-responsible-gambling__security-title,
.page-resources-tip88-safety-responsible-gambling__tip-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources-tip88-safety-responsible-gambling__feature-description,
.page-resources-tip88-safety-responsible-gambling__security-description,
.page-resources-tip88-safety-responsible-gambling__tip-description {
    font-size: 1em;
    color: #555;
}

.page-resources-tip88-safety-responsible-gambling__content-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-resources-tip88-safety-responsible-gambling__content-row--reverse {
    flex-direction: row-reverse;
}

.page-resources-tip88-safety-responsible-gambling__content-text {
    flex: 1;
}

.page-resources-tip88-safety-responsible-gambling__content-image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-resources-tip88-safety-responsible-gambling__content-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-resources-tip88-safety-responsible-gambling__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-resources-tip88-safety-responsible-gambling__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #444;
}

.page-resources-tip88-safety-responsible-gambling__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2em;
    top: -2px;
}

.page-resources-tip88-safety-responsible-gambling__dark-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-resources-tip88-safety-responsible-gambling__dark-section .page-resources-tip88-safety-responsible-gambling__section-title,
.page-resources-tip88-safety-responsible-gambling__dark-section .page-resources-tip88-safety-responsible-gambling__sub-title {
    color: var(--secondary-color);
}

.page-resources-tip88-safety-responsible-gambling__dark-section .page-resources-tip88-safety-responsible-gambling__section-title::after {
    background-color: var(--secondary-color);
}

.page-resources-tip88-safety-responsible-gambling__dark-section .page-resources-tip88-safety-responsible-gambling__list-item {
    color: var(--text-color-light);
}

.page-resources-tip88-safety-responsible-gambling__dark-section .page-resources-tip88-safety-responsible-gambling__list-item::before {
    color: var(--secondary-color);
}

.page-resources-tip88-safety-responsible-gambling__contact-info {
    margin-top: 30px;
}

.page-resources-tip88-safety-responsible-gambling__contact-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: var(--text-color-dark);
}

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

.page-resources-tip88-safety-responsible-gambling__contact-item a:hover {
    text-decoration: underline;
}

/* FAQ styles */
.page-resources-tip88-safety-responsible-gambling__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-tip88-safety-responsible-gambling__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-resources-tip88-safety-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;
  text-align: left;
}

.page-resources-tip88-safety-responsible-gambling__faq-item.active .page-resources-tip88-safety-responsible-gambling__faq-answer {
  max-height: 2000px !important; /* 🚨 Using !important ensures priority, value is large enough for any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--card-bg);
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-tip88-safety-responsible-gambling__faq-answer p {
    margin: 0;
    color: #555;
}

.page-resources-tip88-safety-responsible-gambling__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg);
  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;
  position: relative;
  text-align: left;
}

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

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

.page-resources-tip88-safety-responsible-gambling__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources-tip88-safety-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; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-tip88-safety-responsible-gambling__faq-item.active .page-resources-tip88-safety-responsible-gambling__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change to X or rotate */
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources-tip88-safety-responsible-gambling__hero-title {
        font-size: 2.8em;
    }

    .page-resources-tip88-safety-responsible-gambling__hero-description {
        font-size: 1.1em;
    }

    .page-resources-tip88-safety-responsible-gambling__section-title {
        font-size: 2em;
    }

    .page-resources-tip88-safety-responsible-gambling__sub-title {
        font-size: 1.6em;
    }

    .page-resources-tip88-safety-responsible-gambling__content-row {
        flex-direction: column;
        gap: 30px;
    }

    .page-resources-tip88-safety-responsible-gambling__content-row--reverse {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .page-resources-tip88-safety-responsible-gambling__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-tip88-safety-responsible-gambling__hero-title {
        font-size: 2.2em;
    }

    .page-resources-tip88-safety-responsible-gambling__hero-description {
        font-size: 1em;
    }

    .page-resources-tip88-safety-responsible-gambling__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-resources-tip88-safety-responsible-gambling__section {
        padding: 40px 15px;
    }

    .page-resources-tip88-safety-responsible-gambling__section-title {
        font-size: 1.8em;
    }

    .page-resources-tip88-safety-responsible-gambling__sub-title {
        font-size: 1.4em;
    }

    .page-resources-tip88-safety-responsible-gambling__text-block {
        font-size: 0.95em;
    }

    .page-resources-tip88-safety-responsible-gambling__feature-grid,
    .page-resources-tip88-safety-responsible-gambling__security-grid,
    .page-resources-tip88-safety-responsible-gambling__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-tip88-safety-responsible-gambling__feature-image,
    .page-resources-tip88-safety-responsible-gambling__security-image {
        height: 200px;
    }

    .page-resources-tip88-safety-responsible-gambling__content-image-wrapper {
        min-width: unset;
    }

    /* Mobile image responsive optimization */
    .page-resources-tip88-safety-responsible-gambling img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

    .page-resources-tip88-safety-responsible-gambling__section,
    .page-resources-tip88-safety-responsible-gambling__container,
    .page-resources-tip88-safety-responsible-gambling__feature-card,
    .page-resources-tip88-safety-responsible-gambling__security-item,
    .page-resources-tip88-safety-responsible-gambling__tip-item,
    .page-resources-tip88-safety-responsible-gambling__faq-list,
    .page-resources-tip88-safety-responsible-gambling__contact-info,
    .page-resources-tip88-safety-responsible-gambling__hero-container,
    .page-resources-tip88-safety-responsible-gambling__hero-image-wrapper,
    .page-resources-tip88-safety-responsible-gambling__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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