/* style/resources.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light-card: rgba(255, 255, 255, 0.1);
  --bg-light-section: #f0f0f0;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Body background is dark #121212, so default text is light */
  background-color: var(--bg-dark);
  line-height: 1.6;
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Adjusted padding-top for fixed header */
  background: linear-gradient(135deg, var(--secondary-color) 0%, #a00000 100%);
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.page-resources__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-resources__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.page-resources__cta-button--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.page-resources__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: rgba(255, 255, 255, 0.8);
}

.page-resources__guides-section, .page-resources__news-section, .page-resources__tools-section, .page-resources__responsible-betting-section, .page-resources__call-to-action-footer {
  padding: 80px 0;
}

.page-resources__dark-bg {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-resources__dark-bg .page-resources__section-description {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-resources__grid--two-columns {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-resources__guide-card, .page-resources__article-item, .page-resources__tool-item, .page-resources__feature-item {
  background: var(--bg-light-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.page-resources__guide-card:hover, .page-resources__article-item:hover, .page-resources__tool-item:hover, .page-resources__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__guide-card-image, .page-resources__article-image, .page-resources__tool-icon, .page-resources__feature-icon {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__guide-card-content, .page-resources__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__guide-card-title, .page-resources__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-resources__guide-card-title a:hover, .page-resources__article-title a:hover {
  color: #e6c200;
}

.page-resources__guide-card-excerpt, .page-resources__article-excerpt {
  font-size: 1em;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
  flex-grow: 1;
}

.page-resources__guide-card-button, .page-resources__article-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-dark);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__guide-card-button:hover, .page-resources__article-button:hover {
  background-color: #e6c200;
}

.page-resources__article-date {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 15px;
}

.page-resources__tool-item, .page-resources__feature-item {
  text-align: center;
  padding: 30px;
  background: var(--bg-light-card);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__tool-icon, .page-resources__feature-icon {
  width: 250px; /* Min size 200x200 */
  height: 250px; /* Min size 200x200 */
  margin: 0 auto 20px;
  object-fit: contain;
}

.page-resources__tool-title, .page-resources__feature-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__tool-description, .page-resources__feature-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 25px;
}

.page-resources__tool-button, .page-resources__feature-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-dark);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__tool-button:hover, .page-resources__feature-button:hover {
  background-color: #e6c200;
}

.page-resources__cta-banner {
  background: linear-gradient(90deg, var(--primary-color) 0%, #e6c200 100%);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-dark);
}

.page-resources__cta-banner-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-resources__cta-banner-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: rgba(0, 0, 0, 0.7);
}

.page-resources__cta-banner-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--text-light);
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-resources__cta-banner-button:hover {
  background-color: #a00000;
}

.page-resources__call-to-action-footer {
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #a00000 100%);
  padding: 80px 0;
  color: var(--text-light);
}

.page-resources__cta-footer-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-footer-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__grid--two-columns {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 100px 0 60px; /* Mobile padding-top for fixed header */
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-resources__guides-section, .page-resources__news-section, .page-resources__tools-section, .page-resources__responsible-betting-section, .page-resources__call-to-action-footer {
    padding: 50px 0;
  }

  .page-resources__grid, .page-resources__grid--two-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__guide-card-image, .page-resources__article-image, .page-resources__tool-icon, .page-resources__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: 200px; /* Adjust height for mobile */
    object-fit: cover;
    box-sizing: border-box !important;
  }

  .page-resources__guide-card-content, .page-resources__article-content {
    padding: 20px;
  }

  .page-resources__guide-card-title, .page-resources__article-title {
    font-size: 1.3em;
  }

  .page-resources__tool-item, .page-resources__feature-item {
    padding: 25px;
  }

  .page-resources__tool-title, .page-resources__feature-title {
    font-size: 1.5em;
  }

  .page-resources__cta-banner {
    padding: 30px;
  }

  .page-resources__cta-banner-title {
    font-size: 1.6em;
  }

  .page-resources__cta-banner-description {
    font-size: 1em;
  }

  .page-resources__cta-banner-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  
  .page-resources__cta-footer-title {
    font-size: 2em;
  }
  .page-resources__cta-footer-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  .page-resources__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__guide-card, .page-resources__article-item, .page-resources__tool-item, .page-resources__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Global image responsive rules for .page-resources scope */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile specific image rules */
@media (max-width: 768px) {
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__section, 
  .page-resources__card, 
  .page-resources__container, 
  .page-resources__grid,
  .page-resources__grid--two-columns,
  .page-resources__hero-section,
  .page-resources__guides-section,
  .page-resources__news-section,
  .page-resources__tools-section,
  .page-resources__responsible-betting-section,
  .page-resources__call-to-action-footer {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-resources__hero-section {
    padding-top: 100px !important; /* Mobile padding-top for fixed header */
  }
}