/* style/resources.css */
.page-resources {
    font-family: 'Arial', sans-serif;
    color: #E0E0E0;
    background-color: #1A1A1A;
    line-height: 1.6;
}

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

.page-resources .hero-banner {
    background: linear-gradient(135deg, #2a2a2a, #1A1A1A);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid #FFD700;
}

.page-resources .hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: page-resources rotate 20s linear infinite;
    z-index: 0;
}

@keyframes page-resources rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-resources .hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-resources h1 {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-weight: bold;
}

.page-resources .hero-banner p {
    font-size: 1.2em;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.page-resources .cta-button, .page-resources .secondary-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #FFD700;
    color: #1A1A1A;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    border: none;
    cursor: pointer;
}

.page-resources .cta-button:hover, .page-resources .secondary-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.page-resources .secondary-button {
    background-color: #333;
    color: #FFD700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-resources .secondary-button:hover {
    background-color: #444;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-resources section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.page-resources section:last-of-type {
    border-bottom: none;
}

.page-resources h2 {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.page-resources h3 {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid #FFD700;
    padding-left: 15px;
}

.page-resources p {
    margin-bottom: 15px;
    color: #E0E0E0;
}

.page-resources ul, .page-resources ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.page-resources ul li, .page-resources ol li {
    margin-bottom: 8px;
    color: #E0E0E0;
}

.page-resources a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources a:hover {
    color: #e6c200;
    text-decoration: underline;
}

.page-resources content-block {
    background-color: #222222;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-resources .content-image, .page-resources .guide-image, .page-resources .game-image, .page-resources .news-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.page-resources .guide-item {
    background-color: #222222;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-resources .game-card img, .page-resources .news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.page-resources .game-card h3, .page-resources .news-card h3 {
    font-size: 1.4em;
    margin: 15px 15px 10px 15px;
    padding-left: 0;
    border-left: none;
    color: #FFD700;
}

.page-resources .game-card h3 a, .page-resources .news-card h3 a {
    color: #FFD700;
    text-decoration: none;
}

.page-resources .game-card p, .page-resources .news-card p {
    padding: 0 15px;
    font-size: 0.95em;
    color: #B0B0B0;
    flex-grow: 1;
}

.page-resources .play-button, .page-resources .read-more {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD700;
    color: #1A1A1A;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    margin: 15px;
    transition: all 0.3s ease;
    text-align: center;
}

.page-resources .play-button:hover, .page-resources .read-more:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

/* FAQ Section */
.page-resources .section-faq {
    background-color: #1A1A1A;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #FFD700;
  border-left: none;
  padding-left: 0;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #222222;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.faq-answer p {
    color: #E0E0E0;
    padding-bottom: 15px;
    margin: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to accommodate content */
  padding: 15px 25px;
  border: 1px solid #3a3a3a;
  border-top: none;
}

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

.page-resources .final-cta {
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources h1 {
        font-size: 2.8em;
    }
    .page-resources h2 {
        font-size: 2em;
    }
    .page-resources h3 {
        font-size: 1.5em;
    }
    .page-resources .hero-banner p {
        font-size: 1.1em;
    }
    .page-resources .game-grid, .page-resources .news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-resources h1 {
        font-size: 2.2em;
    }
    .page-resources h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources h3 {
        font-size: 1.3em;
    }
    .page-resources section {
        padding: 40px 0;
    }
    .page-resources .cta-button, .page-resources .secondary-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-resources .game-card img, .page-resources .news-card img {
        height: 180px;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .page-resources h1 {
        font-size: 1.8em;
    }
    .page-resources h2 {
        font-size: 1.6em;
    }
    .page-resources h3 {
        font-size: 1.2em;
    }
    .page-resources .hero-banner p {
        font-size: 0.95em;
    }
    .page-resources .cta-button, .page-resources .secondary-button {
        padding: 10px 25px;
        font-size: 0.9em;
    }
    .page-resources .game-grid, .page-resources .news-grid {
        grid-template-columns: 1fr;
    }
    .page-resources .game-card img, .page-resources .news-card img {
        height: 160px;
    }
    .faq-question h3 {
        font-size: 1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
}