/* style/resources.css */

/* --- General Page Styles --- */
.page-resources {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Ensure content background is white */
}

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

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

.page-resources__section-title {
  font-size: 36px;
  color: #26A9E0; /* Primary color for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* --- Hero Section --- */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background: linear-gradient(135deg, #E0F7FA, #B3E5FC); /* Light gradient background */
  color: #333333;
}

.page-resources__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-resources__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-resources__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-resources__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0; /* Primary color */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-resources__hero-description {
  font-size: 20px;
  color: #555555;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #26A9E0; /* Primary color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px; /* Pill shape */
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(38, 169, 224, 0.4);
  border: none;
}

.page-resources__cta-button:hover {
  background: #1e87c0; /* Slightly darker primary on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(38, 169, 224, 0.6);
}

/* --- Grid Layouts --- */
.page-resources__grid {
  display: grid;
  gap: 30px;
  margin-bottom: 40px;
}

.page-resources__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

/* --- Card Styles --- */
.page-resources__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  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(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-resources__card img {
  width: 100%;
  height: 200px; /* Fixed height for consistent card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure no extra space below image */
}

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

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

.page-resources__card-title a:hover {
  color: #1e87c0;
  text-decoration: underline;
}

.page-resources__card-text {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to take available space */
}

.page-resources__card-link {
  display: inline-block;
  color: #26A9E0;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
  align-self: flex-start; /* Align link to the start */
}

.page-resources__card-link:hover {
  color: #1e87c0;
  text-decoration: underline;
}

/* --- News Section Specifics --- */
.page-resources__section--news {
  background: #26A9E0; /* Primary color background */
  color: #ffffff;
}

.page-resources__section--news .page-resources__section-title,
.page-resources__section--news .page-resources__section-description {
  color: #ffffff;
}

.page-resources__news-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 450px; /* Consistent height for news cards */
}

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

.page-resources__news-card img {
  width: 100%;
  height: 250px; /* Fixed height for news images */
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  display: block;
}

.page-resources__news-content {
  padding: 25px;
  color: #333333;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__news-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-resources__news-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__news-title a:hover {
  color: #1e87c0;
  text-decoration: underline;
}

.page-resources__news-meta {
  font-size: 14px;
  color: #888888;
  margin-bottom: 10px;
}

.page-resources__news-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* --- Security Section Specifics --- */
.page-resources__section--security .page-resources__grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  text-align: left;
}

.page-resources__text-block {
  padding-right: 30px;
}

.page-resources__text-block-title {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-resources__text-block p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
}

.page-resources__image-block img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

/* --- Call to Action Section --- */
.page-resources__section--cta {
  background: #26A9E0; /* Primary color background */
  color: #ffffff;
  padding: 80px 20px;
}

.page-resources__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources__cta-title {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-resources__cta-button--large {
  padding: 18px 50px;
  font-size: 20px;
  background: #EA7C07; /* Login button color for emphasis */
  box-shadow: 0 6px 20px rgba(234, 124, 7, 0.5);
}

.page-resources__cta-button--large:hover {
  background: #d46b00; /* Darker orange on hover */
  box-shadow: 0 10px 25px rgba(234, 124, 7, 0.7);
}

/* --- Buttons Group --- */
.page-resources__button-group {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for mobile button sizing */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

.page-resources__btn-primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38, 169, 224, 0.3);
}

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

.page-resources__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- FAQ Section --- */
.page-resources__section--faq {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: #f8f9fa; /* Light grey background for FAQ */
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background: #f9f9fa;
  color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9fa;
  border-radius: 0 0 5px 5px;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-item.active .page-resources__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #d0d0d0;
  background: #f5f5f5;
}

.page-resources__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources__faq-question:active {
  background: #eeeeee;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #26A9E0; /* Primary color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect, or change to '-' */
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .page-resources__grid--2-cols {
    grid-template-columns: 1fr;
  }
  .page-resources__section--security .page-resources__grid {
    grid-template-columns: 1fr;
  }
  .page-resources__text-block {
    padding-right: 0;
    margin-bottom: 30px;
  }
  .page-resources__news-card {
    min-height: auto; /* Allow height to adjust on tablets */
  }
  .page-resources__card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-resources__hero-title {
    font-size: 32px;
  }
  
  .page-resources__hero-description {
    font-size: 16px;
  }
  
  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__section {
    padding: 40px 0;
  }

  .page-resources__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-resources__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-resources__grid--3-cols {
    grid-template-columns: 1fr;
  }

  .page-resources__card,
  .page-resources__news-card {
    padding: 20px;
    min-height: auto;
  }

  .page-resources__card img,
  .page-resources__news-card img {
     /* Adjust image height for mobile cards */
  }

  .page-resources__card-title,
  .page-resources__news-title {
    font-size: 18px;
  }

  .page-resources__card-text,
  .page-resources__news-excerpt {
    font-size: 15px;
  }

  /* Mobile image responsiveness */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__news-card,
  .page-resources__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .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__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }

  .page-resources__section--cta {
    padding: 50px 15px;
  }

  .page-resources__cta-title {
    font-size: 30px;
  }

  .page-resources__cta-description {
    font-size: 16px;
  }

  .page-resources__cta-button--large {
    padding: 15px 30px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__faq-question {
    padding: 15px 20px;
  }
  
  .page-resources__faq-question h3 {
    font-size: 16px;
  }
  
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 20px !important;
  }
}