/* style/resources-latest-links.css */
.page-resources-latest-links {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Ensure body background is black as per shared.css */
}

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

.page-resources-latest-links__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-resources-latest-links__light-bg {
  background-color: #000; /* Body background is #000, so this section background will be transparent or match body */
  color: #ffffff;
}

/* Hero Section */
.page-resources-latest-links__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
}

.page-resources-latest-links__hero-content {
  z-index: 1;
  max-width: 800px;
  margin-bottom: 40px;
}

.page-resources-latest-links__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00;
  line-height: 1.2;
}

.page-resources-latest-links__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-resources-latest-links__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-latest-links__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-resources-latest-links__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

/* Buttons */
.page-resources-latest-links__btn-primary,
.page-resources-latest-links__btn-secondary,
.page-resources-latest-links__btn-register,
.page-resources-latest-links__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

.page-resources-latest-links__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-resources-latest-links__btn-primary:hover {
  background-color: #005a2b;
  border-color: #005a2b;
}

.page-resources-latest-links__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-resources-latest-links__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-resources-latest-links__btn-register,
.page-resources-latest-links__btn-login {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-resources-latest-links__btn-register:hover,
.page-resources-latest-links__btn-login:hover {
  background-color: #a30606;
  border-color: #a30606;
}

/* Section Titles and Text Blocks */
.page-resources-latest-links__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #ffffff;
}

.page-resources-latest-links__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Features Grid */
.page-resources-latest-links__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-latest-links__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-resources-latest-links__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00;
}

/* Method Grid */
.page-resources-latest-links__method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-latest-links__method-item {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-resources-latest-links__method-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-resources-latest-links__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Video Section */
.page-resources-latest-links__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources-latest-links__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

.page-resources-latest-links__video-caption {
  text-align: center;
  margin-top: 15px;
  font-style: italic;
  color: #f0f0f0;
}

/* Steps Grid */
.page-resources-latest-links__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-latest-links__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-resources-latest-links__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-resources-latest-links__step-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFFF00;
}

/* Games Grid */
.page-resources-latest-links__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-latest-links__game-card {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-resources-latest-links__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}