/* style/resources.css */

/* Base Styles */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover {
  background-color: #1a8cc2;
  border-color: #1a8cc2;
}

.page-resources__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1a8cc2;
  border-color: #1a8cc2;
}

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

.page-resources__content-image {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background: linear-gradient(135deg, #26A9E0, #36C0F0);
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f8ff;
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: grayscale(50%);
}

/* Guide Section */
.page-resources__guide-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

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

.page-resources__guide-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.page-resources__card-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-resources__card-subtitle {
  font-size: 1.3em;
  color: #333333;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-resources__card-button {
  margin-top: auto;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
}

/* Games Section */
.page-resources__games-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-resources__games-section .page-resources__section-title,
.page-resources__games-section .page-resources__section-description {
  color: #FFFFFF;
}

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

.page-resources__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
}

.page-resources__game-card .page-resources__card-title {
  color: #FFFFFF;
}

.page-resources__game-card .page-resources__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border-color: #FFFFFF;
}

.page-resources__game-card .page-resources__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1a8cc2;
  border-color: #e0e0e0;
}

.page-resources__game-image {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Promotions Section */
.page-resources__promotions-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-resources__promotion-card {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  text-align: left;
}

.page-resources__promotion-card .page-resources__card-title {
  color: #26A9E0;
}

.page-resources__view-all-btn {
  margin-top: 50px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__promotion-image {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Security Section */
.page-resources__security-section {
  padding: 60px 0;
  background-color: #0d2a4a; /* Darker shade for security theme */
  color: #FFFFFF;
}

.page-resources__security-section .page-resources__section-title,
.page-resources__security-section .page-resources__section-description {
  color: #FFFFFF;
}

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

.page-resources__security-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
}

.page-resources__security-card .page-resources__card-title {
  color: #FFFFFF;
}

.page-resources__security-card .page-resources__btn-secondary {
  background-color: #FFFFFF;
  color: #0d2a4a; /* Dark text for security theme */
  border-color: #FFFFFF;
}

.page-resources__security-card .page-resources__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #000000;
  border-color: #e0e0e0;
}

.page-resources__security-image {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* CTA Bottom Section */
.page-resources__cta-bottom-section {
  padding: 60px 0 80px;
  background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  /* Fixed Header Spacing for mobile */
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; 
  }

  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-description {
    font-size: 0.95em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__guide-grid,
  .page-resources__game-grid,
  .page-resources__promotion-grid,
  .page-resources__security-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__guide-section,
  .page-resources__games-section,
  .page-resources__promotions-section,
  .page-resources__security-section,
  .page-resources__cta-bottom-section {
    padding: 40px 0;
  }
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-image-wrapper,
  .page-resources__guide-card,
  .page-resources__game-card,
  .page-resources__promotion-card,
  .page-resources__security-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow for containers */
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
}