:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --button-login: #EA7C07;
    --background-white: #FFFFFF;
    --black: #000000;
    --border-light: #e0e0e0;
    --background-light-grey: #f9f9f9;
}

/* Base styles for the page content */
.page-resources-secure-gaming-tips {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light body background */
    background-color: var(--background-white); /* Assuming body background is white */
}

/* Hero Banner Section */
.page-resources-secure-gaming-tips__hero-banner {
    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 */
    overflow: hidden; /* Prevent content overflow */
    background: linear-gradient(135deg, var(--primary-color) 0%, #aed6f1 100%); /* Lighter gradient for hero */
    color: var(--text-light);
}

.page-resources-secure-gaming-tips__hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 30px;
}

.page-resources-secure-gaming-tips__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
    font-weight: bold;
}

.page-resources-secure-gaming-tips__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources-secure-gaming-tips__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-resources-secure-gaming-tips__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Call to Action Button */
.page-resources-secure-gaming-tips__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-login); /* Use login color for primary CTA */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-resources-secure-gaming-tips__cta-button:hover {
    background: #d46f00; /* Slightly darker #EA7C07 on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-secure-gaming-tips__cta-button--small {
    padding: 12px 30px;
    font-size: 1em;
}

/* General Section Styles */
.page-resources-secure-gaming-tips__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-resources-secure-gaming-tips__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources-secure-gaming-tips__sub-title {
    font-size: 1.6em;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-resources-secure-gaming-tips__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-dark);
    text-align: justify;
}

/* Grid Container for Cards */
.page-resources-secure-gaming-tips__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Card Styles */
.page-resources-secure-gaming-tips__card {
    background: var(--background-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources-secure-gaming-tips__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-resources-secure-gaming-tips__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources-secure-gaming-tips__card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources-secure-gaming-tips__card-text {
    font-size: 1em;
    color: var(--text-dark);
    line-height: 1.6;
    text-align: center;
}

/* Call to Action within a section */
.page-resources-secure-gaming-tips__call-to-action {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: var(--background-light-grey);
    border-radius: 10px;
}

.page-resources-secure-gaming-tips__call-to-action .page-resources-secure-gaming-tips__text-block {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Content Grid with Image */
.page-resources-secure-gaming-tips__content-grid {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
}

.page-resources-secure-gaming-tips__text-content {
    flex: 1;
}

.page-resources-secure-gaming-tips__image-content {
    flex: 0 0 45%; /* Fixed width for image on desktop */
    max-width: 45%;
}

.page-resources-secure-gaming-tips__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Feature List (for Self-Help Tools) */
.page-resources-secure-gaming-tips__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-resources-secure-gaming-tips__feature-item {
    background: var(--background-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
}

.page-resources-secure-gaming-tips__feature-item:hover {
    transform: translateY(-3px);
}

.page-resources-secure-gaming-tips__feature-icon {
    width: 100px; /* Adjust size based on design */
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.page-resources-secure-gaming-tips__feature-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources-secure-gaming-tips__feature-description {
    font-size: 0.95em;
    color: var(--text-dark);
    line-height: 1.5;
}

/* Contact Grid (for Support Resources) */
.page-resources-secure-gaming-tips__contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-resources-secure-gaming-tips__contact-card {
    background: var(--background-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources-secure-gaming-tips__contact-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-resources-secure-gaming-tips__contact-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources-secure-gaming-tips__contact-text {
    font-size: 1em;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to grow */
}

.page-resources-secure-gaming-tips__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-resources-secure-gaming-tips__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ Section Styles */
.page-resources-secure-gaming-tips__faq-section {
    background-color: var(--background-light-grey);
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
}

.page-resources-secure-gaming-tips__faq-container {
    margin-top: 30px;
}

.page-resources-secure-gaming-tips__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--background-white);
    border: 1px solid var(--border-light);
}

.page-resources-secure-gaming-tips__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--background-white);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources-secure-gaming-tips__faq-item.active .page-resources-secure-gaming-tips__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-resources-secure-gaming-tips__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-resources-secure-gaming-tips__faq-question:active {
    background: #eeeeee;
}

.page-resources-secure-gaming-tips__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    pointer-events: none;
}

.page-resources-secure-gaming-tips__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-secure-gaming-tips__faq-item.active .page-resources-secure-gaming-tips__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change + to X-like on active */
}

.page-resources-secure-gaming-tips__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.3s ease;
    padding: 0 20px; /* Initial padding */
    opacity: 0;
    color: var(--text-dark);
    font-size: 1em;
    line-height: 1.6;
}

.page-resources-secure-gaming-tips__faq-item.active .page-resources-secure-gaming-tips__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px !important; /* Final padding */
    opacity: 1;
    background: var(--background-white);
    border-top: 1px solid var(--border-light);
    border-radius: 0 0 5px 5px;
}

.page-resources-secure-gaming-tips__faq-answer p {
    margin: 0;
    padding: 0;
}

/* Latest News Section */
.page-resources-secure-gaming-tips__latest-news {
    background-color: #f5f5f5; /* Slightly different background */
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
}

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

.page-resources-secure-gaming-tips__news-card {
    background: var(--background-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-secure-gaming-tips__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-resources-secure-gaming-tips__news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-resources-secure-gaming-tips__news-card h3 {
    padding: 15px 20px 0;
    margin: 0;
}

.page-resources-secure-gaming-tips__news-title {
    font-size: 1.3em;
    color: var(--primary-color);
    line-height: 1.4;
    font-weight: bold;
    flex-grow: 1; /* Allow title to grow */
}

.page-resources-secure-gaming-tips__news-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources-secure-gaming-tips__news-title a:hover {
    color: #1e87b7; /* Darker shade for hover */
}

.page-resources-secure-gaming-tips__news-excerpt {
    font-size: 0.95em;
    color: var(--text-dark);
    padding: 0 20px 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.page-resources-secure-gaming-tips__read-more {
    display: inline-block;
    padding: 10px 20px 20px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-resources-secure-gaming-tips__read-more:hover {
    text-decoration: underline;
    color: #1e87b7; /* Darker shade for hover */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-secure-gaming-tips__hero-title {
        font-size: 2.8em;
    }
    .page-resources-secure-gaming-tips__hero-description {
        font-size: 1.1em;
    }
    .page-resources-secure-gaming-tips__section-title {
        font-size: 2em;
    }
    .page-resources-secure-gaming-tips__sub-title {
        font-size: 1.5em;
    }
    .page-resources-secure-gaming-tips__content-grid {
        flex-direction: column;
        align-items: center;
    }
    .page-resources-secure-gaming-tips__image-content {
        flex: 0 0 80%;
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-resources-secure-gaming-tips {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Fixed Header Offset for mobile */
    .page-resources-secure-gaming-tips__hero-banner {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-secure-gaming-tips__hero-title {
        font-size: 2.2em;
    }
    .page-resources-secure-gaming-tips__hero-description {
        font-size: 1em;
    }

    .page-resources-secure-gaming-tips__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-secure-gaming-tips__section {
        padding: 40px 15px;
    }
    .page-resources-secure-gaming-tips__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources-secure-gaming-tips__sub-title {
        font-size: 1.3em;
    }

    .page-resources-secure-gaming-tips__grid-container,
    .page-resources-secure-gaming-tips__feature-list,
    .page-resources-secure-gaming-tips__contact-grid,
    .page-resources-secure-gaming-tips__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources-secure-gaming-tips__card,
    .page-resources-secure-gaming-tips__feature-item,
    .page-resources-secure-gaming-tips__contact-card,
    .page-resources-secure-gaming-tips__news-card {
        padding: 20px;
    }

    .page-resources-secure-gaming-tips__card-image,
    .page-resources-secure-gaming-tips__contact-image,
    .page-resources-secure-gaming-tips__news-image {
        height: 180px;
    }

    .page-resources-secure-gaming-tips__image-content {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Images responsiveness */
    .page-resources-secure-gaming-tips img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources-secure-gaming-tips__section,
    .page-resources-secure-gaming-tips__card,
    .page-resources-secure-gaming-tips__container,
    .page-resources-secure-gaming-tips__hero-banner,
    .page-resources-secure-gaming-tips__call-to-action,
    .page-resources-secure-gaming-tips__faq-section,
    .page-resources-secure-gaming-tips__latest-news {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Button containers mobile */
    .page-resources-secure-gaming-tips__cta-buttons,
    .page-resources-secure-gaming-tips__button-group,
    .page-resources-secure-gaming-tips__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-resources-secure-gaming-tips__cta-buttons {
        flex-direction: column;
    }
}