/* style/resources.css */

/* Base Styles & Typography */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Inherit from shared, default to white */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

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

.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__item-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__item-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-resources__item-title a:hover {
  text-decoration: underline;
}

.page-resources__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-resources__card-title a:hover {
  text-decoration: underline;
}

.page-resources__paragraph {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #333333;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px; 
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Gradient with brand color */
  color: #ffffff;
}

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-resources__btn-primary:hover {
  background: #d66f06;
  border-color: #d66f06;
  transform: translateY(-2px);
}

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

.page-resources__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none; /* No color changing filter */
}

/* Intro Section */
.page-resources__intro-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

/* Video Section */
.page-resources__video-section {
  position: relative;
  padding: 80px 0;
  background-color: #1a7bb0; /* Darker brand color */
  color: #ffffff;
  text-align: center;
}

.page-resources__video-section .page-resources__section-title {
  color: #ffffff;
}

.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  aspect-ratio: 16/9; /* Maintain 16:9 aspect ratio */
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-resources__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resources__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.page-resources__video-overlay:hover {
  background: rgba(0, 0, 0, 0.2);
}

.page-resources__play-button {
  color: #ffffff;
  background-color: rgba(38, 169, 224, 0.8); /* Brand color with transparency */
  border-radius: 50%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-resources__play-button:hover {
  transform: scale(1.1);
  background-color: rgba(38, 169, 224, 1);
}

.page-resources__play-button svg {
  width: 48px;
  height: 48px;
}

/* Guide & Strategy Sections (Grid Layout) */
.page-resources__guide-section,
.page-resources__strategy-section,
.page-resources__news-promo-section {
  padding: 80px 0;
}

.page-resources__guide-section {
  background-color: #f5f8fa; /* Light background */
}

.page-resources__strategy-section {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
}

.page-resources__strategy-section .page-resources__section-title,
.page-resources__strategy-section .page-resources__item-title,
.page-resources__strategy-section .page-resources__item-title a,
.page-resources__strategy-section .page-resources__paragraph,
.page-resources__strategy-section .page-resources__btn-text {
  color: #ffffff;
}

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

.page-resources__grid-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.page-resources__grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__grid-item .page-resources__image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  min-width: 200px; /* Minimum width */
  min-height: 200px; /* Minimum height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: none; /* No color changing filter */
}

.page-resources__item-description {
  font-size: 0.95em;
  color: #666666;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-resources__strategy-section .page-resources__grid-item {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__strategy-section .page-resources__grid-item:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-resources__strategy-section .page-resources__item-description {
  color: #f0f0f0;
}

.page-resources__btn-text {
  display: inline-flex;
  align-items: center;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

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

.page-resources__strategy-section .page-resources__btn-text {
  color: #ffffff;
}

.page-resources__strategy-section .page-resources__btn-text:hover {
  color: #f0f0f0;
}

.page-resources__arrow {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.page-resources__btn-text:hover .page-resources__arrow {
  transform: translateX(5px);
}

/* Security Section */
.page-resources__security-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-resources__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__text-content {
  flex: 1;
}

.page-resources__image-content {
  flex: 1;
  text-align: center;
}