/* style/support.css */

/* Variables (if needed, consistent with shared.css) */
:root {
  --primary-color: #FF4500; /* OrangeRed */
  --secondary-color: #FFD700; /* Gold */
  --text-light: #f0f0f0;
  --text-dark: #333333;
  --card-bg: #ffffff;
  --border-light: #e0e0e0;
  --bg-grey-light: #f1f3f5;
  --dark-bg: #0d0d0d; /* Assuming from shared.css */
}

/* Base styles for the page-support scope */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Assuming --dark-bg from shared.css */
  background-color: var(--dark-bg); /* Inherited from body, but explicitly set for clarity */
}

/* Fixed navigation bar padding */
.page-support__hero-section {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-support__hero-image {
  width: 100%;
  max-width: 800px; /* Max width for image in hero */
  margin-bottom: 30px;
}

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

.page-support__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-support__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-support__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-support__cta-button--secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-support__cta-button--secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* General Section Styles */
.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-support__section-title {
  font-size: 2.5em;
  color: var(--text-light); /* Adjust for dark background */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-support__section-subtitle {
  font-size: 1.1em;
  color: #cccccc; /* Lighter grey for subtitle */
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__keyword {
  color: var(--secondary-color); /* Highlight keywords */
  font-weight: bold;
}

/* Contact Methods Section */
.page-support__contact-methods-section {
  padding: 60px 0;
  background-color: var(--dark-bg); /* Ensure consistent dark background */
}

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

.page-support__contact-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-support__contact-icon {
  width: 100%; /* Make it fill container, but respect min-width */
  min-width: 200px; /* Enforce minimum size from requirement */
  min-height: 200px; /* Enforce minimum size from requirement */
  height: auto; /* Maintain aspect ratio */
  max-width: 250px; /* Limit max display size for better aesthetics in card */
  max-height: 250px; /* Limit max display size for better aesthetics in card */
  object-fit: contain; /* Ensure image fits without cropping */
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.page-support__contact-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__contact-text {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 25px;
}

.page-support__contact-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color);
  color: var(--text-dark); /* Dark text on gold button */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-support__contact-button:hover {
  background: var(--primary-color);
  color: #ffffff;
}

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

.page-support__faq-section .page-support__section-title,
.page-support__faq-section .page-support__section-subtitle {
  color: var(--text-dark); /* Dark text on light background */
  text-shadow: none;
}

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

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: 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;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to show content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.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: 5px;
  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; /* Allow click on entire question div */
  color: var(--text-dark);
}

.page-support__faq-link {
  color: var(--text-dark);
  text-decoration: none;
}

.page-support__faq-link:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

.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); /* Rotate for 'x' effect */
}

.page-support__faq-more {
  text-align: center;
  margin-top: 30px;
}

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

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

.page-support__resource-card {
  background: rgba(255, 255, 255, 0.08); /* Transparent white on dark background */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-support__resource-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency, adjusted for min-size */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min-size */
  min-height: 200px; /* Enforce min-size */
}

.page-support__resource-card h3 {
  padding: 20px 20px 0;
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-support__resource-card h3 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-support__resource-description {
  padding: 0 20px 20px;
  font-size: 0.95em;
  color: #cccccc;
}

.page-support__read-more-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 10px 15px;
  background: var(--primary-color);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-support__read-more-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Feedback Section */
.page-support__feedback-section {
  padding: 60px 0;
  background-color: var(--bg-grey-light); /* Lighter background for contrast */
}

.page-support__feedback-section .page-support__section-title,
.page-support__feedback-section .page-support__section-subtitle {
  color: var(--text-dark);
  text-shadow: none;
}

.page-support__feedback-form {
  max-width: 700px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-support__form-group {
  margin-bottom: 20px;
}

.page-support__form-label {
  display: block;
  font-size: 1.1em;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: bold;
}

.page-support__form-input,
.page-support__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 1em;
  color: var(--text-dark);
  background-color: #fcfcfc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't increase width */
}

.page-support__form-input:focus,
.page-support__form-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.2);
  outline: none;
}

.page-support__form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 2.8em;
  }
  .page-support__hero-description {
    font-size: 1.1em;
  }
  .page-support__section-title {
    font-size: 2.2em;
  }
  .page-support__section-subtitle {
    font-size: 1em;
  }
  .page-support__contact-icon {
    min-width: 200px;
    min-height: 200px;
    max-width: 220px;
    max-height: 220px;
  }
  .page-support__resource-image {
    height: 220px;
  }
  .page-support__resource-card h3 {
    font-size: 1.2em;
  }
}

@media (max-width: 768px) {
  /* Mobile padding for fixed header */
  .page-support__hero-section {
    padding-top: 160px !important; /* Mobile: Adjust based on mobile fixed header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-support__hero-title {
    font-size: 2.2em;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-support__container {
    padding: 30px 15px;
  }

  .page-support__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-support__section-subtitle {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-support__contact-grid,
  .page-support__resources-grid {
    grid-template-columns: 1fr;
  }

  .page-support__contact-card,
  .page-support__resource-card {
    padding: 25px;
  }

  .page-support__contact-icon {
    min-width: 200px !important; /* Enforce min-width for mobile */
    min-height: 200px !important; /* Enforce min-height for mobile */
    max-width: 100% !important; /* Scale down to fit card */
    height: auto !important;
  }
  
  .page-support__resource-image {
    height: 180px;
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .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__feedback-form {
    padding: 25px;
  }
  .page-support__form-label {
    font-size: 1em;
  }
  .page-support__form-input,
  .page-support__form-textarea {
    padding: 10px 12px;
  }

  /* Global image responsive for mobile */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__hero-container,
  .page-support__container,
  .page-support__contact-methods-section,
  .page-support__faq-section,
  .page-support__resources-section,
  .page-support__feedback-section,
  .page-support__contact-card,
  .page-support__resource-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 1.8em;
  }
  .page-support__section-title {
    font-size: 1.6em;
  }
  .page-support__cta-button {
    width: 100%;
  }
  .page-support__contact-button {
    width: 100%;
  }
  .page-support__read-more-button {
    width: calc(100% - 40px);
  }
}