/* style/support.css */

/* Base styles for the support page */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for default light body background */
  background-color: #f8f8f8;
}

/* 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); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #000080, #3333cc); /* Dark blue gradient */
  color: #ffffff;
  overflow: hidden;
}

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

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

.page-support__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.3);
}

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

.page-support__hero-section h1 {
  font-size: 2.8em;
  margin-bottom: 15px;
  color: #FFD700; /* Gold for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-support__hero-section p {
  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: #FFD700; /* Primary gold color */
  color: #000080; /* Dark blue text for contrast */
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-support__cta-button:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-support__section-title {
  font-size: 2.2em;
  color: #000080;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Contact Options Section */
.page-support__contact-options-section {
  background-color: #ffffff;
  padding: 60px 0;
}

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

.page-support__contact-card {
  background: #fdfdfd;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__contact-card img {
  width: 100%;
  height: auto;
  max-width: 250px; /* Max width for images in cards */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-support__contact-card .page-support__card-title {
  font-size: 1.5em;
  color: #000080;
  margin-bottom: 15px;
}

.page-support__contact-card p {
  color: #666666;
  margin-bottom: 25px;
  font-size: 0.95em;
}

.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #000080; /* Dark blue */
  color: #FFD700; /* Gold text */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.page-support__btn-secondary:hover {
  background: #000066; /* Darker blue on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Topics Section */
.page-support__topics-section {
  background-color: #f0f0f5;
  padding: 60px 0;
}

.page-support__topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-support__topic-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__topic-card img {
  width: 100%;
  height: auto;
  max-width: 250px; /* Max width for images in cards */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-support__topic-card .page-support__card-title {
  font-size: 1.5em;
  color: #000080;
  margin-bottom: 15px;
}

.page-support__topic-card p {
  color: #666666;
  margin-bottom: 15px;
  font-size: 0.95em;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

/* FAQ container style */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  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.3s ease;
  padding: 0 20px;
  opacity: 0;
  background: #fdfdfd;
  color: #444444;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.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 !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-item.active .page-support__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

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

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

/* Question title style */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #000080;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  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;
  border-radius: 50%;
  border: 2px solid #FFD700;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #000080;
  border-color: #000080;
  transform: rotate(45deg); /* Rotate for minus sign */
}

/* Guides Section */
.page-support__guides-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

.page-support__guide-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-support__guide-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Minimum size requirement */
}

.page-support__guide-card .page-support__card-title {
  font-size: 1.3em;
  color: #000080;
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-support__guide-card .page-support__card-title a {
  color: #000080;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-support__guide-card .page-support__card-title a:hover {
  color: #FFD700;
}

.page-support__guide-card p {
  color: #666666;
  padding: 0 20px;
  font-size: 0.95em;
  flex-grow: 1; /* Allow paragraph to take available space */
}

.page-support__btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background: #FFD700; /* Gold */
  color: #000080; /* Dark blue text */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 20px;
  border: none;
  align-self: flex-start; /* Align button to start in flex column */
}

.page-support__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Call to Action Bottom Section */
.page-support__cta-bottom-section {
  padding: 80px 0;
  background-color: #000080; /* Dark blue background */
  color: #ffffff;
  text-align: center;
}

.page-support__cta-bottom-section .page-support__section-title {
  color: #FFD700; /* Gold title */
  margin-bottom: 20px;
}

.page-support__cta-bottom-section .page-support__section-description {
  color: #f0f0f5;
  margin-bottom: 40px;
}

.page-support__cta-button--inverted {
  background: #FFD700;
  color: #000080;
}

.page-support__cta-button--inverted:hover {
  background: #e6c200;
  color: #000066;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-support__hero-section h1 {
    font-size: 2.2em;
  }

  .page-support__section-title {
    font-size: 1.8em;
  }

  .page-support__section-description {
    font-size: 1em;
  }

  .page-support__contact-card img,
  .page-support__guide-card img,
  .page-support__topic-card img {
    
  }
}

@media (max-width: 768px) {
  /* Mobile Header Offset */
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-support__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__hero-section h1 {
    font-size: 1.8em;
  }

  .page-support__hero-section p {
    font-size: 1em;
  }

  .page-support__cta-button {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__contact-grid,
  .page-support__guides-grid,
  .page-support__topics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__contact-card,
  .page-support__guide-card,
  .page-support__topic-card {
    padding: 20px;
  }

  .page-support__contact-card img,
  .page-support__guide-card img,
  .page-support__topic-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px; /* Still ensure minimum size */
  }
  
  /* All images in content area should be responsive */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block; /* Ensure it behaves as a block element for width */
  }

  .page-support__section-title {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  .page-support__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* FAQ Mobile */
  .page-support__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-support__faq-question h3 {
    font-size: 1em;
    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;
  }

  /* Buttons mobile */
  .page-support__btn-secondary,
  .page-support__btn-primary {
    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;
    margin-left: 0;
    margin-right: 0;
  }
  
  .page-support__guide-card .page-support__btn-primary {
    align-self: center; /* Center button in mobile card */
  }

  .page-support__cta-bottom-section {
    padding: 50px 0;
  }
}