/* style/support.css */

/* Custom properties for colors */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-support {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--secondary-color); /* Default background is white */
}

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

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

.page-support__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-support__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 offset */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 40%, #aee5f5 100%);
  color: var(--text-light);
}

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

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

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

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

.page-support__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--secondary-color);
}

.page-support__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--secondary-color);
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-color); /* Use login color for primary CTA */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__cta-button:hover {
  background: #D46F06; /* Darker version of --login-color */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Contact Methods Section */
.page-support__contact-methods {
  background-color: var(--background-light);
}

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

.page-support__method-card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-support__method-card img {
  width: 100%;
  max-width: 250px; /* Adjust for card size */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-support__card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__method-card p {
  font-size: 16px;
  color: #666666;
  margin-bottom: 25px;
  flex-grow: 1;
}

.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;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-secondary:hover {
  background: #2198CC; /* Darker version of --primary-color */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-support__faq-section {
  background-color: var(--secondary-color);
}

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

/* FAQ container styles */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ default state - answer hidden */
.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 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height to ensure it expands */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to accommodate any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--background-light);
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}