/* style/resources-online-gambling-tips.css */
:root {
    --primary-color: #003366;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #f0f0f0;
    --background-light: #ffffff;
    --background-dark: #002244;
    --border-color: #e0e0e0;
}

.page-resources-online-gambling-tips {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.page-resources-online-gambling-tips__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.page-resources-online-gambling-tips__hero {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--background-dark); /* Fallback for image */
    color: var(--text-light);
    overflow: hidden;
}

.page-resources-online-gambling-tips__hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources-online-gambling-tips__hero-image {
    width: 100%;
    height: 500px; /* Adjusted for better visual */
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0.4; /* Make text readable */
}

.page-resources-online-gambling-tips__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 40px 20px;
    background: rgba(0, 51, 102, 0.7); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-resources-online-gambling-tips__hero h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-online-gambling-tips__hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
}

.page-resources-online-gambling-tips__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.page-resources-online-gambling-tips__cta-button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-resources-online-gambling-tips__section {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-resources-online-gambling-tips__section:nth-of-type(even) {
    background-color: #f5f8fa;
}

.page-resources-online-gambling-tips__section h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-resources-online-gambling-tips__section h2::after {
    content: '';
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.page-resources-online-gambling-tips__intro p {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Tips Grid */
.page-resources-online-gambling-tips__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources-online-gambling-tips__card {
    background-color: var(--background-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources-online-gambling-tips__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-resources-online-gambling-tips__card-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
}

.page-resources-online-gambling-tips__card h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-resources-online-gambling-tips__card p {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: justify;
    flex-grow: 1;
}

.page-resources-online-gambling-tips__card-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources-online-gambling-tips__card-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* FAQ Section */
.page-resources-online-gambling-tips__faq {
    background-color: #eef4f7;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--background-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    background: #f9f9f9;
    color: var(--text-dark);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* Bottom CTA Section */
.page-resources-online-gambling-tips__cta-bottom {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
}

.page-resources-online-gambling-tips__cta-content {
    max-width: 800px;
}

.page-resources-online-gambling-tips__cta-bottom h2 {
    color: var(--secondary-color);
    font-size: 2.8em;
    margin-bottom: 25px;
}

.page-resources-online-gambling-tips__cta-bottom p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.page-resources-online-gambling-tips__cta-bottom .page-resources-online-gambling-tips__cta-button {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.page-resources-online-gambling-tips__cta-bottom .page-resources-online-gambling-tips__cta-button:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-online-gambling-tips__hero h1 {
        font-size: 2.8em;
    }
    .page-resources-online-gambling-tips__hero p {
        font-size: 1.1em;
    }
    .page-resources-online-gambling-tips__section h2 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources-online-gambling-tips__hero {
        padding: 40px 15px;
    }
    .page-resources-online-gambling-tips__hero-image {
        height: 400px;
    }
    .page-resources-online-gambling-tips__hero-content {
        padding: 30px 15px;
    }
    .page-resources-online-gambling-tips__hero h1 {
        font-size: 2.2em;
    }
    .page-resources-online-gambling-tips__hero p {
        font-size: 1em;
    }
    .page-resources-online-gambling-tips__cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-resources-online-gambling-tips__section {
        padding: 40px 0;
    }
    .page-resources-online-gambling-tips__section h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources-online-gambling-tips__grid {
        grid-template-columns: 1fr;
    }
    .page-resources-online-gambling-tips__card {
        padding: 20px;
    }
    .page-resources-online-gambling-tips__card h3 {
        font-size: 1.3em;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-resources-online-gambling-tips__cta-bottom h2 {
        font-size: 2em;
    }
    .page-resources-online-gambling-tips__cta-bottom p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-resources-online-gambling-tips__hero-image {
        height: 300px;
    }
    .page-resources-online-gambling-tips__hero h1 {
        font-size: 1.8em;
    }
    .page-resources-online-gambling-tips__hero p {
        font-size: 0.9em;
    }
    .page-resources-online-gambling-tips__section h2 {
        font-size: 1.5em;
    }
    .page-resources-online-gambling-tips__card-image {
        max-width: 200px;
    }
}