/* style/resources.css */

/* --- Base Styles --- */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Inherited from shared.css */
}

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

.page-resources__section {
  padding: 80px 0;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__text-block {
  text-align: left;
  margin-bottom: 30px;
}

.page-resources__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #e0e0e0;
}

/* --- Buttons --- */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding/border in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-resources__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #1a1a1a; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
  background-color: #e0b800;
  border-color: #e0b800;
  color: #000000;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
  margin-left: 20px;
}

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #1a1a1a;
}

.page-resources__btn-text {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.page-resources__btn-text:hover {
  color: #e0b800;
}

.page-resources__arrow {
  margin-left: 8px;
  font-size: 1.2em;
  line-height: 1;
}

.page-resources__cta-bottom {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* --- Hero Section --- */
.page-resources__hero-section {
  position: relative;
  padding: 150px 0 100px; /* Adjusted padding to account for header offset */
  background-image: url('[GALLERY:hero_main:1920x1080:co88,resource_hero,platform_overview]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
}

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 1;
}

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

.page-resources__hero-description {
  font-size: 1.5em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources__hero-cta .page-resources__btn-primary,
.page-resources__hero-cta .page-resources__btn-secondary {
  margin: 10px;
}

/* --- Introduction Section --- */
.page-resources__introduction-section {
  background-color: #1a1a1a; /* Dark background */
  color: #e0e0e0;
}

.page-resources__introduction-section .page-resources__section-title {
  color: #FFD700;
}

.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px; /* Max width for video */
  margin: 40px auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.page-resources__video-link {
  display: block;
}

.page-resources__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-resources__video-caption {
  color: #cccccc;
  font-size: 0.9em;
  margin-top: 10px;
}

/* --- Guide Cards Section --- */
.page-resources__guides-section {
  background-color: #0d0d0d;
}

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-resources__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-resources__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Enforce min size */
}

.page-resources__card-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__card-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #e0b800;
}

.page-resources__card-text {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to grow */
}

/* --- Strategies Section --- */
.page-resources__strategies-section {
  background-color: #8B0000; /* Dark Red background */
  color: #ffffff;
}

.page-resources__strategies-section .page-resources__section-title {
  color: #FFD700;
}

.page-resources__strategies-section .page-resources__section-description {
  color: #f0f0f0;
}

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

.page-resources__strategy-item {
  background-color: rgba(0, 0, 0, 0.3); /* Dark overlay for contrast */
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.page-resources__strategy-item:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

.page-resources__strategy-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__strategy-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__strategy-title a:hover {
  color: #e0b800;
}

.page-resources__strategy-text {
  color: #f0f0f0;
  font-size: 1em;
}

.page-resources__image-full-width {
  margin-top: 40px;
}

.page-resources__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Enforce min size */
}

/* --- Products Section --- */
.page-resources__products-section {
  background-color: #1a1a1a;
}

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

.page-resources__product-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__product-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__product-image {
  width: 100%;
  height: 180px; /* Consistent image height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-height: 200px; /* Enforce min size */
}

.page-resources__product-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__product-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__product-title a:hover {
  color: #e0b800;
}

.page-resources__product-text {
  color: #cccccc;
  font-size: 1em;
}

/* --- Promotions Section --- */
.page-resources__promotions-section {
  background-color: #0d0d0d;
  color: #e0e0e0;
}

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

.page-resources__promotion-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__promotion-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-resources__promotion-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__promotion-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__promotion-title a:hover {
  color: #e0b800;
}

.page-resources__promotion-text {
  color: #cccccc;
  font-size: 1em;
}

/* --- Security & Support Section --- */
.page-resources__security-support-section {
  background-color: #1a1a1a;
}

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