/* style/resources.css */

:root {
  --primary-color: #003366;
  --secondary-color: #FFCC00;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f5f5f5;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so use light text */
  background-color: var(--bg-dark); /* Inherited from shared.css body */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
  min-height: 600px;
}

.page-resources__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
}

.page-resources__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-resources__cta-button:hover {
  background: #e6b800;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button--large {
  padding: 18px 50px;
  font-size: 1.4em;
}

.page-resources__intro-section,
.page-resources__why-99ok-section,
.page-resources__final-cta-section {
  padding: 60px 20px;
  text-align: center;
}

.page-resources__intro-section,
.page-resources__why-99ok-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-resources__text-block {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--text-light);
}

.page-resources__categories-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
}

.page-resources__categories-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-resources__category-card {
  background: var(--card-bg-dark);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-resources__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  filter: brightness(0.8);
  transition: filter 0.3s ease;
}

.page-resources__category-card:hover .page-resources__category-image {
  filter: brightness(1);
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-resources__card-description {
  font-size: 1em;
  color: var(--text-light);
  flex-grow: 1;
}

.page-resources__why-99ok-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-resources__why-99ok-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-resources__feature-item {
  background: var(--card-bg-dark);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__feature-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__feature-item p {
  font-size: 0.95em;
  color: var(--text-light);
}

.page-resources__final-cta-section {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 80px 20px;
}

.page-resources__final-cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-resources__final-cta-section .page-resources__section-title {
  color: var(--primary-color);
}

.page-resources__final-cta-section .page-resources__text-block {
  color: var(--primary-color);
}

.page-resources__final-cta-section .page-resources__cta-button {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-resources__final-cta-section .page-resources__cta-button:hover {
  background: #002244;
  color: #ffdd33;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-resources__main-title {
    font-size: 3em;
  }
  .page-resources__hero-description {
    font-size: 1.2em;
  }
}

@media (max-width: 992px) {
  .page-resources__main-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 450px;
  }
  .page-resources__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources__cta-button--large {
    padding: 15px 40px;
    font-size: 1.2em;
  }

  .page-resources__intro-section,
  .page-resources__why-99ok-section,
  .page-resources__final-cta-section,
  .page-resources__categories-section {
    padding: 40px 15px;
  }

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-resources__text-block {
    font-size: 0.95em;
    max-width: 100%;
    padding: 0 5px;
  }

  .page-resources__category-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__category-card {
    padding: 20px;
  }

  .page-resources__category-image {
    height: 180px;
  }

  .page-resources__card-title {
    font-size: 1.3em;
  }

  .page-resources__why-99ok-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__feature-item {
    padding: 20px;
  }

  .page-resources__feature-title {
    font-size: 1.2em;
  }

  /* Mobile responsive for all images */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile responsive for all containers */
  .page-resources__hero-section,
  .page-resources__hero-container,
  .page-resources__intro-section,
  .page-resources__intro-container,
  .page-resources__categories-section,
  .page-resources__categories-container,
  .page-resources__category-grid,
  .page-resources__category-card,
  .page-resources__why-99ok-section,
  .page-resources__why-99ok-container,
  .page-resources__why-99ok-features,
  .page-resources__feature-item,
  .page-resources__final-cta-section,
  .page-resources__final-cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific adjustments for hero section padding on mobile */
  .page-resources__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-resources__hero-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Mobile responsive for all buttons */
  .page-resources__cta-button,
  .page-resources__cta-button--large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-resources__main-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-resources__cta-button--large {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources__category-image {
    height: 150px;
  }
}