/* style/support.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f1f3f5;
  --border-light: #e0e0e0;
}

.page-support {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark sections */
  line-height: 1.6;
  padding-top: 120px; /* Desktop: Adjust for fixed header */
}

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

/* Hero Banner Section */
.page-support__hero-banner {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), #0A2463);
  color: var(--text-light);
  padding-top: 180px; /* Desktop: Ensure content is below fixed header */
}

.page-support__main-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-support__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-support__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color); /* Default for light backgrounds */
}

.page-support__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-dark); /* Default for light backgrounds */
}

/* FAQ Section */
.page-support__faq-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.page-support__faq-section .page-support__section-title,
.page-support__faq-section .page-support__section-description {
  color: var(--text-dark); /* Ensure contrast on light background */
}

.page-support__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-support__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 20px;
  opacity: 0;
  background: #f9f9f9;
  color: var(--text-dark);
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

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

.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-support__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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Contact Methods Section */
.page-support__contact-methods {
  padding: 60px 0;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-support__contact-methods .page-support__section-title,
.page-support__contact-methods .page-support__section-description {
  color: var(--text-light);
}

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

.page-support__contact-card {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-support__contact-card:hover {
  transform: translateY(-5px);
}

.page-support__contact-icon {
  width: 120px; /* Increased size for better visual impact */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-support__contact-card h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-support__contact-card p {
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.6;
}

.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-support__btn-secondary:hover {
  background: #0A2463;
  border-color: #0A2463;
  color: var(--secondary-color);
}

/* Resources Section */
.page-support__resources-section {
  padding: 60px 0;
  background: var(--bg-light);
}

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

.page-support__resource-card {
  background: #ffffff;
  color: var(--text-dark);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-support__resource-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
}

.page-support__resource-card .page-support__card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-support__resource-card .page-support__card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-support__resource-card .page-support__card-title a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-support__resource-card .page-support__card-description {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-support__btn-text-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  transition: all 0.3s ease;
}

.page-support__btn-text-link:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

/* Commitment Section */
.page-support__commitment-section {
  padding: 60px 0;
  background: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-support__commitment-section .page-support__section-title,
.page-support__commitment-section .page-support__section-description {
  color: var(--text-light);
}

.page-support__commitment-section .page-support__section-description a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-support__commitment-section .page-support__section-description a:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Common styles for dark/light backgrounds */
.page-support__dark-section {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-support__light-bg {
  background: var(--bg-light);
  color: var(--text-dark);
}

.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__card-title {
  color: var(--text-light);
}

.page-support__light-bg .page-support__section-title,
.page-support__light-bg .page-support__card-title {
  color: var(--primary-color);
}

.page-support__light-bg .page-support__card-description {
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: 38px;
  }
  .page-support__section-title {
    font-size: 32px;
  }
  .page-support__hero-description,
  .page-support__section-description {
    font-size: 16px;
  }
  .page-support__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-support__contact-icon {
    width: 100px;
  }
  .page-support__resource-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-support {
    padding-top: 100px !important; /* Mobile: Adjust for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-support__hero-banner {
    padding: 60px 0;
    padding-top: 140px !important; /* Mobile: Ensure content is below fixed header */
  }
  .page-support__main-title {
    font-size: 32px;
  }
  .page-support__section-title {
    font-size: 28px;
  }
  .page-support__hero-description,
  .page-support__section-description {
    font-size: 15px;
    padding: 0 15px;
  }
  .page-support__container {
    padding: 0 15px;
  }
  .page-support__faq-section,
  .page-support__contact-methods,
  .page-support__resources-section,
  .page-support__commitment-section {
    padding: 40px 0;
  }
  .page-support__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-support__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-support__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-support__faq-answer {
    padding: 0 15px;
  }
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px !important;
  }
  .page-support__contact-grid {
    grid-template-columns: 1fr;
  }
  .page-support__contact-card {
    padding: 25px;
  }
  .page-support__contact-icon {
    width: 80px;
  }
  .page-support__contact-card h3 {
    font-size: 20px;
  }
  .page-support__contact-card p {
    font-size: 15px;
  }
  .page-support__resource-grid {
    grid-template-columns: 1fr;
  }
  .page-support__resource-card {
    padding: 20px;
  }
  .page-support__resource-image {
    height: 160px;
  }
  .page-support__resource-card .page-support__card-title {
    font-size: 18px;
  }
  .page-support__resource-card .page-support__card-description {
    font-size: 14px;
  }
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-banner,
  .page-support__faq-section,
  .page-support__contact-methods,
  .page-support__resources-section,
  .page-support__commitment-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .page-support__main-title {
    font-size: 28px;
  }
  .page-support__section-title {
    font-size: 24px;
  }
  .page-support__cta-button {
    padding: 10px 25px;
    font-size: 15px;
  }
  .page-support__btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
  }
}