/* style/resources.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f5f5f5;
    --bg-dark: #222222;
}

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

.page-resources .content-padding {
    padding: 60px 20px;
}

.page-resources .bg-light {
    background-color: var(--bg-light);
}

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

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

.page-resources .text-center {
    text-align: center;
}

/* Hero Section */
.page-resources .hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--secondary-color); /* Fallback background */
    color: var(--text-light);
}

.page-resources .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 .hero-image {
    width: 100%;
    margin-bottom: 30px;
}

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

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

.page-resources .hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources .hero-content p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-light);
}

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

.page-resources .cta-button:hover {
    background: var(--text-light);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Headings */
.page-resources h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

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

.page-resources h3 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-resources .bg-dark h2, .page-resources .bg-dark h3 {
    color: var(--primary-color);
}

.page-resources .bg-dark p, .page-resources .bg-dark li {
    color: var(--text-light);
}

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

.page-resources .btn:hover {
    background-color: #ffd233; /* Slightly darker gold */
    transform: translateY(-2px);
}

.page-resources .btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-resources .btn-primary:hover {
    background-color: #ffd233;
}

.page-resources .btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.page-resources .btn-secondary:hover {
    background-color: #a00000; /* Slightly darker red */
    color: var(--primary-color);
}

/* Guide Section */
.page-resources .guide-grid, .page-resources .game-grid, .page-resources .promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources .guide-item, .page-resources .game-card, .page-resources .promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px 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 .guide-item:hover, .page-resources .game-card:hover, .page-resources .promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-resources .guide-icon, .page-resources .game-image, .page-resources .promo-image, .page-resources .support-icon {
    width: 100%;
    max-width: 300px; /* Ensure images are not too small but fit */
    height: auto;
    border-radius: 8px;
    margin: 0 auto 20px auto;
    object-fit: cover;
}

.page-resources .guide-item h3, .page-resources .game-card h3, .page-resources .promo-card h3 {
    font-size: 1.5em;
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-resources .guide-item h3 a, .page-resources .game-card h3 a, .page-resources .promo-card h3 a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.page-resources .guide-item h3 a:hover, .page-resources .game-card h3 a:hover, .page-resources .promo-card h3 a:hover {
    color: var(--primary-color);
}

.page-resources .guide-item p, .page-resources .game-card p, .page-resources .promo-card p {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Tips Section */
.page-resources .tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-resources .tips-list li {
    background-color: #ffffff;
    border-left: 5px solid var(--primary-color);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 1.1em;
    line-height: 1.8;
}

.page-resources .tips-list li strong {
    color: var(--secondary-color);
}

/* Support Section */
.page-resources .support-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources .support-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources .support-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-resources .support-item h3 {
    color: var(--secondary-color);
}

.page-resources .support-item p {
    color: #555555;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-resources .faq-list {
    margin-top: 30px;
}

.page-resources .faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-resources .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-resources .faq-question:hover {
    background: #e9e9e9;
}

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

.page-resources .faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

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

.page-resources .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
    background-color: #fcfcfc;
}

.page-resources .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 20px;
}

.page-resources .faq-answer p {
    margin: 0;
    color: #444444;
}

/* Conclusion Section */
.page-resources .conclusion-section {
    padding: 80px 20px;
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.page-resources .conclusion-section h2 {
    color: var(--primary-color);
}

.page-resources .conclusion-section p {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources .hero-content h1 {
        font-size: 2.8em;
    }
    .page-resources h2 {
        font-size: 2em;
    }
    .page-resources h3 {
        font-size: 1.6em;
    }
    .page-resources .guide-grid, .page-resources .game-grid, .page-resources .promo-grid, .page-resources .support-info {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-resources .content-padding {
        padding: 40px 15px;
    }
}

@media (max-width: 768px) {
    .page-resources .hero-section {
        padding: 40px 15px;
    }
    .page-resources .hero-content h1 {
        font-size: 2.2em;
    }
    .page-resources .hero-content p {
        font-size: 1em;
    }
    .page-resources .cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-resources h2 {
        font-size: 1.8em;
    }
    .page-resources h3 {
        font-size: 1.4em;
    }
    .page-resources .faq-question h3 {
        font-size: 1.1em;
    }
    .page-resources .faq-question {
        padding: 15px;
    }
    .page-resources .faq-answer {
        padding: 15px;
    }
    .page-resources .conclusion-section {
        padding: 60px 15px;
    }
    .page-resources .tips-list li {
        font-size: 1em;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources .hero-content h1 {
        font-size: 1.8em;
    }
    .page-resources h2 {
        font-size: 1.5em;
    }
    .page-resources h3 {
        font-size: 1.2em;
    }
    .page-resources .guide-grid, .page-resources .game-grid, .page-resources .promo-grid, .page-resources .support-info {
        grid-template-columns: 1fr;
    }
    .page-resources .guide-icon, .page-resources .game-image, .page-resources .promo-image, .page-resources .support-icon {
        max-width: 250px;
    }
}