/* style/resources.css */
:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f4f7f6;
    --bg-dark: #2d3748;
    --border-color: #e0e0e0;
}

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

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

.page-resources section {
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-resources section:nth-of-type(odd) {
    background-color: #ffffff;
}

.page-resources section:nth-of-type(even) {
    background-color: var(--bg-light);
}

.page-resources .introduction-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.page-resources .introduction-section .main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources .introduction-section .description,
.page-resources .introduction-section .highlight-text {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #e0e0e0;
}

.page-resources .introduction-section .description a,
.page-resources .introduction-section .highlight-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-resources .cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources .cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-resources .section-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-resources .section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources .section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-dark);
}

.page-resources .section-description a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-resources .guide-cards,
.page-resources .strategy-grid,
.page-resources .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources .card,
.page-resources .strategy-item,
.page-resources .news-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources .card:hover,
.page-resources .strategy-item:hover,
.page-resources .news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources .card-image,
.page-resources .item-image,
.page-resources .news-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-resources .card-title,
.page-resources .item-title,
.page-resources .news-title {
    font-size: 1.4em;
    color: var(--primary-color);
    padding: 15px 20px 10px;
    margin: 0;
}

.page-resources .card-title a,
.page-resources .item-title a,
.page-resources .news-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources .card-title a:hover,
.page-resources .item-title a:hover,
.page-resources .news-title a:hover {
    color: var(--secondary-color);
}

.page-resources .card-text,
.page-resources .item-text,
.page-resources .news-summary {
    font-size: 1em;
    color: #555555;
    padding: 0 20px 15px;
    flex-grow: 1;
}

.page-resources .card-text a,
.page-resources .item-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-resources .card-link,
.page-resources .item-link,
.page-resources .view-all-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px;
    align-self: flex-start;
    transition: background-color 0.3s ease;
}

.page-resources .card-link:hover,
.page-resources .item-link:hover,
.page-resources .view-all-button:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-resources .news-item time {
    font-size: 0.9em;
    color: #888888;
    padding: 0 20px 15px;
    display: block;
}

.page-resources .promo-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-resources .promo-item {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.page-resources .promo-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-resources .promo-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-resources .promo-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-resources .promo-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-resources .promo-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources .promo-link:hover {
    background-color: #e6c200;
}

.page-resources .responsible-gaming-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-resources .responsible-gaming-section .section-title {
    color: var(--secondary-color);
}

.page-resources .responsible-gaming-section .description {
    color: #cccccc;
}

.page-resources .responsible-gaming-section .description a {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

.page-resources .grid-item {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources .item-heading {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-resources .grid-item .item-text {
    font-size: 1em;
    color: #e0e0e0;
}

.page-resources .grid-item .item-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-resources .faq-section {
    background-color: #ffffff;
}

.page-resources .faq-list {
    margin-top: 40px;
}

.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-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.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;
    line-height: 1;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px 25px;
    border-top: none;
}

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

.faq-answer p a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-resources .contact-cta-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
}

.page-resources .contact-cta-section .section-title {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-resources .contact-cta-section .description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #e0e0e0;
}

.page-resources .contact-cta-section .description a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-resources .secondary-cta {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.page-resources .secondary-cta:hover {
    background-color: #f0f0f0;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources .introduction-section .main-title {
        font-size: 2.5em;
    }
    .page-resources .section-title {
        font-size: 2em;
    }
    .page-resources .guide-cards,
    .page-resources .strategy-grid,
    .page-resources .news-grid,
    .page-resources .promo-list,
    .page-resources .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .page-resources .card-image,
    .page-resources .item-image,
    .page-resources .news-image {
        height: 200px;
    }
    .page-resources .card-title,
    .page-resources .item-title,
    .page-resources .news-title {
        font-size: 1.3em;
    }
    .page-resources .promo-title {
        font-size: 1.3em;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-resources section {
        padding: 40px 0;
    }
    .page-resources .introduction-section {
        padding: 60px 15px;
    }
    .page-resources .introduction-section .main-title {
        font-size: 2em;
    }
    .page-resources .introduction-section .description,
    .page-resources .introduction-section .highlight-text {
        font-size: 1em;
    }
    .page-resources .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-resources .section-title {
        font-size: 1.8em;
    }
    .page-resources .section-description {
        font-size: 0.95em;
    }
    .page-resources .guide-cards,
    .page-resources .strategy-grid,
    .page-resources .news-grid,
    .page-resources .promo-list,
    .page-resources .content-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .page-resources .card-image,
    .page-resources .item-image,
    .page-resources .news-image {
        height: 180px;
    }
    .page-resources .card-title,
.page-resources .item-title,
.page-resources .news-title {
        font-size: 1.2em;
        padding: 10px 15px 8px;
    }
    .page-resources .card-text,
    .page-resources .item-text,
    .page-resources .news-summary {
        font-size: 0.9em;
        padding: 0 15px 10px;
    }
    .page-resources .card-link,
    .page-resources .item-link,
    .page-resources .view-all-button {
        padding: 8px 15px;
        font-size: 0.9em;
        margin: 0 15px 15px;
    }
    .page-resources .promo-item {
        padding: 20px;
    }
    .page-resources .promo-title {
        font-size: 1.2em;
    }
    .page-resources .promo-text {
        font-size: 0.9em;
    }
    .page-resources .promo-link {
        padding: 8px 20px;
        font-size: 0.9em;
    }
    .page-resources .grid-item {
        padding: 20px;
    }
    .page-resources .item-heading {
        font-size: 1.3em;
    }
    .page-resources .grid-item .item-text {
        font-size: 0.9em;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    .page-resources .contact-cta-section {
        padding: 60px 15px;
    }
}

@media (max-width: 480px) {
    .page-resources .introduction-section .main-title {
        font-size: 1.8em;
    }
    .page-resources .section-title {
        font-size: 1.5em;
    }
    .page-resources .cta-button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
    .page-resources .section-image {
        border-radius: 5px;
    }
    .page-resources .card-image,
    .page-resources .item-image,
    .page-resources .news-image {
        height: 160px;
    }
    .page-resources .card-title,
    .page-resources .item-title,
    .page-resources .news-title {
        font-size: 1.1em;
    }
    .page-resources .promo-title {
        font-size: 1.1em;
    }
    .faq-question h3 {
        font-size: 0.95em;
    }
    .faq-toggle {
        font-size: 18px;
    }
}