/* style/resources.css */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f4f4f4;
  --bg-dark: #1a2a40;
  --card-bg: #ffffff;
  --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: 0 20px;
}

.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: var(--primary-color);
  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 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-resources 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 .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(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources .cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources .content-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-resources .content-section:nth-of-type(even) h2,
.page-resources .content-section:nth-of-type(even) h3 {
  color: var(--secondary-color);
}

.page-resources .content-section:nth-of-type(even) p {
  color: #cccccc;
}

.page-resources h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-resources h3 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.page-resources .card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-resources .card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-resources .card h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary-color);
  line-height: 1.3;
}

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

.page-resources .card h3 a:hover {
  color: var(--secondary-color);
}

.page-resources .card p {
  font-size: 0.95em;
  color: var(--text-dark);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-resources .card-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-resources .card-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-resources .news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 50px;
}

.page-resources .news-item {
  display: flex;
  align-items: flex-start;
  background: var(--bg-dark);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  overflow: hidden;
  color: var(--text-light);
}

.page-resources .news-item img {
  width: 35%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px 0 0 10px;
}

.page-resources .news-content {
  padding: 30px;
  flex-grow: 1;
}

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

.page-resources .news-content h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources .news-content h3 a:hover {
  color: #fff;
}

.page-resources .news-content p {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-resources .read-more {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.9em;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-resources .read-more:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-resources .faq-items {
  margin-top: 50px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-question:hover {
  background: #f0f0f0;
  border-color: var(--secondary-color);
}

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

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--secondary-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: #f9f9f9;
  color: var(--text-dark);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 20px 25px;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

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

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

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

.page-resources .responsible-gaming-section p {
  color: #cccccc;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

.page-resources .contact-section p {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-resources .contact-info {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 600px;
  text-align: left;
  font-size: 1.1em;
}

.page-resources .contact-info li {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources .contact-info li strong {
  color: var(--primary-color);
}

.page-resources .copyright {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--primary-color);
  color: #aaa;
  font-size: 0.9em;
  margin-top: 0;
}

.page-resources .copyright p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources h1 {
    font-size: 2.8em;
  }

  .page-resources h2 {
    font-size: 2.2em;
  }

  .page-resources .news-item {
    flex-direction: column;
  }

  .page-resources .news-item img {
    width: 100%;
    height: 200px;
    border-radius: 10px 10px 0 0;
  }

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

@media (max-width: 768px) {
  .page-resources .hero-section {
    padding: 40px 15px;
  }
  
  .page-resources .hero-image img {
    border-radius: 4px;
  }
  
  .page-resources 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 .content-section {
    padding: 60px 0;
  }

  .page-resources h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources h3 {
    font-size: 1.5em;
  }

  .page-resources .guide-cards {
    grid-template-columns: 1fr;
  }

  .page-resources .card {
    padding: 20px;
  }

  .page-resources .card img {
    height: 180px;
  }

  .faq-question {
    padding: 15px 20px;
  }

  .faq-question h3 {
    font-size: 1.1em;
  }

  .faq-toggle {
    font-size: 1.5em;
  }

  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }

  .page-resources .contact-info {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-resources h1 {
    font-size: 1.8em;
  }

  .page-resources h2 {
    font-size: 1.6em;
  }

  .page-resources .hero-content p {
    font-size: 0.9em;
  }

  .page-resources .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }

  .page-resources .news-content h3 {
    font-size: 1.4em;
  }

  .page-resources .news-content p {
    font-size: 0.9em;
  }
}