/* style/resources.css */
:root {
  --primary-color: #0056B3; /* Deep Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --background-dark: #0a0a0a; /* From shared.css body background */
  --background-light: #f8f9fa;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color-light: #e0e0e0;
}

.page-resources {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Ensure consistency with body */
  padding-top: 120px; /* Space for fixed header */
}

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

/* Section common styles */
.page-resources__hero-section,
.page-resources__overview-section,
.page-resources__categories-section,
.page-resources__benefits-section,
.page-resources__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
}

.page-resources__hero-section {
  padding-top: 10px; /* Adjust for fixed header on this specific section */
  padding-bottom: 60px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:bg:pg99 vip, online casino, resources, abstract, dark blue, gold]');
  background-size: cover;
  background-position: center;
  color: var(--text-color-dark-bg);
}

.page-resources__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
  line-height: 1.2;
}

.page-resources__description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-resources__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--text-color-dark-bg);
}

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

.page-resources__content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: left;
}

.page-resources__image-full-width {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__card {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-color-dark-bg);
}

.page-resources__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-resources__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__card-title {
  font-size: 1.6em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-resources__card-text {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
  color: rgba(255, 255, 255, 0.75);
}

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

.page-resources__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-resources__list-item {
  font-size: 1.1em;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.85);
}

.page-resources__list-item::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.page-resources__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: var(--secondary-color);
  color: var(--background-dark);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.page-resources__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--background-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.page-resources__card-button {
  width: 100%;
  padding: 12px 20px;
  font-size: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__description,
  .page-resources__text-block,
  .page-resources__list-item,
  .page-resources__card-text {
    font-size: 1em;
  }
  .page-resources__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: 100px !important; /* Mobile space for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__hero-section,
  .page-resources__overview-section,
  .page-resources__categories-section,
  .page-resources__benefits-section,
  .page-resources__cta-bottom-section {
    padding: 60px 0;
  }
  .page-resources__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__description {
    margin-bottom: 30px;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-resources__card {
    padding: 25px;
  }
  .page-resources__card-image {
    height: 160px;
  }
  .page-resources__card-title {
    font-size: 1.4em;
  }
  .page-resources__list-item {
    padding-left: 25px;
    font-size: 0.95em;
  }
  .page-resources__list-item::before {
    font-size: 1.1em;
  }
  .page-resources__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__card-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__card-image {
    height: 140px;
  }
}