/* style/support.css */

/* General styling for the support page content area */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--color-background, #f8f8f8); /* Fallback to light grey if var not set */
}

/* 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;
  /* body handles padding-top for fixed header, so only small top padding here */
  padding-top: 10px;
  background-color: #B71C1C; /* Deep Red background */
  color: #FFF5E1; /* Text Main */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.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%; /* Ensure it takes full width within max-width */
}

.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;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

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

.page-support__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFF5E1; /* Text Main */
}

.page-support__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #333333; /* Dark text for light button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button fits on mobile */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__cta-button:hover {
  filter: brightness(1.1); /* Slight brightness increase on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Section general styles */
.page-support__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  color: #C91F17; /* Primary color for titles */
}

.page-support__sub-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: bold;
  margin-bottom: 15px;
  color: #E53935; /* Auxiliary color for sub-titles */
}

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

.page-support__intro-section,
.page-support__faq-section,
.page-support__cta-bottom {
  padding: 60px 0;
  background-color: var(--color-background, #f8f8f8); /* Light background */
}

.page-support__dark-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Deep Red background */
  color: #FFF5E1; /* Text Main */
}

.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__sub-title {
  color: #F4D34D; /* Gold for titles on dark background */
}

.page-support__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__dark-section .page-support__text-block {
  color: #FFF5E1; /* Text Main */
}

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

.page-support__channel-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1; /* Text Main for card content */
  min-height: 350px; /* Minimum height for cards */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-support__channel-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-support__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold for card titles */
}

.page-support__channel-card p {
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow paragraph to take available space */
}

.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background-color: #FFF5E1; /* Light background for secondary button */
  color: #C91F17; /* Primary color for text */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #C91F17;
  max-width: 100%; /* Ensure button fits on mobile */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-secondary:hover {
  background-color: #C91F17;
  color: #FFF5E1;
  border-color: #FFF5E1;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-support__faq-list {
  margin-top: 40px;
}

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border color */
  overflow: hidden;
  background: #FFF5E1; /* Text Main as background for FAQ item */
  color: #333333; /* Dark text for light background */
}
details.page-support__faq-item summary.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  background-color: #F4D34D; /* Gold background for question */
  color: #333333; /* Dark text for question */
  font-weight: bold;
}
details.page-support__faq-item summary.page-support__faq-question::-webkit-details-marker {
  display: none;
}
details.page-support__faq-item summary.page-support__faq-question:hover {
  background: #FFD86A; /* Lighter gold on hover */
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Dark text */
}
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #C91F17; /* Primary color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 20px; /* Adjusted padding */
  background: #FFF5E1; /* Text Main for answer background */
  border-radius: 0 0 5px 5px;
  font-size: 15px;
  color: #333333; /* Dark text */
}
.page-support__more-faq {
  margin-top: 30px;
  text-align: center;
  font-size: 16px;
}
.page-support__more-faq a {
  color: #E53935; /* Auxiliary color for links */
  text-decoration: underline;
  font-weight: bold;
}

/* Security Section */
.page-support__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-support__image-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-support__text-content h3 {
  color: #F4D34D; /* Gold for sub-titles on dark background */
}

.page-support__text-content p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
}

.page-support__text-content a {
  color: #FFD86A; /* Lighter gold for links on dark background */
  text-decoration: underline;
}

/* Bottom CTA Section */
.page-support__cta-container {
  text-align: center;
}

.page-support__cta-container .page-support__cta-button {
  margin: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-support__grid-two-cols {
    grid-template-columns: 1fr;
  }
  .page-support__image-content {
    order: -1; /* Image first on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-support__hero-image img {
    border-radius: 4px;
  }

  .page-support__main-title {
    font-size: 28px;
  }

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

  .page-support__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0;
    margin-right: 0;
  }

  .page-support__btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0;
    margin-right: 0;
  }

  .page-support__channels-grid {
    grid-template-columns: 1fr;
  }

  .page-support__channel-card {
    padding: 20px;
  }

  .page-support__channel-card img {
    height: auto; /* Allow height to be auto on mobile */
  }

  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px;
  }
  .page-support__faq-qtext {
    font-size: 15px;
  }
  details.page-support__faq-item .page-support__faq-answer {
    padding: 15px;
  }

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

  /* Mobile image responsiveness */
  .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-section,
  .page-support__intro-section,
  .page-support__contact-channels,
  .page-support__faq-section,
  .page-support__security-section,
  .page-support__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button container mobile adapt */
  .page-support__cta-container {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }
}